Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

SSRS Issue - An error occurred during report data sets execution.

(0) ShareShare
ReportReport
Posted on by 35
Hi 
I'm having some trouble using a new SSRS report I've created in Dynamics AX. The report consists of 2 datasets. Both datasets are retrieved from a single data provider. I’m assuming these datasets/sources are setup correctly in the data provider because I can add them as datasets on the report.
 
  • · SrsReportDataSetAttribute is used with tableStr(…) to the source tmp table
  • · SrsReportDataProviderPreProcess is the parent class for my dataprovider
  • · Both tmp tables have a ‘CreatedTransactionId’
 
Error
When running the report, I get the following error:
An error occurred during report data sets execution.
 
Detail (from event viewer):
System.ArgumentException: No report data table with name [REPLACED] exists in report schema for data provider [REPLACED]DP. at Microsoft.Dynamics.AX.Framework.Reporting.Shared.AxReportProviderServiceExecuter.GetDataTable(AxReportProviderQueryElements reportProviderQueryElements) at Microsoft.Dynamics.AX.Framework.Reporting.Shared.AxReportProviderServiceExecuterExtensions.GetDataTableReader(AxReportProviderServiceExecuter executer, AxReportProviderQueryElements reportProviderQueryElements) at Microsoft.Dynamics.Framework.Reports.AxReportProviderCommand.OnExecuteReader(CommandBehavior behavior) at Microsoft.Dynamics.Framework.Reports.DbCommand.ExecuteReader(CommandBehavior behavior)
 
Potential fixes
I’ve already tried the following potential fixes, but none of them actualy fixed the problem:
  • · Clear user cache
  • · Restarting SSRS service
  • · Deleting and re-deploying report on SSRS
  • · Restarting VS and iisexpress
  • · Renaming the report
  • · Renaming the tmp tables (shorter names)
  • · Renaming the datasets
     
  • Full model build and database sync (EDIT: 23/01/2020)
 
Version info
· 2019 release wave 2
· Installed product version : Finance and Operations (10.0.6)
· Installed platform version : Update30 (7.0.5407.35455)
 
Does anyone have any suggestions on how to fix the problem?
Thanks in advance!
  • Jasper Callens Profile Picture
    Jasper Callens 35 on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    Hi

    Apologies for a very late response.

    I have tried all suggestions you mentioned. Executing query, while selecting the table all works. Re-adding the report dataset also does not resolve the issue.

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    moved to the d365 forum

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,759 Super User 2024 Season 2 on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    Hi Jasper,

    That is a good approach. Let us know if you encounter the same issue with the new attempt.

  • Jasper Callens Profile Picture
    Jasper Callens 35 on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    The report has 3 different datasources

    • 1 Header datasource
    • 2 Different repeating datasources

    Everyone of these datasource tables has a CreatedTransactionId because the dataprovider is extending the SrsReportDataProviderPreProcess.

    The issue can be reproduced on another DEV environment. This environment has the same version as the initial DEV machine.

    EDIT: I will try and reproduce the issue again with a report created from scratch. This way I might be able to specifiy what causes the issue exactly.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,759 Super User 2024 Season 2 on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    Can you elaborate a bit more on the report data provider and which tables you used? Is it reproducible in another environment?

  • Jasper Callens Profile Picture
    Jasper Callens 35 on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    Hi André

    Yes I did. Forgot to mention these steps in the question.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,759 Super User 2024 Season 2 on at
    RE: SSRS Issue - An error occurred during report data sets execution.

    Hi Jasper,

    Did you fully build your model and also performed a database sync?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans