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)

Debug assertion failed when posting invoice in ax 2012

(0) ShareShare
ReportReport
Posted on by 1,845

Hi,

While posting Invoice for any sales order I get the Debug Assertion Failed Stack trace. 

8880.6.PNG

Anyone help me how to fix this. I am checked all table and classes given in the above screen shot there is no customization.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    Hi.

    Sounds like you have something that is not properly configured in the Accounting Structure. Check your setup in General Ledger -> Setup -> Configure account structures.

  • Iulian Cordobin Profile Picture
    8,201 on at

    I actually just looked in the code at the line mentioned and it looks like you are missing the Main account. Are you sure you the values in your invoice are the proper ones?

  • Verified answer
    startax Profile Picture
    1,845 on at

    I check the mainaccount table in AOT found that there is no data in table. Then check SQL table Demo data is  present in SQL i truncate Mainaccount Table in SQL and Insert DEMO data for Mainaccount table in SQL using script.  

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#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