Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Error "Invalid attempt to call FieldCount when reader is closed" thrown by Report Manager rendering attempt

$
0
0
A report I've just designed runs fine, albeit quite a long time, in Visual Studio/BIDS, but eventually fails when run from Report Manager.  The report is created in SQL Server 2008 R2  Reporting Services, and accesses an IBM DB2 database using IBM DB2 for i IBMDA400 OLE DB Provider (Provider=IBMDA400). 

The report sits there waiting for the query to return the dataset for quite some time, which is expected.  I can view the rising read count for the database job running on the IBM iSeries.  Eventually, however, the database job ends, with no indication of a problem, and the Report Manager web page where the report is supposed to render is merely blank.

The following error appears in the Reporting Services log:

ERROR: An exception has occurred in data set 'dsGrossSalesDiscNet'. Details: System.InvalidOperationException: Invalid attempt to call FieldCount when reader is closed.
   at System.Data.OleDb.OleDbDataReader.get_FieldCount()
   
I assume this means that Reporting Services is using a .Net OleDbDataReader object to read the datastream opened by the IBMDA400 data provider.  I don't see how I have any control over the logic in Microsoft's software that is accessing a get_FieldCount property when it is invalid to do so. I hope this is enough information for someone to hazard a guess as to what is going on.

Viewing all articles
Browse latest Browse all 28687

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>