I’m setting up transactional replication, the snapshot generates fine, but I
get error code 1038 “Cannot use empty object or column names. Use a single
space if necessary.” when the distribution agent does the push replication
and reaches a particular SP.
Something to note is that table names wrapped in brackets (found in SQL
scripts in the snapshot folder) are being converted to quotation, is that
caused by SET QUOTED_IDENTIFIER ON?
so this: FROM [Pub_Articles-Keywords] StaArtK
is converted to: FROM "Pub_Articles-Keywords" StaArtK
The following is the detailed error log. Your help is appreciated.
[12/20/2005 4:44:00 PM]SERVER2.Keyword DB: SET QUOTED_IDENTIFIER ON
[12/20/2005 4:44:00 PM]SERVER2.Keyword DB: drop procedure
"sp_Search_KeywordBrowser"
[12/20/2005 4:44:00 PM]SERVER2.Keyword DB: CREATE PROCEDURE
"sp_Search_KeywordBrowser"
@.KeywordRoot int,
@.ArtRoot int,
@.start varchar(4) = '0',
@.quantity varchar(3) = '10',
@.Sort varchar(25) = 'priority',
@.YahooRoot int = 0
AS
if @.yahooroot = 0 set @.YahooRoot = @.ArtRoot
CREATE TABLE #TempTable
(PK int IDENTITY,
ArticleID int,
Link int,
priority int,
created datetime)
SET NOCOUNT ON
Insert INTO #TempTable (articleid, link, priority, created)
SELECT StaArtK.ArticleID ArticleID, A.Link Link,
StaArtK.priority, coalesce (b.posteddate1, a.posteddate1, a.created)
FROM "Pub_Articles-Keywords" StaArtK
JOIN Pub_Articles AS A ON StaArtK.ArticleID = A.ArticleID
left join Pub_Articles B on a.link = b.articleid
JOIN SpeedIndexes.dbo.Pub_Articles_Static AS pas ON Pas.BranchID =
StaArtK.ArticleID
WHERE StaArtK.KeywordID = @.KeywordRoot AND pas.ParentID = @.ArtRoot
AND StaArtK.articleid not in (select articleid from
SpeedIndexes.dbo."Pub_Articles-Keywords_Static" where
keywordid = 272 or keywordid = 2471) and StaArtK.block = 0
Insert INTO #TempTable (articleid, link, priority, created)
SELECT StaArtK.ArticleID ArticleID, A.Link Link,
pak.priority, coalesce (b.posteddate1, a.posteddate1, a.created)
FROM SpeedIndexes.dbo."Pub_Articles-Keywords_static" StaArtK
JOIN Pub_Articles AS A ON StaArtK.ArticleID = A.ArticleID
left join Pub_Articles B on a.link = b.articleid
JOIN SpeedIndexes.dbo.Pub_Articles_Static AS pas ON Pas.BranchID =
StaArtK.ArticleID
Join "pub_articles-keywords" pak on StaArtK.nativeid = pak.articleid and
StaArtK.keywordid = pak.keywordid
WHERE StaArtK.KeywordID = @.KeywordRoot AND pas.ParentID = @.ArtRoot
AND StaArtK.articleid not in (select articleid from
SpeedIndexes.dbo."Pub_Articles-Keywords_Static" where
keywordid = 272 or keywordid = 2471)
and StaArtK.nativeid not in (select articleid from #temptable)
update t set t.ArticleID = st.nativeid from #TempTable t join
speedindexes.dbo."pub_articles-keywords_static" st on t.articleid =
st.articleid where st.keywordid = 1060 and t.articleid <> st.nativeid
delete #tempTable where pk not in (select Max(pk) from #tempTable group by
articleid)
DELETE #TempTable WHERE (Link <> 0 AND Link IN (SELECT ArticleID FROM
#TempTable))
--Remove Links that have 'cousin links' in the result set
--OR (ArticleID NOT IN
--(SELECT TOP 1 ArticleID
--FROM #TempTable
-- GROUP BY Link, ArticleID
--HAVING COUNT(Link) > 1) AND Link <> 0)
declare @.resultcount int
set @.resultcount = (select count(*) from #TempTable)
declare @.sql nvarchar(500)
set @.sql = 'delete #TempTable where articleid not in (SELECT top ' +
@.quantity + ' articleid FROM #TempTable where pk not in (select top ' +
@.start + ' pk from #TempTable order by ' + @.sort + ' , pk) ORDER BY ' + @.sort
+ ', pk) '
EXEC sp_executesql @.sql
SELECT t.priority, a.ArticleID,
isnull(dbo.SF_PUB_GetAuthorByline(a.articleid),"") toptext,
dbo.SF_Pub_GetArticlePath (a.articleid,@.YahooRoot) path, t.created,
COALESCE (A.Title2, A2.Title2, A.Title1, A2.Title1) Title ,
COALESCE(a.subtitle, a2.subtitle,'') subtitle,
isnull(dbo.SF_PUB_GetInhKeywordID(a.articleid, 6913),0) DocType,
COALESCE(A.Synopsis0, A2.Synopsis0, A.Synopsis1, A2.Synopsis1,
A.Synopsis2, A2.Synopsis2, A.body, A2.Body, '') AS Synopsis
FROM #TempTable t
join pub_articles a on t.articleid = a.articleid left join
pub_articles a2 on a.link = a2.articleid
order by
case when @.sort = 'priority' or @.sort = 'priority,created' then
t.priority else '' end,
case when @.sort = 'created' or @.sort = 'priority,created' then
a.posteddate1 elsAgent message code 20046. Cannot use empty object or column
names. Use a single space if necessary.
[12/20/2005 4:44:00 PM]SERVER1.distribution: {call
sp_MSadd_distribution_history(7, 6, ?, ?, 0, 0, 0.00, 0x01, 1, ?, 20, 0x01,
0x01)}
Adding alert to msdb..sysreplicationalerts: ErrorId = 21,
Transaction Seqno = 000275890000022200b100000001, Command ID = 20
Message: Replication-Replication Distribution Subsystem: agent
SERVER1-Keyword DB-SERVER2-7 failed. Cannot use empty object or column names.
Use a single space if necessary.[12/20/2005 4:44:00 PM]SERVER1.distribution:
{call sp_MSadd_repl_alert(3, 7, 21, 14151, ?, 20, N'SERVER1', N'Keyword DB',
N'SERVER2', N'Keyword DB', ?)}
ErrorId = 21, SourceTypeId = 5
ErrorCode = '1038'
ErrorText = 'Cannot use empty object or column names. Use a single space if
necessary.'
[12/20/2005 4:44:00 PM]SERVER1.distribution: {call sp_MSadd_repl_error(21,
0, 5, ?, N'1038', ?)}
Category:SQLSERVER
Source: SERVER2
Number: 1038
Message: Cannot use empty object or column names. Use a single space if
necessary.
[12/20/2005 4:44:00 PM]SERVER2.Keyword DB: exec dbo.sp_MSupdatelastsyncinfo
N'SERVER1',N'Keyword DB', N'', 0, 6, N'Cannot use empty object or column
names. Use a single space if necessary.'
Disconnecting from Subscriber 'SERVER2'
Disconnecting from Distributor 'SERVER1'
Disconnecting from Distributor History 'SERVER1'
Thanks,
- Moshe
Hi Moshe,
You would need to replace the "" in the following code fragment with '':
SELECT t.priority, a.ArticleID,
isnull(dbo.SF_PUB_GetAuthorByline(a.articleid),"") toptext,
To make your procedure compliant with quoted_identifier on setting. You can
search this newsgroup for some of the responses I made in the past on how
this came to be. Note that this translation should be done automatically for
you by the SQL2005 snapshot agent.
HTH
-Raymond
"Moshe" wrote:
> I’m setting up transactional replication, the snapshot generates fine, but I
> get error code 1038 “Cannot use empty object or column names. Use a single
> space if necessary.” when the distribution agent does the push replication
> and reaches a particular SP.
> Something to note is that table names wrapped in brackets (found in SQL
> scripts in the snapshot folder) are being converted to quotation, is that
> caused by SET QUOTED_IDENTIFIER ON?
> so this: FROM [Pub_Articles-Keywords] StaArtK
> is converted to: FROM "Pub_Articles-Keywords" StaArtK
> The following is the detailed error log. Your help is appreciated.
> [12/20/2005 4:44:00 PM]SERVER2.Keyword DB: SET QUOTED_IDENTIFIER ON
> [12/20/2005 4:44:00 PM]SERVER2.Keyword DB: drop procedure
> "sp_Search_KeywordBrowser"
> [12/20/2005 4:44:00 PM]SERVER2.Keyword DB: CREATE PROCEDURE
> "sp_Search_KeywordBrowser"
> @.KeywordRoot int,
> @.ArtRoot int,
> @.start varchar(4) = '0',
> @.quantity varchar(3) = '10',
> @.Sort varchar(25) = 'priority',
> @.YahooRoot int = 0
> AS
>
> if @.yahooroot = 0 set @.YahooRoot = @.ArtRoot
> CREATE TABLE #TempTable
> (PK int IDENTITY,
> ArticleID int,
> Link int,
> priority int,
> created datetime)
> SET NOCOUNT ON
> Insert INTO #TempTable (articleid, link, priority, created)
> SELECT StaArtK.ArticleID ArticleID, A.Link Link,
> StaArtK.priority, coalesce (b.posteddate1, a.posteddate1, a.created)
> FROM "Pub_Articles-Keywords" StaArtK
> JOIN Pub_Articles AS A ON StaArtK.ArticleID = A.ArticleID
> left join Pub_Articles B on a.link = b.articleid
> JOIN SpeedIndexes.dbo.Pub_Articles_Static AS pas ON Pas.BranchID =
> StaArtK.ArticleID
> WHERE StaArtK.KeywordID = @.KeywordRoot AND pas.ParentID = @.ArtRoot
> AND StaArtK.articleid not in (select articleid from
> SpeedIndexes.dbo."Pub_Articles-Keywords_Static" where
> keywordid = 272 or keywordid = 2471) and StaArtK.block = 0
>
> Insert INTO #TempTable (articleid, link, priority, created)
> SELECT StaArtK.ArticleID ArticleID, A.Link Link,
> pak.priority, coalesce (b.posteddate1, a.posteddate1, a.created)
> FROM SpeedIndexes.dbo."Pub_Articles-Keywords_static" StaArtK
> JOIN Pub_Articles AS A ON StaArtK.ArticleID = A.ArticleID
> left join Pub_Articles B on a.link = b.articleid
> JOIN SpeedIndexes.dbo.Pub_Articles_Static AS pas ON Pas.BranchID =
> StaArtK.ArticleID
> Join "pub_articles-keywords" pak on StaArtK.nativeid = pak.articleid and
> StaArtK.keywordid = pak.keywordid
> WHERE StaArtK.KeywordID = @.KeywordRoot AND pas.ParentID = @.ArtRoot
> AND StaArtK.articleid not in (select articleid from
> SpeedIndexes.dbo."Pub_Articles-Keywords_Static" where
> keywordid = 272 or keywordid = 2471)
> and StaArtK.nativeid not in (select articleid from #temptable)
>
> update t set t.ArticleID = st.nativeid from #TempTable t join
> speedindexes.dbo."pub_articles-keywords_static" st on t.articleid =
> st.articleid where st.keywordid = 1060 and t.articleid <> st.nativeid
> delete #tempTable where pk not in (select Max(pk) from #tempTable group by
> articleid)
>
> DELETE #TempTable WHERE (Link <> 0 AND Link IN (SELECT ArticleID FROM
> #TempTable))
> --Remove Links that have 'cousin links' in the result set
> --OR (ArticleID NOT IN
> --(SELECT TOP 1 ArticleID
> --FROM #TempTable
> -- GROUP BY Link, ArticleID
> --HAVING COUNT(Link) > 1) AND Link <> 0)
>
> declare @.resultcount int
> set @.resultcount = (select count(*) from #TempTable)
>
> declare @.sql nvarchar(500)
> set @.sql = 'delete #TempTable where articleid not in (SELECT top ' +
> @.quantity + ' articleid FROM #TempTable where pk not in (select top ' +
> @.start + ' pk from #TempTable order by ' + @.sort + ' , pk) ORDER BY ' + @.sort
> + ', pk) '
> EXEC sp_executesql @.sql
> SELECT t.priority, a.ArticleID,
> isnull(dbo.SF_PUB_GetAuthorByline(a.articleid),"") toptext,
> dbo.SF_Pub_GetArticlePath (a.articleid,@.YahooRoot) path, t.created,
> COALESCE (A.Title2, A2.Title2, A.Title1, A2.Title1) Title ,
> COALESCE(a.subtitle, a2.subtitle,'') subtitle,
> isnull(dbo.SF_PUB_GetInhKeywordID(a.articleid, 6913),0) DocType,
> COALESCE(A.Synopsis0, A2.Synopsis0, A.Synopsis1, A2.Synopsis1,
> A.Synopsis2, A2.Synopsis2, A.body, A2.Body, '') AS Synopsis
> FROM #TempTable t
> join pub_articles a on t.articleid = a.articleid left join
> pub_articles a2 on a.link = a2.articleid
> order by
> case when @.sort = 'priority' or @.sort = 'priority,created' then
> t.priority else '' end,
> case when @.sort = 'created' or @.sort = 'priority,created' then
> a.posteddate1 elsAgent message code 20046. Cannot use empty object or column
> names. Use a single space if necessary.
> [12/20/2005 4:44:00 PM]SERVER1.distribution: {call
> sp_MSadd_distribution_history(7, 6, ?, ?, 0, 0, 0.00, 0x01, 1, ?, 20, 0x01,
> 0x01)}
> Adding alert to msdb..sysreplicationalerts: ErrorId = 21,
> Transaction Seqno = 000275890000022200b100000001, Command ID = 20
> Message: Replication-Replication Distribution Subsystem: agent
> SERVER1-Keyword DB-SERVER2-7 failed. Cannot use empty object or column names.
> Use a single space if necessary.[12/20/2005 4:44:00 PM]SERVER1.distribution:
> {call sp_MSadd_repl_alert(3, 7, 21, 14151, ?, 20, N'SERVER1', N'Keyword DB',
> N'SERVER2', N'Keyword DB', ?)}
> ErrorId = 21, SourceTypeId = 5
> ErrorCode = '1038'
> ErrorText = 'Cannot use empty object or column names. Use a single space if
> necessary.'
> [12/20/2005 4:44:00 PM]SERVER1.distribution: {call sp_MSadd_repl_error(21,
> 0, 5, ?, N'1038', ?)}
> Category:SQLSERVER
> Source: SERVER2
> Number: 1038
> Message: Cannot use empty object or column names. Use a single space if
> necessary.
> [12/20/2005 4:44:00 PM]SERVER2.Keyword DB: exec dbo.sp_MSupdatelastsyncinfo
> N'SERVER1',N'Keyword DB', N'', 0, 6, N'Cannot use empty object or column
> names. Use a single space if necessary.'
> Disconnecting from Subscriber 'SERVER2'
> Disconnecting from Distributor 'SERVER1'
> Disconnecting from Distributor History 'SERVER1'
> Thanks,
> - Moshe
Showing posts with label empty. Show all posts
Showing posts with label empty. Show all posts
Wednesday, March 7, 2012
Wednesday, February 15, 2012
Error: Subreport can not be shown
Hello,
I have a parameterized subreport and I'm getting this error message when
ever my subreport has an empty recordset (which is normal). Is there and
anyway to hide this or suppress the error message.
Thanks
RandyHi William,
I have a report that with a list control and each list item takes up a whole
page. On the page I have 9 subreports all tied to a Building ID (which is a
unique ID =Fields!BuildingID.Value) it seems to work fine on the first
page but after that I get the Error sub report message.
Randy
"William Wang[MSFT]" <v-rxwang@.online.microsoft.com> wrote in message
news:ueyb9YkcFHA.2788@.TK2MSFTNGXA01.phx.gbl...
> Hi Randy,
> Based on my research, this issue does not occur when the dataset of the
> subreport has no rows. Here I've attached the parent report and the
> subreport I used for testing purpose. 'Modified Employee Sales Summary' is
> the parent report and EmpSalesDetail is the subreport. They are created
> based on the sample report 'Employee Sales Summary'. After you select
> 'Pamela Ansman-Wolfe' from the 'Employee' drop down list (while 'Month' is
> set to December and Year is set to 2003 by default) and click View Report,
> you will find the subreport does not appear and there is not an error.
> For your issue, I suspect that in some cases you don't pass the correct
> parameter to the subreport. The probable situation is, your parent report
> passes a null or blank value to your subreport, but the subreport does not
> allow a null or blank value. This will result in the "Subreport could not
> be shown" error displayed in the parent report. If this is the case, you
> need to ensure that the correct value is passed to the subreport.
> Please feel free to let me know if anything is unclear.
> Sincerely,
> William Wang
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> --
>>From: "Randy_ts" <randy_ts@.nospam.nospam>
>>Subject: Error: Subreport can not be shown
>>Date: Wed, 15 Jun 2005 07:55:06 -0400
>>Lines: 11
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
>>X-RFC2646: Format=Flowed; Original
>>Message-ID: <ukEDVEacFHA.2688@.TK2MSFTNGP14.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>>NNTP-Posting-Host: 198.77.232.92
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.reportingsvcs:45986
>>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>>Hello,
>>I have a parameterized subreport and I'm getting this error message when
>>ever my subreport has an empty recordset (which is normal). Is there and
>>anyway to hide this or suppress the error message.
>>Thanks
>>Randy
>>|||Hi Randy,
I'm sorry that I'm unable to identify what the problem is just based on
your description. Could you reproduce this problem by creating a simple
main report and two subreports? I hope you could do this with the sample
database AdventureWorks, then I will follow your steps to produce the issue
on my end and see what the problem is. You could also send your sample
reports to me at v-rxwang@.microsoft.com.
If anything is unclear, feel free to contact me.
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
>From: "Randy_ts" <randy_ts@.nospam.nospam>
>References: <ukEDVEacFHA.2688@.TK2MSFTNGP14.phx.gbl>
<ueyb9YkcFHA.2788@.TK2MSFTNGXA01.phx.gbl>
>Subject: Re: Error: Subreport can not be shown
>Date: Tue, 21 Jun 2005 11:32:22 -0400
>Lines: 78
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
>X-RFC2646: Format=Flowed; Original
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
>Message-ID: <ulcptZndFHA.2180@.TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>NNTP-Posting-Host: 198.77.232.92
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.reportingsvcs:46393
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>Hi William,
>I have a report that with a list control and each list item takes up a
whole
>page. On the page I have 9 subreports all tied to a Building ID (which is
a
>unique ID =Fields!BuildingID.Value) it seems to work fine on the first
>page but after that I get the Error sub report message.
>
>Randy
>
>
>"William Wang[MSFT]" <v-rxwang@.online.microsoft.com> wrote in message
>news:ueyb9YkcFHA.2788@.TK2MSFTNGXA01.phx.gbl...
>> Hi Randy,
>> Based on my research, this issue does not occur when the dataset of the
>> subreport has no rows. Here I've attached the parent report and the
>> subreport I used for testing purpose. 'Modified Employee Sales Summary'
is
>> the parent report and EmpSalesDetail is the subreport. They are created
>> based on the sample report 'Employee Sales Summary'. After you select
>> 'Pamela Ansman-Wolfe' from the 'Employee' drop down list (while 'Month'
is
>> set to December and Year is set to 2003 by default) and click View
Report,
>> you will find the subreport does not appear and there is not an error.
>> For your issue, I suspect that in some cases you don't pass the correct
>> parameter to the subreport. The probable situation is, your parent report
>> passes a null or blank value to your subreport, but the subreport does
not
>> allow a null or blank value. This will result in the "Subreport could not
>> be shown" error displayed in the parent report. If this is the case, you
>> need to ensure that the correct value is passed to the subreport.
>> Please feel free to let me know if anything is unclear.
>> Sincerely,
>> William Wang
>> Microsoft Online Partner Support
>> When responding to posts, please "Reply to Group" via your newsreader so
>> that others may learn and benefit from your issue.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> --
>>From: "Randy_ts" <randy_ts@.nospam.nospam>
>>Subject: Error: Subreport can not be shown
>>Date: Wed, 15 Jun 2005 07:55:06 -0400
>>Lines: 11
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
>>X-RFC2646: Format=Flowed; Original
>>Message-ID: <ukEDVEacFHA.2688@.TK2MSFTNGP14.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>>NNTP-Posting-Host: 198.77.232.92
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.sqlserver.reportingsvcs:45986
>>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>>Hello,
>>I have a parameterized subreport and I'm getting this error message when
>>ever my subreport has an empty recordset (which is normal). Is there and
>>anyway to hide this or suppress the error message.
>>Thanks
>>Randy
>>
>
>
I have a parameterized subreport and I'm getting this error message when
ever my subreport has an empty recordset (which is normal). Is there and
anyway to hide this or suppress the error message.
Thanks
RandyHi William,
I have a report that with a list control and each list item takes up a whole
page. On the page I have 9 subreports all tied to a Building ID (which is a
unique ID =Fields!BuildingID.Value) it seems to work fine on the first
page but after that I get the Error sub report message.
Randy
"William Wang[MSFT]" <v-rxwang@.online.microsoft.com> wrote in message
news:ueyb9YkcFHA.2788@.TK2MSFTNGXA01.phx.gbl...
> Hi Randy,
> Based on my research, this issue does not occur when the dataset of the
> subreport has no rows. Here I've attached the parent report and the
> subreport I used for testing purpose. 'Modified Employee Sales Summary' is
> the parent report and EmpSalesDetail is the subreport. They are created
> based on the sample report 'Employee Sales Summary'. After you select
> 'Pamela Ansman-Wolfe' from the 'Employee' drop down list (while 'Month' is
> set to December and Year is set to 2003 by default) and click View Report,
> you will find the subreport does not appear and there is not an error.
> For your issue, I suspect that in some cases you don't pass the correct
> parameter to the subreport. The probable situation is, your parent report
> passes a null or blank value to your subreport, but the subreport does not
> allow a null or blank value. This will result in the "Subreport could not
> be shown" error displayed in the parent report. If this is the case, you
> need to ensure that the correct value is passed to the subreport.
> Please feel free to let me know if anything is unclear.
> Sincerely,
> William Wang
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> --
>>From: "Randy_ts" <randy_ts@.nospam.nospam>
>>Subject: Error: Subreport can not be shown
>>Date: Wed, 15 Jun 2005 07:55:06 -0400
>>Lines: 11
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
>>X-RFC2646: Format=Flowed; Original
>>Message-ID: <ukEDVEacFHA.2688@.TK2MSFTNGP14.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>>NNTP-Posting-Host: 198.77.232.92
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.reportingsvcs:45986
>>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>>Hello,
>>I have a parameterized subreport and I'm getting this error message when
>>ever my subreport has an empty recordset (which is normal). Is there and
>>anyway to hide this or suppress the error message.
>>Thanks
>>Randy
>>|||Hi Randy,
I'm sorry that I'm unable to identify what the problem is just based on
your description. Could you reproduce this problem by creating a simple
main report and two subreports? I hope you could do this with the sample
database AdventureWorks, then I will follow your steps to produce the issue
on my end and see what the problem is. You could also send your sample
reports to me at v-rxwang@.microsoft.com.
If anything is unclear, feel free to contact me.
Sincerely,
William Wang
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
>From: "Randy_ts" <randy_ts@.nospam.nospam>
>References: <ukEDVEacFHA.2688@.TK2MSFTNGP14.phx.gbl>
<ueyb9YkcFHA.2788@.TK2MSFTNGXA01.phx.gbl>
>Subject: Re: Error: Subreport can not be shown
>Date: Tue, 21 Jun 2005 11:32:22 -0400
>Lines: 78
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
>X-RFC2646: Format=Flowed; Original
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
>Message-ID: <ulcptZndFHA.2180@.TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>NNTP-Posting-Host: 198.77.232.92
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.reportingsvcs:46393
>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>Hi William,
>I have a report that with a list control and each list item takes up a
whole
>page. On the page I have 9 subreports all tied to a Building ID (which is
a
>unique ID =Fields!BuildingID.Value) it seems to work fine on the first
>page but after that I get the Error sub report message.
>
>Randy
>
>
>"William Wang[MSFT]" <v-rxwang@.online.microsoft.com> wrote in message
>news:ueyb9YkcFHA.2788@.TK2MSFTNGXA01.phx.gbl...
>> Hi Randy,
>> Based on my research, this issue does not occur when the dataset of the
>> subreport has no rows. Here I've attached the parent report and the
>> subreport I used for testing purpose. 'Modified Employee Sales Summary'
is
>> the parent report and EmpSalesDetail is the subreport. They are created
>> based on the sample report 'Employee Sales Summary'. After you select
>> 'Pamela Ansman-Wolfe' from the 'Employee' drop down list (while 'Month'
is
>> set to December and Year is set to 2003 by default) and click View
Report,
>> you will find the subreport does not appear and there is not an error.
>> For your issue, I suspect that in some cases you don't pass the correct
>> parameter to the subreport. The probable situation is, your parent report
>> passes a null or blank value to your subreport, but the subreport does
not
>> allow a null or blank value. This will result in the "Subreport could not
>> be shown" error displayed in the parent report. If this is the case, you
>> need to ensure that the correct value is passed to the subreport.
>> Please feel free to let me know if anything is unclear.
>> Sincerely,
>> William Wang
>> Microsoft Online Partner Support
>> When responding to posts, please "Reply to Group" via your newsreader so
>> that others may learn and benefit from your issue.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> --
>>From: "Randy_ts" <randy_ts@.nospam.nospam>
>>Subject: Error: Subreport can not be shown
>>Date: Wed, 15 Jun 2005 07:55:06 -0400
>>Lines: 11
>>X-Priority: 3
>>X-MSMail-Priority: Normal
>>X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
>>X-RFC2646: Format=Flowed; Original
>>Message-ID: <ukEDVEacFHA.2688@.TK2MSFTNGP14.phx.gbl>
>>Newsgroups: microsoft.public.sqlserver.reportingsvcs
>>NNTP-Posting-Host: 198.77.232.92
>>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
>>Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.sqlserver.reportingsvcs:45986
>>X-Tomcat-NG: microsoft.public.sqlserver.reportingsvcs
>>Hello,
>>I have a parameterized subreport and I'm getting this error message when
>>ever my subreport has an empty recordset (which is normal). Is there and
>>anyway to hide this or suppress the error message.
>>Thanks
>>Randy
>>
>
>
Subscribe to:
Posts (Atom)