Showing posts with label row. Show all posts
Showing posts with label row. Show all posts

Thursday, March 29, 2012

ETL : rows with Errors

I'm using a "Execute SQL Task" to run a stored procedure to populate a Fact table in our dimensional datawarehouse. There is one row which violates a foreign key constraint, which causes the entire task to fail so zero rows are loaded. Is there any way to grab the offending row and send it off to some holding ground and go ahead and load the rest of the rows.

I'm using Execute SQL Task mostly because I am very comfortable with writing SQL whereas the rest of SSIS is a bit unfamiliar to me, but I'm guessing that to handle error rows I might have to change to a different kind of task ?

Thanks

Richard

The best way to do this is to use a lookup in the dataflow to determine if the incoming record violates foreign key rules.

As far as your stored procedure goes, head over to the Transact-SQL forum for help with that.

estimating maximum row size

hi,
give a table definition, how can i estimate the maximum row size ?
eg:
table (a varchar(8000),
b varchar(100))
the row size (from the column lengths) is 8100, but actually it is more than
that.
i know that coz when i create the above table i get an error as:
Warning: The table 'size_test' has been created but its maximum row size
(8125) exceeds the maximum number of bytes per row (8060). INSERT or UPDATE
of a row in this table will fail if the resulting row length exceeds 8060
bytes.
i would like to check against this limit. that is why i need the max row size.
thanks
--
Vivek T S
Member Technical Staff (Inucom)Hello,
Check the following link
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/architec/8_ar_ts_8dbn.asp which gives
the max size per row as 8060 bytes.
I would sugest you change your varchar to something like a
text for some other large object. The reason is that they
can store a lot more than 8060 and still be on the same
table as other fields.
Peter
"Happiness is nothing more than good health and a bad
memory."
Albert Schweitzer
>--Original Message--
> hi,
> give a table definition, how can i estimate the
maximum row size ?
> eg:
> table (a varchar(8000),
> b varchar(100))
>the row size (from the column lengths) is 8100, but
actually it is more than
>that.
>i know that coz when i create the above table i get an
error as:
>Warning: The table 'size_test' has been created but its
maximum row size
>(8125) exceeds the maximum number of bytes per row
(8060). INSERT or UPDATE
>of a row in this table will fail if the resulting row
length exceeds 8060
>bytes.
>i would like to check against this limit. that is why i
need the max row size.
>thanks
>--
>Vivek T S
>Member Technical Staff (Inucom)
>.
>sql

Tuesday, March 27, 2012

Estimated row count vs. actual row count

Hello!
I was trying to troubleshoot a query. Very last step show estimated
rowcount=142386. When query is executed, it returns only 7234 rows. I
executed UPDATE STATISTICS ... WITH FULLSCAN against all tables involved in
this query but this didn't make a difference. I am not sure what else I can
do at this point.
Any advice is a greatly appreciated,
IgorIf you're referring to "estimated rowcount" in the show execution plan
screen of Query Analyzer, that just refers to how many rows were processed
by that specific step in the processing... The number of rows the query
eventually produces can be and most often is very different..
This is Nothing to be concerned about.
"Igor Marchenko" wrote:

> Hello!
> I was trying to troubleshoot a query. Very last step show estimated
> rowcount=142386. When query is executed, it returns only 7234 rows. I
> executed UPDATE STATISTICS ... WITH FULLSCAN against all tables involved i
n
> this query but this didn't make a difference. I am not sure what else I ca
n
> do at this point.
> Any advice is a greatly appreciated,
> Igor
>
>|||Yes, I am referring to execution plan in Query Analyzer. I got concerned
after reading following article:
http://www.windowsitpro.com/sqlserv...61.html

For other queries there is no discrepancy between estimated and actual
number of rows.
"CBretana" <cbretana@.areteIndNOSPAM.com> wrote in message
news:0DF221BF-921A-4D4A-9963-6FD335621588@.microsoft.com...
> If you're referring to "estimated rowcount" in the show execution plan
> screen of Query Analyzer, that just refers to how many rows were
> processed
> by that specific step in the processing... The number of rows the query
> eventually produces can be and most often is very different..
> This is Nothing to be concerned about.
>
> "Igor Marchenko" wrote:
>|||OK, read the article... The author's first comment, "Yes go ahead and
worry..." is a bit overkill - in that he is talking to a point extraneous to
the question he was asked...
He was asked about whether there's an issue simply because the numbers are
different. But he answered based on the fact the "estimated" Number is HIGH
.
Any time you see an "estimated rowCount" number much higher than the actual
number that were generated, then the Query Optimizer might not be choosing
the "fastest" most efficient option in processing the query... the accuracy
or completeness of the data results will not be affected, only the speed at
which it is generated.
"Igor Marchenko" wrote:

> Yes, I am referring to execution plan in Query Analyzer. I got concerned
> after reading following article:
> http://www.windowsitpro.com/sqlserv...61.ht
ml
> For other queries there is no discrepancy between estimated and actual
> number of rows.
> "CBretana" <cbretana@.areteIndNOSPAM.com> wrote in message
> news:0DF221BF-921A-4D4A-9963-6FD335621588@.microsoft.com...
>
>|||That's exactly why I am worried : 'Query Optimizer might not be choosing
the "fastest" most efficient option in processing the query'. I do know
accuracy won't be affected.
"CBretana" <cbretana@.areteIndNOSPAM.com> wrote in message
news:2BE6C2AB-8D39-4D79-ACC6-D0DBB427F651@.microsoft.com...
> OK, read the article... The author's first comment, "Yes go ahead and
> worry..." is a bit overkill - in that he is talking to a point extraneous
> to
> the question he was asked...
> He was asked about whether there's an issue simply because the numbers are
> different. But he answered based on the fact the "estimated" Number is
> HIGH.
> Any time you see an "estimated rowCount" number much higher than the
> actual
> number that were generated, then the Query Optimizer might not be choosing
> the "fastest" most efficient option in processing the query... the
> accuracy
> or completeness of the data results will not be affected, only the speed
> at
> which it is generated.
> "Igor Marchenko" wrote:
>|||Igor, I found this link:
http://msdn.microsoft.com/library/d...
etchapt14.asp
On it I extracted this bit if text...
Compare Actual vs. Estimated Rows and Executions
When you read the output from a SHOWPLAN statement, start from the
most-indented row that has the highest incremental change in the
TotalSubtreeCost column. Carefully evaluate both the index selection and the
optimizer's estimate by using the SET STATISTICS PROFILE ON command. This
command runs the statement, so only use it on SELECT statements or T-SQL cod
e
that does not modify data, or you can preface the command with a BEGIN TRAN
/ROLLBACK statement.
As an alternative, use the new profiler Performance:Showplan Statistics
event in SQL 2000. This event belongs to event class 98. This event reports
four columns that show estimated and actual rows and executions. You must
select the Binary Data column before the profiler event adds data to the
T-SQL or SP:stmtcompleted events.
Substantial differences in the estimated row count may indicate the
optimizer had out-of-date statistics or skewed statistics. For example, if
the estimated row count is 2 rows, and the actual row count is 50,000, the
optimizer may have had out-of-date statistics or skewed statistics. Try usin
g
the UPDATE STATISTICS WITH FULLSCAN command.
Hth,
Charly
"Igor Marchenko" wrote:

> That's exactly why I am worried : 'Query Optimizer might not be choosing
> the "fastest" most efficient option in processing the query'. I do know
> accuracy won't be affected.
> "CBretana" <cbretana@.areteIndNOSPAM.com> wrote in message
> news:2BE6C2AB-8D39-4D79-ACC6-D0DBB427F651@.microsoft.com...
>
>|||Charly,
I did execute UPDATE STATISTICS WITH FULLSCAN but it didn't correct
discrepancies between estimated and actual number of rows.
Regards,
Igor
"CBretana" <cbretana@.areteIndNOSPAM.com> wrote in message
news:A427092E-9686-4F08-B9F3-115B8C313DA7@.microsoft.com...
> Igor, I found this link:
> http://msdn.microsoft.com/library/d...enetchapt14.asp
> On it I extracted this bit if text...
> Compare Actual vs. Estimated Rows and Executions
> When you read the output from a SHOWPLAN statement, start from the
> most-indented row that has the highest incremental change in the
> TotalSubtreeCost column. Carefully evaluate both the index selection and
> the
> optimizer's estimate by using the SET STATISTICS PROFILE ON command. This
> command runs the statement, so only use it on SELECT statements or T-SQL
> code
> that does not modify data, or you can preface the command with a BEGIN
> TRAN
> /ROLLBACK statement.
> As an alternative, use the new profiler Performance:Showplan Statistics
> event in SQL 2000. This event belongs to event class 98. This event
> reports
> four columns that show estimated and actual rows and executions. You must
> select the Binary Data column before the profiler event adds data to the
> T-SQL or SP:stmtcompleted events.
> Substantial differences in the estimated row count may indicate the
> optimizer had out-of-date statistics or skewed statistics. For example, if
> the estimated row count is 2 rows, and the actual row count is 50,000, the
> optimizer may have had out-of-date statistics or skewed statistics. Try
> using
> the UPDATE STATISTICS WITH FULLSCAN command.
> Hth,
> Charly
> "Igor Marchenko" wrote:
>|||When the optimizer's rowcount estimates are incorrect, often
statistics cannot remedy the problem. For many query plan
operators, the actual rowcount depends on the distribution
of values in two separate columns (perhaps in two separate
tables), and as far as I know, SQL Server keeps no statistics
on how the values in multiple columns are correlated. In
addition, there is no feedback mechanism to do anything with
the information you're seeing - that the actual and estimated
counts are very different.
I have often seen suboptimal query plans be chosen as a
result of this situation, but more often than not, the best
query plan is still being chosen, even though its cost is not
estimated correctly. When there is a better plan the optimizer
is missing, it's my experience that the culprit is less often the
bad rowcounts than that the indexes available are not ideal.
For instance, many queries benefit from nonclustered indexes
on more than a single column, but many designers never define
indexes on more than one column at a time.
Without seeing the query and actual query plan, and assuming
that some basic tuning has already been done to make sure
no more filters can be made SARGable than already are, I can
suggest a couple of things to look for - beyond that, if you post the
query and plan, along with the create table and create index
statements, we can take a further look.
First, if the bad rowcounts appear in parallel operators, you
might try adding the hint OPTION (MAXDOP 1) and see if
performance improves. Bad rowcounts can cause parallelism
to be used in countereffective ways. Second, if you can
identify the particular WHERE conditions that the optimizer
is costing poorly (the optimizer expects many more rows to
satisfy the conditions that actually do), try adding one or more
non-SARGable dummy conditions at the same point in the
query and see if the estimates are more accurate. For example,
if the condition A.col1 = B.col1 is estimated poorly, where
these two columns are integers, try
(A.col1 = B.col1 AND -A.col1 = -B.col1), or try (A.col1 =
B.col1 AND A.col1%2 < 2 AND B.col1%2 < 2). If date
columns are involved, add something like ...
AND MONTH(A.datecolumn) > 0. Be sure to use parentheses
so you don't change the meaning of your query due to the way
AND and OR are associated. The query optimizer handles
non-SARGable predicates generically and this may help out.
A simpler situation where the rowcounts can be
wrong is for non-SARGable conditions
like MONTH(datecolumn) = 1 or like
DATEADD(d,30,datecolumn) > GETDATE(). Here
the optimizer will generally use generic estimates (perhaps
something like "gee, I think about a third of the rows will
satisfy a > condition, no matter what the condition is").
Sometimes the condition can be rewritten so the optimizer
can use statistics instead of a generic estimate.
The second of these examples can better be written as
datecolumn > DATEADD(d,-30,GETDATE()), which
is SARGable. The first can't be SARGed on its own, but
if it is there for something like MONTH(datecolumn) = 1
AND YEAR(datecolumn) = 2005, it can be rewritten as
(datecolumn >= '20050101' and datecolumn < '20050201').
Feel free to post more details.
Steve Kass
Drew University
Igor Marchenko wrote:

>Charly,
>I did execute UPDATE STATISTICS WITH FULLSCAN but it didn't correct
>discrepancies between estimated and actual number of rows.
>Regards,
>Igor
>
>"CBretana" <cbretana@.areteIndNOSPAM.com> wrote in message
>news:A427092E-9686-4F08-B9F3-115B8C313DA7@.microsoft.com...
>
>
>|||"Steve Kass" <skass@.drew.edu> wrote in message
news:ev8gWnZNFHA.3380@.TK2MSFTNGP15.phx.gbl...

> (A.col1 = B.col1 AND -A.col1 = -B.col1), or try (A.col1 =
> B.col1 AND A.col1%2 < 2 AND B.col1%2 < 2). If date
> columns are involved, add something like ...
> AND MONTH(A.datecolumn) > 0. Be sure to use parentheses
> so you don't change the meaning of your query due to the way
> AND and OR are associated.
Since AND has a higher precedence than OR, I think this caveat would only
apply if NOTs were involved. It never hurts to include extra parentheses, of
course, but in this case, I don't see that they're necessary.
Excellent post, as usual.|||Thank you Steve for your more than elaborate answer! I was able to
speed the query up by implementing clustered index on different set of
columns. Query plan has changed completely. Instead of using hash and merge
joins, SQL server is using inner loop joins.Overall query cost went down
from 137 to 56.1. I am currently verifying all queries accessing table in
question to make sure there is no side affect as a result of different
clustered index. I was wondering if you could provide a reference on where
to read more about query optimization techniques (statistics, better index
selection, etc.)
Thanks,
Igor

Estimate time to populate full text index

Can someone give me an estimate time to populate a full-
text index, SQL Server 2000:
-14 million rows,
- each row is about 1 paragraph long. (approx 400 words and is stored in a LONG TEXT field)
- Language of the text: mixed.
- W.H.:a single CPU 2.8GHZ with 2GB Ram and have 300GB disk space
-incremental.
it has been running for 3 days now and who knows where we are...
Any way to speed up..
Thanks
mustafa,
Given your hardware configuration, and a table with 14 million rows will
take a substitational amount of time, approx 5 to 8 days.
Your best bet is to attempt to stop the Full or Incremental population and
consider horzatioanlly partitioning the table into several smaller tables,
perhaps broken up by date or PK range. If you plan to continue this, I'd
highly recommend that you consider upgrading all aspects of your hardware.
Specifically, consider a multiple CPU server with 2 or more GB of RAM with
your FT Catalogs on a separate disk controller and disk array configured as
RAID0 or RAID10. You should also set the resource_usage level of the
MSSearch service to 5 via sp_fulltext_service 'resource_usage', 5. However,
this will not help you now. I'd also recommend that you review the SQL
Server 2000 BOL title "Full-text Search Recommendations" and the following
FT Deployment white paper: INF: SQL Server 2000 Full-Text Search Deployment
White Paper at:
http://support.microsoft.com/default...b;en-us;323739
Regards,
John
"mustafa jarrar" <anonymous@.discussions.microsoft.com> wrote in message
news:6EC893FD-DD03-4FA1-BE01-052A19EB03AB@.microsoft.com...
> Can someone give me an estimate time to populate a full-
> text index, SQL Server 2000:
> -14 million rows,
> - each row is about 1 paragraph long. (approx 400 words and is stored in a
LONG TEXT field)
> - Language of the text: mixed.
> - W.H.:a single CPU 2.8GHZ with 2GB Ram and have 300GB disk space
> -incremental.
> it has been running for 3 days now and who knows where we are...
> Any way to speed up..
> Thanks
>

Sunday, February 26, 2012

Error{no row is was updated}

hey expert out ther..

i have encounter this error ..and i dont know what is the wrong with it..

the error goes:

No row was updated

Error source: .net SQLClient Data provider

Error Message:string or binary data would be trancated.

plz help me to slove this prob.

thanks in advance!!!!!!!

Could you please provide more information, code sample causing this error?

Thanks

|||

Ehm.......there was no code thats cause this error...

It was ok when i just add data in two rows...but once i input more than 2 rows..

this error will occur!!!!!

|||

Hi

I guess you mean, that you see this error, when you put in data in tht sql management programm to the opended database table.

I have the same errormessage. There are at about 8 tables and different relations, quite a small database. When I'm trying to change table properties and klick the save button the wizard shows me the other affected tables and tells me, that there could be errors with the rowguid column. And of course there are problems and changes to the table properties aren't able.

Besides I think, that also this rowguid column has something to do with the errormessage we get, because when entering a new row, no "uniqueidentifier" is generated in the specified column of rowguid.

I hope that now someone could help us.

best regards

Hannes

Error:rsErrorReadingNextDataRow

An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the data set PerfAnalysis. (rsErrorReadingNextDataRow)
Please Help!Thanks!Sorry, you need to let us know some more information.

Which version / build of Reporting Services are you using?
Which data source are you using?

If you right click on the error page and select View Source, you should be able to see the stack trace.|||Thank you all the same.
The problem is solved.
It is data source.|||

Hello Brian,

We are also facing the same problem. We are getting following two messages on the error page. We are using reporting services 2000.

An error has occurred during report processing. (rsProcessingAborted) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsProcessingAborted&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

Cannot read the next data row for the data set DsCheck. (rsErrorReadingNextDataRow) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsErrorReadingNextDataRow&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

When we executed the stored procedure from the Query Analyzer we get the proper output without any error. There is no clue as to why next row is not getting read.

Thanks for your help.

Atul

|||

Hi,

I have the same problem now, what is the solution ?

Regards.

Mario

|||

Did any one find the solution for this?. I have the same problem for one my report. other reports works fine. All uses the same datasource

Error:rsErrorReadingNextDataRow

An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the data set PerfAnalysis. (rsErrorReadingNextDataRow)
Please Help!Thanks!Sorry, you need to let us know some more information.

Which version / build of Reporting Services are you using?
Which data source are you using?

If you right click on the error page and select View Source, you should be able to see the stack trace.|||Thank you all the same.
The problem is solved.
It is data source.|||

Hello Brian,

We are also facing the same problem. We are getting following two messages on the error page. We are using reporting services 2000.

An error has occurred during report processing. (rsProcessingAborted) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsProcessingAborted&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

Cannot read the next data row for the data set DsCheck. (rsErrorReadingNextDataRow) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsErrorReadingNextDataRow&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

When we executed the stored procedure from the Query Analyzer we get the proper output without any error. There is no clue as to why next row is not getting read.

Thanks for your help.

Atul

|||

Hi,

I have the same problem now, what is the solution ?

Regards.

Mario

|||

Did any one find the solution for this?. I have the same problem for one my report. other reports works fine. All uses the same datasource

Error:rsErrorReadingNextDataRow

An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the data set PerfAnalysis. (rsErrorReadingNextDataRow)
Please Help!Thanks!Sorry, you need to let us know some more information.

Which version / build of Reporting Services are you using?
Which data source are you using?

If you right click on the error page and select View Source, you should be able to see the stack trace.|||Thank you all the same.
The problem is solved.
It is data source.|||

Hello Brian,

We are also facing the same problem. We are getting following two messages on the error page. We are using reporting services 2000.

An error has occurred during report processing. (rsProcessingAborted) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsProcessingAborted&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

Cannot read the next data row for the data set DsCheck. (rsErrorReadingNextDataRow) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsErrorReadingNextDataRow&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

When we executed the stored procedure from the Query Analyzer we get the proper output without any error. There is no clue as to why next row is not getting read.

Thanks for your help.

Atul

|||

Hi,

I have the same problem now, what is the solution ?

Regards.

Mario

|||

Did any one find the solution for this?. I have the same problem for one my report. other reports works fine. All uses the same datasource

|||

Even i m facing same problem at client place. Did any one find the solution for this?

I guess this error might be related one of the following two things

1 Connection.

I am able to reproduce this error only when i disconnected the network during report generation.

2 Permission

The stored procedure might not have sufficient permission. Perticularly when one of the dataset depending upon another dataset. For example when we use formula to hide columns in report based on value of another dataset.

Error:rsErrorReadingNextDataRow

An error has occurred during report processing. (rsProcessingAborted)
Cannot read the next data row for the data set PerfAnalysis. (rsErrorReadingNextDataRow)
Please Help!Thanks!Sorry, you need to let us know some more information.

Which version / build of Reporting Services are you using?
Which data source are you using?

If you right click on the error page and select View Source, you should be able to see the stack trace.|||Thank you all the same.
The problem is solved.
It is data source.|||

Hello Brian,

We are also facing the same problem. We are getting following two messages on the error page. We are using reporting services 2000.

An error has occurred during report processing. (rsProcessingAborted) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsProcessingAborted&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

Cannot read the next data row for the data set DsCheck. (rsErrorReadingNextDataRow) Get Online Help http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings.resources.Strings&EvtID=rsErrorReadingNextDataRow&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=8.00

When we executed the stored procedure from the Query Analyzer we get the proper output without any error. There is no clue as to why next row is not getting read.

Thanks for your help.

Atul

|||

Hi,

I have the same problem now, what is the solution ?

Regards.

Mario

|||

Did any one find the solution for this?. I have the same problem for one my report. other reports works fine. All uses the same datasource

|||

Even i m facing same problem at client place. Did any one find the solution for this?

I guess this error might be related one of the following two things

1 Connection.

I am able to reproduce this error only when i disconnected the network during report generation.

2 Permission

The stored procedure might not have sufficient permission. Perticularly when one of the dataset depending upon another dataset. For example when we use formula to hide columns in report based on value of another dataset.

Wednesday, February 15, 2012

Error: Subreport could not be shown

Hi,
I've been searching everywhere to try and find the solution to my problem.
I have a main report with a subreport. The first row renders the sub report
just fine but for the rest of the rows it gives the error: Error: Subreport
could not be shown.
The parameters I'm passing are valid, and I am also casting them to the data
type the sub report is expecting. Is this some sort of SSRS bug? There
doesn't seem to be a valid solution to this problem. Any help would be much
appreciated.
Thanks,
dev88Yeah, we had the same problem here. In our case, it looks like it has to do
with basing the the Main report and Sub-report on the same Report Model. I
don't know all the details, but when it tries to add the second instance of
the same sup-report, it finds it already has an index entry (where? I'm not
sure) with that id, and can't / won't show it again. Hence, the "Subreport
could not be shown".
Our workaround : rebuild the Sub-Reports without using the Report model; go
directly to the database, and use SQL to bring back the data with same field
names. Oh, and the field names are case-sensitive, so watch out.
I hear there may be fix for this in SP2, when it arrives. (However, I also
heard Elvis playing in the room next door, so my hearing may be bad! :) )
Also, your problem may be something different. But, this worked for us.
Mark
"dev88" <dev88@.discussions.microsoft.com> wrote in message
news:D1FD303C-D618-4F37-B850-CEB7B84E0D81@.microsoft.com...
> Hi,
> I've been searching everywhere to try and find the solution to my problem.
> I have a main report with a subreport. The first row renders the sub
> report
> just fine but for the rest of the rows it gives the error: Error:
> Subreport
> could not be shown.
> The parameters I'm passing are valid, and I am also casting them to the
> data
> type the sub report is expecting. Is this some sort of SSRS bug? There
> doesn't seem to be a valid solution to this problem. Any help would be
> much
> appreciated.
> Thanks,
> dev88|||Thanks for the advice Mark. This is quite a strange problem. My parent
report and my subreport both connect to a shared datasource which is an
analysis services database, therefore I didn't need to use a Report Model.
I did however try to change the datasource of my parent report to get the
data directly from a sql database (so the parent report and sub report
weren't sharing a connection) and now half the subreports are displayed
properly while the other half still display the same error "Error: Subreport
could not be shown". I'm half way there, anyone have any other suggestions?
Thanks.
"theMark" wrote:
> Yeah, we had the same problem here. In our case, it looks like it has to do
> with basing the the Main report and Sub-report on the same Report Model. I
> don't know all the details, but when it tries to add the second instance of
> the same sup-report, it finds it already has an index entry (where? I'm not
> sure) with that id, and can't / won't show it again. Hence, the "Subreport
> could not be shown".
> Our workaround : rebuild the Sub-Reports without using the Report model; go
> directly to the database, and use SQL to bring back the data with same field
> names. Oh, and the field names are case-sensitive, so watch out.
> I hear there may be fix for this in SP2, when it arrives. (However, I also
> heard Elvis playing in the room next door, so my hearing may be bad! :) )
> Also, your problem may be something different. But, this worked for us.
> Mark
>
> "dev88" <dev88@.discussions.microsoft.com> wrote in message
> news:D1FD303C-D618-4F37-B850-CEB7B84E0D81@.microsoft.com...
> > Hi,
> >
> > I've been searching everywhere to try and find the solution to my problem.
> > I have a main report with a subreport. The first row renders the sub
> > report
> > just fine but for the rest of the rows it gives the error: Error:
> > Subreport
> > could not be shown.
> >
> > The parameters I'm passing are valid, and I am also casting them to the
> > data
> > type the sub report is expecting. Is this some sort of SSRS bug? There
> > doesn't seem to be a valid solution to this problem. Any help would be
> > much
> > appreciated.
> >
> > Thanks,
> > dev88
>
>|||"dev88" wrote:
> Thanks for the advice Mark. This is quite a strange problem. My parent
> report and my subreport both connect to a shared datasource which is an
> analysis services database, therefore I didn't need to use a Report Model.
> I did however try to change the datasource of my parent report to get the
> data directly from a sql database (so the parent report and sub report
> weren't sharing a connection) and now half the subreports are displayed
> properly while the other half still display the same error "Error: Subreport
> could not be shown". I'm half way there, anyone have any other suggestions?
> Thanks.
> "theMark" wrote:
> > Yeah, we had the same problem here. In our case, it looks like it has to do
> > with basing the the Main report and Sub-report on the same Report Model. I
> > don't know all the details, but when it tries to add the second instance of
> > the same sup-report, it finds it already has an index entry (where? I'm not
> > sure) with that id, and can't / won't show it again. Hence, the "Subreport
> > could not be shown".
> >
> > Our workaround : rebuild the Sub-Reports without using the Report model; go
> > directly to the database, and use SQL to bring back the data with same field
> > names. Oh, and the field names are case-sensitive, so watch out.
> >
> > I hear there may be fix for this in SP2, when it arrives. (However, I also
> > heard Elvis playing in the room next door, so my hearing may be bad! :) )
> > Also, your problem may be something different. But, this worked for us.
> >
> > Mark
> >
> >
> > "dev88" <dev88@.discussions.microsoft.com> wrote in message
> > news:D1FD303C-D618-4F37-B850-CEB7B84E0D81@.microsoft.com...
> > > Hi,
> > >
> > > I've been searching everywhere to try and find the solution to my problem.
> > > I have a main report with a subreport. The first row renders the sub
> > > report
> > > just fine but for the rest of the rows it gives the error: Error:
> > > Subreport
> > > could not be shown.
> > >
> > > The parameters I'm passing are valid, and I am also casting them to the
> > > data
> > > type the sub report is expecting. Is this some sort of SSRS bug? There
> > > doesn't seem to be a valid solution to this problem. Any help would be
> > > much
> > > appreciated.
> > >
> > > Thanks,
> > > dev88
> >
> >
> >|||I have a similar symptom. I have a main report with several subreports. The
truly odd thing is that this report has run correctly for many months.
Recently we have had this symptom showing up after about 5 or 6 pages. I
cannot see an errors showing up when I use the profiler. We are getting our
enterprise IT group to install some other diagnostic tools to see if there is
something else going on. I am beginning to suspect some system problem at a
lower level than Reporting services. I would very much like to hear from
anyone else who has this problem.
Stuart
"dev88" wrote:
> Thanks for the advice Mark. This is quite a strange problem. My parent
> report and my subreport both connect to a shared datasource which is an
> analysis services database, therefore I didn't need to use a Report Model.
> I did however try to change the datasource of my parent report to get the
> data directly from a sql database (so the parent report and sub report
> weren't sharing a connection) and now half the subreports are displayed
> properly while the other half still display the same error "Error: Subreport
> could not be shown". I'm half way there, anyone have any other suggestions?
> Thanks.
> "theMark" wrote:
> > Yeah, we had the same problem here. In our case, it looks like it has to do
> > with basing the the Main report and Sub-report on the same Report Model. I
> > don't know all the details, but when it tries to add the second instance of
> > the same sup-report, it finds it already has an index entry (where? I'm not
> > sure) with that id, and can't / won't show it again. Hence, the "Subreport
> > could not be shown".
> >
> > Our workaround : rebuild the Sub-Reports without using the Report model; go
> > directly to the database, and use SQL to bring back the data with same field
> > names. Oh, and the field names are case-sensitive, so watch out.
> >
> > I hear there may be fix for this in SP2, when it arrives. (However, I also
> > heard Elvis playing in the room next door, so my hearing may be bad! :) )
> > Also, your problem may be something different. But, this worked for us.
> >
> > Mark
> >
> >
> > "dev88" <dev88@.discussions.microsoft.com> wrote in message
> > news:D1FD303C-D618-4F37-B850-CEB7B84E0D81@.microsoft.com...
> > > Hi,
> > >
> > > I've been searching everywhere to try and find the solution to my problem.
> > > I have a main report with a subreport. The first row renders the sub
> > > report
> > > just fine but for the rest of the rows it gives the error: Error:
> > > Subreport
> > > could not be shown.
> > >
> > > The parameters I'm passing are valid, and I am also casting them to the
> > > data
> > > type the sub report is expecting. Is this some sort of SSRS bug? There
> > > doesn't seem to be a valid solution to this problem. Any help would be
> > > much
> > > appreciated.
> > >
> > > Thanks,
> > > dev88
> >
> >
> >