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 :
Small and medium business | Business Central, N...
Suggested Answer

Exception handling in AL Code Business Central

(0) ShareShare
ReportReport
Posted on by 249

Hi All,

I have a requirement to create 100K Sales order, its fulfillment, and payment settlement in BC through some custom logic. So, I have written SOAP endpoints and then perform SO Create, then fulfillment, and then payment settlement in sequence.

Now there is a good chance, due to any config issue or logical error, SO Create operation complete successfully but its error comes in the fulfillment process. Is there any way, we can implement transactions so that system automatically rollbacks everything for a particular order?

Also, how can we use TryFunction in this situation as the documentation says, we should not use DB write calls in TryFucn()

docs.microsoft.com/.../devenv-handling-errors-using-try-methods

Regards,

Saboor Ahmed

I have the same question (0)
  • Suggested answer
    Andy Sather Profile Picture
    on at

    Hello  - We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,170 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,283 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,104 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans