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)
and is this right way to modify on SSRS report?
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)
and is this right way to modify on SSRS report?
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.
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
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
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!
thanks for replay but i don't really know which references will solve my problem
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.
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
HI
Did you add the reference model of SrsReportRunController?
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.
thanks all for respond and here another error when i try to created class that extends the standard report controller
André Arnaud de Cal...
292,886
Super User 2025 Season 1
Martin Dráb
231,766
Most Valuable Professional
nmaenpaa
101,156
Moderator