Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Error while accessing Invoice from Sales order

(0) ShareShare
ReportReport
Posted on by

Hi All,

One user is getting error while accessing the Invoice from Sales Order. Below are the detailed log and screenshot.

Error Screenshot:

pastedimage1606240407428v1.png

Error Log:

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.formletterParmData.Catchall() in formletterParmData.catchAll.xpp:line 10
at Dynamics.Ax.Application.formletterParmData.Createdata(Boolean _append, Boolean ) in formletterParmData.createData.xpp:line 63
at Dynamics.Ax.Application.formletterParmData.Createdata(Boolean _append)
at Dynamics.Ax.Application.SalesFormletterParmDataInvoice.Createdata(Boolean _append, Boolean ) in SalesFormletterParmDataInvoice.createData.xpp:line 14
at Dynamics.Ax.Application.SalesFormletterParmDataInvoice.Createdata(Boolean _append)
at Dynamics.Ax.Application.SalesFormletterParmData.executeChooseLinesServer(Object[] _salesFormletterContractPacked, Boolean _append, Boolean _reuseParmUpdate, Boolean _onlyCreateParmUpdate, Boolean _executeLateSelection, Boolean , Boolean , Boolean ) in SalesFormletterParmData.executeChooseLinesServer.xpp:line 23
at Dynamics.Ax.Application.SalesFormletterParmData.executeChooseLinesServer(Object[] _salesFormletterContractPacked, Boolean _append, Boolean _reuseParmUpdate, Boolean _onlyCreateParmUpdate, Boolean _executeLateSelection)
at Dynamics.Ax.Application.SalesFormletterParmData.chooseLinesServerIL(Object[] _inputContract) in SalesFormletterParmData.chooseLinesServerIL.xpp:line 7
at SalesFormletterParmData::chooseLinesServerIL(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Dynamics.Ax.Application.SysDictClass.invokeStaticMethod(Object[] _params) in SysDictClass.invokeStaticMethod.xpp:line 26
at SysDictClass::invokeStaticMethod(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runAsInvoke(String className, String staticMethodName, Object[] parms, Object[]& exportInfolog)

  • Junaid Idrees Profile Picture
    on at
    RE: Error while accessing Invoice from Sales order

    Can you take out some time and post the resolution here to help others facing the same issue and mark it verified.

  • Srinivas M Profile Picture
    on at
    RE: Error while accessing Invoice from Sales order

    Thanks for all your replies, I haven't checked the possibilities because one of my partner solved the Issue.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Error while accessing Invoice from Sales order

    Hello Srivinas,

    Have you been able to get this issue fixed in the meantime?

    Best regards,

    Ludwig

  • WillWU Profile Picture
    22,352 on at
    RE: Error while accessing Invoice from Sales order

    Hi Srinivas Maddula,

    Please try to comment out the Debug::assert in the onSalesLinesSelectionFinished method of the InterCompanySalesAtCostPriceHandler class.

    See old thread:community.dynamics.com/.../923274

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Error while accessing Invoice from Sales order

    Hello Srinivas Maddula,

    Have you been able to get this issue resolved in the meantime or do you need any other help from the community?

    Would be great if you could keep us updated.

    Many thanks and best regards,

    Ludwig

  • Danial47 Profile Picture
    142 on at
    RE: Error while accessing Invoice from Sales order

    Hi Srinivas

    To solve this issue,

    go to the tools menu-->options -->development--> uncheck the execute business operation in CIL.

    BR

    Danial

  • Suggested answer
    Junaid Idrees Profile Picture
    on at
    RE: Error while accessing Invoice from Sales order

    Hi Srinivas Maddula,

    If the problem is faced by specific user then Can you please try following:

    1. Reset usage data

    2. Run consistency check from system administration > Periodic Task > Database on (Sales order)

    3. Ask user to log out and log back in with new browser window.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Error while accessing Invoice from Sales order

    Hi Srinivas,

    Is this happening for all users or only this user? If this is limited to a single user, you can try resetting the usage data for the user and try again.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans