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)

SalesInvoice Extension Issue

(0) ShareShare
ReportReport
Posted on by 165

Hi,

  I was tasked to remove a SalesInvoice report Overlay, which existed in a model that extended from ApplicatonSuite, and I copied the existing Design and created a report called SalesInvoice.Extension.  Created a new extension menu, controller class, and event handler for managing the Print management to select the new report.  This worked fine and performed a build over to the Test instance.  Generated an error with the posting of the SalesInvoice and determined the controller class was not properly designed.  Was also advised that I should move the objects from current model to the our custom model.  I used the same naming conventions, and deleted all objects references from the old model.  Then proceeded to check in all objects with in the new model.  Delivered to TEST and noticed the reports still ran the previous version and the posting error still exists.  Renamed all the reports and controller class and set everything properly, moved to TEST and now the report is working correctly.  However, the controller class still behaves like the previous version, so the error message render during posting "Something went wrong while generating the report. Please try again."  As I mention, if I select a record that has already been invoiced, the report runs fine with the new version.  I have cleared USAGE DATA and of course stopped and started the services.  Have a case open with MS support, but have not received any information as of yet.  All my other changes completed and just waiting to clear this one issue up.  Any suggestions?  

Thanks

Bill

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,364 Most Valuable Professional on at

    I think you didn't rebuild Application Suite after deleting objects from there.

  • Bill Schwagerl Profile Picture
    165 on at

    Hi Martin,

      I thought I did rebuild it, but good suggestion, can rebuild it again to see if this resolves the issue.  Will advise.

    Thanks for the response.

    Bill

  • Bill Schwagerl Profile Picture
    165 on at

    Hi Martin,

      I am receiving the following error when trying to post the SalesInvoice, which is why it is throwing the error message listed in my initial thread:

    System.Security.SecurityException: Access is denied to report menu item. at Microsoft.Dynamics.AX.Framework.Reports.SrsReportViewer.AXReportViewer.EvaluateMenuItemPermission(NameValueCollection parameterInfo, NameValueCollection menuInfo) at Microsoft.Dynamics.AX.Framework.Reports.SrsReportViewer.AXReportViewer.LoadReportInPage() at Microsoft.Dynamics.AX.Framework.Reports.SrsReportViewer.AXReportViewer.Page_Load(Object sender, EventArgs e) The Zone of the assembly that failed was: MyComputer

    MS Support is looking at it, but right now have no solution, and I followed your suggestion and rebuilt ALL models.  

    Any suggestions would be great.

    Thanks

    Bill

     

     

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
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans