ajryan/RptToXml

Unhandled Exception: System.Runtime.InteropServices.COMException: Too many links per report.

Closed this issue · 0 comments

When parsing reports with many sub reports SAP throws an unhandled exception.

Unhandled Exception: System.Runtime.InteropServices.COMException: Too many links per report.
my_report_{1125C70A-D5BD-4826-AF7A-2669EACBCAC1}.rpt       
   at CrystalDecisions.ReportAppServer.Controllers.SubreportControllerClass.GetSubreport(String Name)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.GetSubreport(String subreportName)
   at CrystalDecisions.CrystalReports.Engine.Subreports..ctor(ReportDocument doc)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Subreports()
   at RptToXml.RptDefinitionWriter.GetSubreports(ReportDocument report, XmlWriter writer) in C:\Users\chris-pickering\Documents\r_source\rpttoxml_fork\RptToXml\RptDefinitionWriter.cs:line 194
   at RptToXml.RptDefinitionWriter.ProcessReport(ReportDocument report, XmlWriter writer) in C:\Users\chris-pickering\Documents\r_source\rpttoxml_fork\RptToXml\RptDefinitionWriter.cs:line 124
   at RptToXml.RptDefinitionWriter.WriteToXml(XmlWriter writer) in C:\Users\chris-pickering\Documents\r_source\rpttoxml_fork\RptToXml\RptDefinitionWriter.cs:line 72
   at RptToXml.RptDefinitionWriter.WriteToXml(String targetXmlPath) in C:\Users\chris-pickering\Documents\r_source\rpttoxml_fork\RptToXml\RptDefinitionWriter.cs:line 63
   at RptToXml.Program.Main(String[] args) in C:\Users\chris-pickering\Documents\r_source\rpttoxml_fork\RptToXml\Program.cs:line 62

https://answers.sap.com/questions/13526989/unhandled-exception-systemruntimeinteropservicesco.html