Aug 12, 2010
Using SSRS 2000 (SP2) - I have several reports that come up fine when displaying the first page. However, upon hitting the arrow in the ReportViewer to move to page 2 (or the last page, doesn't matter) , I get a "Reporting Services Error":
An unexpected error occurred in Report Processing. (rsInternalError)
Specified cast is not valid.I'm going to include below the point in the log at which the error shows up - something to do with GetChunkPointerAndLength... does anyone know what can cause this, and what the workaround or solution might be?
Here's the log info:
w3wp!chunks!3d4!08/12/2010-15:50:53:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!library!3d4!08/12/2010-15:50:53:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
at Microsoft.ReportingServices.Library.SessionReportItem.GetImage(String imageId)
at Microsoft.ReportingServices.Library.RSService.InternalGetReportImageLive(ClientRequest session, CatalogItemContext itemContext, String imageId)
at Microsoft.ReportingServices.Library.RSService.InternalGetReportImage(ClientRequest session, CatalogItemContext itemContext)
at Microsoft.ReportingServices.Library.RSService.GetReportImage(ClientRequest session, CatalogItemContext itemContext)
--- End of inner exception stack trace ---
w3wp!webserver!3d4!08/12/2010-15:50:58:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.InvalidCastException: Specified cast is not valid.
w3wp!library!3d4!08/12/2010-15:51:06:: i INFO: Call to RenderNext( '/MasterReconciliationByType/WillCallwCC' )
w3wp!chunks!3d4!08/12/2010-15:51:06:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!processing!3d4!08/12/2010-15:51:06:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing., ; Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.a(GetReportChunk A_0, CreateReportChunk A_1, Hashtable& A_2, a& A_3, Boolean& A_4)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
--- End of inner exception stack trace ---
w3wp!webserver!3d4!08/12/2010-15:51:11:: e ERROR: Reporting Services error Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.InvalidCastException: Specified cast is not valid.
w3wp!library!c3c!08/12/2010-15:51:51:: i INFO: Call to RenderNext( '/MasterReconciliationByType/WillCallwCC' )
w3wp!chunks!c3c!08/12/2010-15:51:51:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!processing!c3c!08/12/2010-15:51:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing., ; Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.a(GetReportChunk A_0, CreateReportChunk A_1, Hashtable& A_2, a& A_3, Boolean& A_4)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
--- End of inner exception stack trace ---
w3wp!webserver!c3c!08/12/2010-15:51:56:: e ERROR: Reporting Services error Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.InvalidCastException: Specified cast is not valid.
w3wp!session!c3c!08/12/2010-15:52:06:: i INFO: LoadSnapshot: Item with session: vrfg4l451fvetg55mqr3zp45, reportPath: /MasterReconciliationByType/WillCallwCC, userName: MASTER
sexec not found in the database
w3wp!library!c3c!08/12/2010-15:52:06:: i INFO: Call to RenderFirst( '/MasterReconciliationByType/WillCallwCC' )
w3wp!library!c3c!08/12/2010-15:52:11:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
w3wp!webserver!c3c!08/12/2010-15:52:11:: i INFO: Processed report. Report='/MasterReconciliationByType/WillCallwCC', Stream=''
w3wp!chunks!c3c!08/12/2010-15:52:11:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!library!c3c!08/12/2010-15:52:11:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
at Microsoft.ReportingServices.Library.SessionReportItem.GetImage(String imageId)
at Microsoft.ReportingServices.Library.RSService.InternalGetReportImageLive(ClientRequest session, CatalogItemContext itemContext, String imageId)
at Microsoft.ReportingServices.Library.RSService.InternalGetReportImage(ClientRequest session, CatalogItemContext itemContext)
at Microsoft.ReportingServices.Library.RSService.GetReportImage(ClientRequest session, CatalogItemContext itemContext)
--- End of inner exception stack trace ---
w3wp!webserver!c3c!08/12/2010-15:52:16:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.InvalidCastException:
Specified cast is not valid.
w3wp!library!1e50!08/12/2010-15:52:23:: i INFO: Call to RenderNext( '/MasterReconciliationByType/WillCallwCC' )
w3wp!chunks!1e50!08/12/2010-15:52:23:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!processing!1e50!08/12/2010-15:52:23:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing., ;
Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.a(GetReportChunk A_0, CreateReportChunk A_1, Hashtable& A_2, a& A_3, Boolean& A_4)
at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.RenderSnapshot(CreateReportChunk createChunkCallback, RenderingContext rc, GetResource getResourceCallback)
--- End of inner exception stack trace ---
w3wp!webserver!1e50!08/12/2010-15:52:28:: e ERROR: Reporting Services error Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.InvalidCastException: Specified cast is not valid.
w3wp!session!3d4!08/12/2010-15:56:51:: i INFO: LoadSnapshot: Item with session: gavqaq55mhxzux45xiaulrfe, reportPath: /MasterReconciliationByType/WillCallwCC, userName: MASTER
sexec not found in the database
w3wp!library!3d4!08/12/2010-15:56:51:: i INFO: Call to RenderFirst( '/MasterReconciliationByType/WillCallwCC' )
w3wp!library!3d4!08/12/2010-15:56:54:: i INFO: Initializing EnableExecutionLogging to 'True' as specified in Server system properties.
w3wp!webserver!3d4!08/12/2010-15:56:54:: i INFO: Processed report. Report='/MasterReconciliationByType/WillCallwCC', Stream=''
w3wp!chunks!3d4!08/12/2010-15:56:54:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!library!3d4!08/12/2010-15:56:54:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details., ; Info: Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
at Microsoft.ReportingServices.Library.SessionReportItem.GetImage(String imageId)
at Microsoft.ReportingServices.Library.RSService.InternalGetReportImageLive(ClientRequest session, CatalogItemContext itemContext, String imageId)
at Microsoft.ReportingServices.Library.RSService.InternalGetReportImage(ClientRequest session, CatalogItemContext itemContext)
at Microsoft.ReportingServices.Library.RSService.GetReportImage(ClientRequest session, CatalogItemContext itemContext)
--- End of inner exception stack trace ---
w3wp!webserver!3d4!08/12/2010-15:56:59:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.InternalCatalogException: An internal error occurred on the report server. See the error log for more details. ---> System.InvalidCastException: Specified cast is not valid.
w3wp!library!3d4!08/12/2010-15:59:39:: i INFO: Call to RenderFirst( '/MasterReconciliationByType/SalesDetailAll' )
w3wp!chunks!3d4!08/12/2010-15:59:41:: e ERROR: GetChunkPointerAndLength: System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
w3wp!reportrendering!3d4!08/12/2010-15:59:41:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException: Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown., ; Info: Microsoft.ReportingServices.ReportProcessing.WrapperReportRenderingException: Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. ---> Microsoft.ReportingServices.ReportRendering.ReportRenderingException: Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. ---> System.InvalidCastException: Specified cast is not valid.
at System.Data.SqlClient.SqlDataReader.GetSqlByte(Int32 i)
at System.Data.SqlClient.SqlDataReader.GetByte(Int32 i)
at Microsoft.ReportingServices.Library.ChunkStorage.GetChunkPointerAndLength(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, Object& chunkPointer, Int64& chunkLength, String& mimeType, ChunkFlags& chunkFlags)
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream.OpenReadStream()
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SqlChunkReadStream..ctor(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType)
at Microsoft.ReportingServices.Library.SnapshotChunkStreamFactory.CreateReadStream(Guid snapshotDataID, Boolean isPermanentSnapshot, String chunkName, Int32 chunkType, String& mimeType)
at Microsoft.ReportingServices.Library.ReportSnapshot.GetReportChunk(String name, ReportChunkTypes type, String& mimeType)
View 3 Replies