I’ve tried passing parameters to a BAQ report as described in previous posts.
created a baq with an ‘AsOfDate’ parameter which is used in calculated columns to display how old an invoice is based on the ‘AsOfDate’
created a baq report from that baq, downloaded the SSRS report, added totals and some formatting and uploaded the SSRS report
at this point, testing the report from BAQ Report Designer will run but does not use the AsOfDate parameter in the calculated columns since there was no way to provide it
created a Report Data Definition with the baq as the data source
created a Report Criteria Set in the Report Data Definition mapping a prompt for the AsOfDate parameter
created a Report Style for a SQL Server Reporting type with the above data definition and report criteria set
When I run the report from a menu item, the Report Options display the AsOfDate but I get the following error:
The report server shows the following error:
processing!ReportServer_0-76!a34!09/16/2020-11:10:05:: e ERROR: An exception has occurred in data set ‘BAQReportResult’. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset ‘BAQReportResult’. —> System.Data.SqlClient.SqlException: Invalid object name ‘dbo.BAQReportResult_79aee6cd65f34a3ba36f6ba3ba5b6930’.
processing!ReportServer_0-76!1750!09/16/2020-11:10:05:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: [AbnormalTermination:ReportProcessing], Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. —> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset ‘Company’. —> System.Data.SqlClient.SqlException: Invalid object name ‘Company_79aee6cd65f34a3ba36f6ba3ba5b6930’.
Thank you Calvin - I tried that but I need to use the AsOfDate parameter in calculated columns and those calculations did not get the AsOfDate when I did that. I was able to get the Options field to work for filters in the baq but not in calculated columns. Is there a way for me to access that options field value in the ssrs report? Then I can just do the calculations there.
Thank you Jason -
I thought that was what I did - what am I missing?
created a baq with an ‘AsOfDate’ parameter which is used in calculated columns to display how old an invoice is based on the ‘AsOfDate’
created a baq report from that baq, downloaded the SSRS report, added totals and some formatting and uploaded the SSRS report
at this point, testing the report from BAQ Report Designer will run but does not use the AsOfDate parameter in the calculated columns since there was no way to provide it
created a Report Data Definition with the baq as the data source
created a Report Criteria Set in the Report Data Definition mapping a prompt for the AsOfDate parameter
created a Report Style for a SQL Server Reporting type with the above data definition and report criteria set
You can add new Report Style in Standard AR Aging Report and modify the format as per your requirement. That will take care of all calculations and Aging.
adding ReportParam_Date01 as an option field in BAQ Report Designer
Downloading the ssrs report
Cross Joining the BAQReportParameter table and adding the Date01 from the BAQReportParameter table to the list of fields returned by the select in the query expression of the BAQReportResult dataset in the ssrs report
Adding the calculated fields to the Fields dataset property of the BAQReportResult dataset in the ssrs report using the Date01 added above and formatted the report