web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Report design SalesInvoice.Report1 not found in AOT

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

I am getting the following error while trying to generate a Sales Invoice Report.

- I have added the new report design an it has no errors. 

- I have redeployed the report

- The new design is visible under Designs for the SalesInvoice Report in the AOT

This is not the default report design. It is being selected based on the company we are in. So, for Company 1, i want my report format to be Report 1 and for the rest of it, it should be the default format, Report.

I have added the following piece of code in the 'main' method of my 'SalesInvoiceController' Class : 

CompanyId = curExt();
if(!(strCmp(CompanyId, 'Company1')))
{
formLetterController.parmReportName(ssrsReportStr(SalesInvoice, Report1));
}
else <default code continues>

I couldn't find an answer to this online while looking. Please let me know in case any of you have some idea around the same.

Thanks, Nidhi :)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    This is not going to work. You have to override the "outputReport" method in controller class.

    public void outputReport()

    {

       str reportDesign = 'SalesInvoice.Report1';

       this.parmReportName(reportDesign);

       this.parmReportContract().parmReportName(reportDesign);

       formLetterReport.parmReportRun().settingDetail().parmReportFormatName(reportDesign);

       super();

    }

  • Community Member Profile Picture
    on at

    I did that but now i get the error "Error while setting server report parameters. Error message: The item '/DynamicsAX/SalesInvoice.Report1' cannot be found. (rsItemNotFound)"

    I have also commented the original code from the main method.

    I have deployed the report as well as restarted the AOS. Any ideas regarding the same?

  • Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at

    kindly go/navigate to your reporting server by visting reporting server url

    search using text SalesInvoice

    paste text SalesInvoice in search box. now see if really a report named as SalesInvoice.Report1 exists or not???

  • Community Member Profile Picture
    on at

    No i dont :( But i deployed the report again and through Powershell as well.

  • Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at

    well that's quite common mistake and its one of the nasty aspect of Report deployment in AX2012, as compared to previous versions of ax

    if you have access to AOT and Visual Studio. Run AX as admin, right click your Visual Studio Project and click edit. let it be loaded, now, go to solution explorer. right click report and select edit. make sure design named as Report1 is there., now rebuild you project and redeploy the project.

    go to reporting url and make sure rdl file is there

  • Community Member Profile Picture
    on at

    Hi Sohaib,

    That did the trick. Thank you so much. Suddenly i feel stupid for over looking that part.

    But my next question is, it is working perfectly in Test now, and once i move it to Prod, how will i be able to rebuild the solution? We do not have VS installed in Prod for security reasons.

  • Verified answer
    Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at

    on production take the new xpo or model

    import the xpo or model, whatever you like.

    after importing objects, open aot go to reports and select your report, right click and deploy. TEST it on production.

    if it did not worked, do following

    go on SSRS URL of production server, delete Existing RDL and deploy report again from AOT>> Reports>> SSRS>> YourReport>> RightClick deploy

  • Community Member Profile Picture
    on at

    Thanks Sohaib, I am going to try this and see if it works.

    Thanks a lot for your help. :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans