Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Extension of a data provider class

(1) ShareShare
ReportReport
Posted on by 8,201

Just wondering if anyone has faced this issue so far: you have to create an extension for a SSRS report's provider class and add a new table that will be send to the report using the SRSReportDataSetAttribute. All sound good and like it will work, until I get this error "An error occurred during report data sets execution".

The event viewer has only a "An exception occured during Ax Report Provider execution." message.

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Extension of a data provider class

    Hi, Iulian Cordobin

    Can you show me how you insert data to the new tmp table that you created?

  • Suggested answer
    VinodKumarKJ Profile Picture
    5 on at
    RE: Extension of a data provider class

    Hi,

    The issue was with dataset referring to a table where some field was missing.

    It is resolved.

  • Community Member Profile Picture
    on at
    RE: Extension of a data provider class

    I am having same issue. Trying to add new parameter to VendAgingReport.  Extended DP class, Contract class. New field appears on a dialog box but at report execution time i am getting same error " An error occurred during report data sets execution"

  • Gaetano Felice Profile Picture
    on at
    RE: Extension of a data provider class

    Hi Iulian,

    did you found a solution for this issue?

    I am facing the exact problem, but I don' t how to solve it.

    I am extending the report data provider class fr the wmspickinglist report, I am adding a new dataset. The build goes ok, but when I run the report, I am having the error "An exception occured during Ax Report Provider execution."

  • Martin Dráb Profile Picture
    234,669 Most Valuable Professional on at
    RE: Extension of a data provider class

    Is the method returning the data called successfully? It's called later than processReport().

    The best thing would be sharing all details about the error, especially its type and call stack.

  • Iulian Cordobin Profile Picture
    8,201 on at
    RE: Extension of a data provider class

    I would have loved to see this work (it is quite a cool way to extend the DP classes / SSRS reports), but so far seems it either a bug, or maybe a not supported case? (OR maybe I'm missing something...).

  • Iulian Cordobin Profile Picture
    8,201 on at
    RE: Extension of a data provider class

    Hi Martin,

    The error is displayed when the report (and by this I mean standard ssrs implementation code) is already running and passed the populate code in the DP. Debugging it shows that the augmented class is called properly in order to populate (method m1)  the new table (a Regular table with a SetConnection on it); the call to m1 is done in the (base class) ProcessReport method via a delegate / handler subscribed. Looking at the table I see the record (with nolock).

    I wonder, is anywhere in the SSRS execution when the processing engine fails to actually see the DataSetAttribute in the augmented class (reflection failing)?

  • Martin Dráb Profile Picture
    234,669 Most Valuable Professional on at
    RE: Extension of a data provider class

    When do you get the error? Did you try to debug it?

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans