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 :
Finance | Project Operations, Human Resources, ...
Answered

How to handle Error : Exception User - Unhandled ?

(0) ShareShare
ReportReport
Posted on by 596
Hi guys,
 
I would like to know how we can handle an /Unhandled exception/ ? like this :
 
This class, although it is an Extension, but this is came from Microsoft, it is for Subscription Billing feature when we activate this feature.
 
So this error is happened when I'm about to posting invoice of a sales order. And as I tried to debug this, with the developer skill limitation that I have, when I tried to go through inside the /next run()/, all seems good, no error, although I don't know if it is supposed to passed that way as it is shown or in the middle of it, actually it should be calculate or run something or call some other class, the point is I keep press the /next button/ without hit any error.
But at one point it will be back to this class and without me press next, pointer directly put in that line and in that second also pop up this error message,
 
May I know what happened here, and how to trace deep further what is really happened and most of all I want to resolve the problem.
 
Thanks
 
 
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at
    I think you can't debug code inside FormletterJournalPost, not you can see enough details in the pop-up windows, because you haven't loaded symbols for Application Suite package. Review your setup under Dynamics 365 > Options > Debugging.
     
    An exception can be handled by catching it by try/catch and not re-throwing it. Note that you can't catch error exceptions in DB transaction.
     
    Nevertheless I wouldn't try to handle this exception. If posting failed, throwing an exception seems to be the right approach.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans