SubReport SSRS 10.1.500

I’m stumped and could really use some help.

Report
I’m trying to add a Tracking Number column from ShipHead.TrackingNumber to the ARForm by introducing a subreport into the ARForm Report, SSRS. I’ve setup the ShipHead to link with InvcDtl on RDD (Report Data Definition). In SQL terms it would be:
LEFT JOIN (This would be OUTPUT in RDD)
ShipHead ON InvcDtl.Company = ShipHead.Company AND InvcDtl.PackNum = ShipHead.PackNum AND InvcDtl,CustNum = ShipHead.CustNum

No matter what I’ve tried I get the error message from the Log:

The Log
processing!ReportServer_0-5!63a0!02/25/2017-18:14:35:: e ERROR: An error has occurred while processing a sub-report. Details: Data retrieval failed for the subreport, ‘TrackingNumber’, located at: /TESTDB/reports/CustomReports/Cust_ARForm/ARForm_Shipping. Please check the log files for more information. Stack trace:
at Microsoft.ReportingServices.OnDemandReportRendering.SubReport.FinalizeErrorMessageAndThrow()
at Microsoft.ReportingServices.OnDemandReportRendering.SubReport.RetrieveSubreport()

This tells me the problem resides in the RDD, but I don’t see the issue.

Below are some pics that show my settings and SSRS:
Table InvcDtl

Relationship InvcDtl to ShipHead

Subreport TrackingNumber’s Parameters

The Subreport Field on the ARForm Parameters

Thank you guys for your help! You have no idea how much hair I have in my fists.

Jonathan Lang

Did you add the field to the sql query in the SSRS dataset?

Rebecca

Thank you for your support, Rebecca.

I’m not quite following your question.

It’s a subreport, not an added table, if that’s what you mean. The main ARForm’s expression in the Dataset doesn’t contain the field from the Subreport. It’s linked from the Subreport to the ARForm report by the Parameters.

If you mean does the Expression have the linked fields from InvcDtl, yes it does. T2.CustNum AS InvcDtl_CustNum, T2.Company AS InvcDtl_Company, T2.Packnum. They’re shown in the last image I posted.

Jonathan

Find SSRS log, there will be exact error text.

The directory should look like this
C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\LogFiles

But MSRS13.MSSQLSERVER part can differ for your installation.

Perhaps I’m misunderstanding? I understood that your desire was to obtain ShipHead.TrackingNumber via a sub report. If so; after you modified the rdd; did you add a link between ShipHead and InvcDtl to the sub report sql in the expression of the respective dataset? And if so; did you add yShipHead.TrackingNumber to the fields list?

Rebecca

1 Like

Rebecca,

My bad I totally misunderstood you! :scream:

You know what though, I forgot to add the Left Join for the InvcDtl in the Subreport.

You’re awesome and thank you for being Very Patient with me.

How funny we stare at something so long and don’t see the obvious.

Jonathan

No problem at all. Hope it works now … enjoy the rest of the weekend!

Rebecca