Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to handle Error : Exception User - Unhandled ?

(0) ShareShare
ReportReport
Posted on by 592
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
 
 
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,846 Most Valuable Professional on at
    How to handle Error : Exception User - Unhandled ?
    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans