Skip to Content
0
Former Member
Dec 12, 2011 at 11:40 PM

Invalid Argument Provided/Invalid Argument for Database exception

311 Views

Hi all,

Since consuming a web service as a datasource with .NET is not really recommended I am attempting to consume the web service in code, take the results and create an ADO.NET dataset, and use that dataset as the datasource for the report. This all works just fine until I try a report with a few hundred rows of data.

The report is fairly simple with just a single table containing four string fields and one byte array containing an image. Because of the image, this dataset is using a large amount of data (~20 mb). So I am suspecting that this is really some sort of a memory issue but the exception doesn't seem to reflect that. Below is the exception I am getting, with the stack trace.

I would appreciate any ideas of what the problem may be.

Oh, yes, I have verified that it isn't the specific data that I am supplying. I have generated the report in smaller chunks with the same data and had no problem with it.

Thanks,

David

****************************************

Exception message: Invalid Argument provided.

Error in File ImagesReport {B49B78E7-76B3-46B6-AC16-1E469064F072}.rpt:

Invalid argument for database.

Stack Trace: at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)

at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)

at ReportService.ReportService.GenReport(Int32 ReportId, String Parameters, Boolean ContinueIfNoData, OutputType Disposition, String Filename, Nullable`1 Persist, String FtpCredentialId, String PrinterName) in C:\Projects\ReportService\Sources\ReportService\ReportService\ReportService.svc.vb:line 521

****************************************

Inner Exception message: Invalid Argument provided.

Error in File ImagesReport {B49B78E7-76B3-46B6-AC16-1E469064F072}.rpt:

Invalid argument for database.

Stack Trace: at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)

at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)