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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Debug::Assert crashes batch

(0) ShareShare
ReportReport
Posted on by 107

Hi guys,

In standard Ax code, i've seen Debug:Assert() statements regularly, but today we experienced some very odd behavior.

When posting a Free Text Invoice, at some point we hit the method "exchRateCurToMst" in table CustTrans. In this method, a Debug:Assert is triggered.

We run the posting of the Free Text Invoice in batch, and we noticed that the batch would just stop, no error, and the Free Text Invoice was not posted.

When debugging in Visual Studio, we noticed that the Debug:Assert code causes this behavior.

Has anyone seen this before?

The solution i've found on the internet suggests placing all Debug::Assert() calls in comment, but i was hoping there was a "cleaner" way of doing this.

*This post is locked for comments

I have the same question (0)
  • Douglas Noel Profile Picture
    3,905 on at

    Hi,

    One Question:  Is the behaviour the same if 'debugging' is generally disbaled on the box?

    Debug Asserts sometimes behave different and very strange if debug is enabled.

    I would not prefer simply commenting out this.  Because there must be some sense behind this(hopefully). Some kind of "we have a siutuation which shouldn't be there (and maybe leads to wrong data if we go on)"

    regards

    Douglas

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

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans