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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How do you resolve stack trace error

(0) ShareShare
ReportReport
Posted on by 135

I was trying to post an invoice in Purchase ledger >pending supplier invoice and i got a stack trace error. Can anyone tell me how to resolve this 

Thanks

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,536 Super User 2025 Season 2 on at

    Hi,

    You need to find out first if it is related to your user only or a security role. Is it for all users and there are no customizations? Probably a full CIL compile and restart of AOS machines will solve this issue.

    Otherwise it can be caused by customizations (or customized role).

    Then you can include the full message to see if there are some hints for you.

  • Sohaib Cheema Profile Picture
    49,508 User Group Leader on at

    Note: Following is not answer to your question. these are just my comments about 'the way you asked question'

    itself 'stack trace' is not an error at all.

    'stack trace' is a Data Structure that saves information about currently active functions/subroutines in any Programming Language.

    So if I am telling someone that I am receiving 'stack trace' error that means something wrong in my compiler. because 'stack trace' is part of core framework of any programming language

    In Dynamics AX, its treated by a class xSession, which you cannot see in AOT.

    if you want to see current stacktrace, use following code

    static void getSackTraceCurrent(Args _args)
    {
        
        info(con2str(xSession::xppCallStack()));
        
    }


      Ax shows error with help of stack trace so that user can know where error occurred.

    Telling anyone StackTrace error is not something really a hint.

  • Pfenz 1 Profile Picture
    135 on at

    Hi

    A full CIL and restart was done yesterday just waiting to see it that resolved the issue if not will look at your other suggestions

    Thanks

  • Community Member Profile Picture
    on at

    I m facing same error in posting retail statements, and I restart AOS Machine as well and there is no issue regarding CIL.

    please share solution.

  • Community Member Profile Picture
    on at

    Hi,

    I got Same Type of Issue, so I cleared the AUC Files and Cleared Cache. Now it works for me.

    Thanks

    Vinod Kumar 

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Nakul Profile Picture

Nakul 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans