Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

how modify SSRS reports in D365

(0) ShareShare
ReportReport
Posted on by 2,030

Greeting everyone i'm  trying to did some change on salesinvoice report (change design of report)

so i'm newbie on d365 by the way

after create my molde i didn't find (Application suite)

1563.ssrsd365.png

 

and is this right way to modify on SSRS report?

  • Verified answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: how modify SSRS reports in D365

    So, it seems that your previous error is now resolved.

    Now you jumped to another report, sales confirmation. In the future, if your problem is resolved, please mark the helfup answer(s) as verified, and post a new question if you have new problems.

    But, I'm answering also your latest question:

    The error indicates that you have changed the name of class PrintMgtDocTypeHandlerExt into PrintMgmtDocTypeHandlersExt in the code editor. This is not allowed - if you want to change the class name, you must right click - Rename the object in the project view.

    To fix it, find the source code xml file (In AOSService/PackagesLocalDirectory/YourPackage/YourModel/AxClass, open it in Notepad (you must run Notepad as administrator), and change the class name (inside the file! Do not rename the file!) back to PrintMgtDocTypeHandlerExt.

    Also, when creating new objects, you should use your prefix when naming the objects, otherwise you might have naming conflicts with future MS updates. It's very important to follow the MS naming guidelines.

    docs.microsoft.com/.../naming-guidelines-extensions

  • mohammed.mqi Profile Picture
    2,030 on at
    RE: how modify SSRS reports in D365
    [quote]

    Did you notice / read my suggestion for this error?

    Let me repeat it:

    "You need to check in AOT to find SrsReportRunController. Then understand in which package it is (you will see the package name next to the class name in AOT). Then add reference from your package to that package."

    1) Did you find SrsReportRunController in AOT?

    2) Did you notice what package it's in?

    3) Did you add reference from your package into that package?

    Once that's done, try to build your model. If you have some new similar errors, read my suggestion again, but replace "SrsReportRunController" with the object that you see in your error message. Repeat until you don't have similar errors anymore.

    Also please try to pay attention to what has been suggested to you. Earlier in this discussion - when you were dealing with another error -  I suggested to add reference to ApplicationSuite package. Then you replied that you still get the same error. However couple of messages later you wrote that your issue was solved by adding reference to ApplicationSuite. So it seems you didn't really follow the suggestion before already reporting that it doesn't work. So, next time, could you try to read through our suggestions carefully and slowly. I'm sure you will make much faster progress this way. Thanks!

    [/quote]

    yes i did i'v checked from Package

    and i add reference to package 

    anyway i also create a new customize on sales conformation and i flow all same steps as here

    https://docs.microsoft.com/en-us/archive/blogs/dynamicsaxbi/how-to-custom-designs-for-business-docs

    and i got those error

    salesconf.JPG

  • Verified answer
    Blue Wang Profile Picture
    on at
    RE: how modify SSRS reports in D365

    HI Mohammed,

    Have you checked SalesInvoiceController class, it extends GiroPrintMgmtFormLetterController.

    In GiroPrintMgmtFormLetterController class, there is no initArgs() method. Also SrsReportRunController no this method ,So you will get error message. 

    The same logic, you can check SalesConfirmController extends TradeDocumentReportController, but in TradeDocumentReportController has initArgs().

    Try to change your code:https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/268943/sales-invoice-report---change-layout-at-runtime

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: how modify SSRS reports in D365

    Did you notice / read my suggestion for this error?

    Let me repeat it:

    "You need to check in AOT to find SrsReportRunController. Then understand in which package it is (you will see the package name next to the class name in AOT). Then add reference from your package to that package."

    1) Did you find SrsReportRunController in AOT?

    2) Did you notice what package it's in?

    3) Did you add reference from your package into that package?

    Once that's done, try to build your model. If you have some new similar errors, read my suggestion again, but replace "SrsReportRunController" with the object that you see in your error message. Repeat until you don't have similar errors anymore.

    Also please try to pay attention to what has been suggested to you. Earlier in this discussion - when you were dealing with another error -  I suggested to add reference to ApplicationSuite package. Then you replied that you still get the same error. However couple of messages later you wrote that your issue was solved by adding reference to ApplicationSuite. So it seems you didn't really follow the suggestion before already reporting that it doesn't work. So, next time, could you try to read through our suggestions carefully and slowly. I'm sure you will make much faster progress this way. Thanks!

  • mohammed.mqi Profile Picture
    2,030 on at
    RE: how modify SSRS reports in D365

    thanks for replay but i don't really know which references will solve my problem

    3125.errorclass.png

  • nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: how modify SSRS reports in D365

    The next step is to share the error message with us, maybe we can help.

    The error that you mentioned previously is fixed by updating your model references. And all similar errors are solved using the same process that I described in my previous post.

  • mohammed.mqi Profile Picture
    2,030 on at
    RE: how modify SSRS reports in D365

    i still getting error and after many search i found this

    community.dynamics.com/.../sales-invoice-extension-error

    but even there's no answer for that

  • Blue Wang Profile Picture
    on at
    RE: how modify SSRS reports in D365

    HI

    Did you add the reference model of SrsReportRunController?

    807051.PNG

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: how modify SSRS reports in D365

    You need to check in AOT to find SrsReportRunController. Then understand in which package it is (you will see the package name next to the class name in AOT). Then add reference from your package to that package.

    Your package can only see objects that either exist in your package, or are in referenced packages. So whenever you use an object from the standard packages, you must add package reference to that package.

  • mohammed.mqi Profile Picture
    2,030 on at
    RE: how modify SSRS reports in D365

    thanks all for respond and here another error when i try to created class that extends the standard report controller

    errorclass.png

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,886 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,766 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans