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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Stopping Job queue from auto rollback if error in any one record occurs

(2) ShareShare
ReportReport
Posted on by 234
Hello,
We have a scenario where we have integrated our BC from a legacy CRM to get data in Custom Opportunity table. Is there any way that we can skip a record if it throws any validation error and move to next record. There are around 400 fields so validation on every field seems little lengthy. Also, if anyone can provide me an extensive documentation about BC integration best practices through API.
I have the same question (0)
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,086 Super User 2025 Season 2 on at
    Stopping Job queue from auto rollback if error in any one record occurs
    Maybe this will help point you in the right direction.
     
    First, are you using the default Business Central APIs or a custom API integration for your CRM-to-BC sync?
     
    If it’s a custom integration, then yes — you can handle this scenario by adding error handling logic in your API processing code. Instead of letting a single record failure stop the entire Job Queue or transaction, you can:
     
    Wrap your record processing in a try…catch block (if using AL or external integration logic).
     
    Log the error message and the failed record to a custom error log table or external system.
     
    Continue processing the next record without rolling back the whole batch.
     
     
    This will prevent auto-rollback and give you better traceability for failed records.
     
    Unfortunately, BC doesn’t support this behavior out-of-the-box for batch API processing — it needs to be handled in your integration layer.
     
    Mark this as the verified answer if it helps. Let me know if you want an AL code example
  • Gerardo Rentería García Profile Picture
    23,574 Most Valuable Professional on at
    Stopping Job queue from auto rollback if error in any one record occurs

    Hi, good day
    I hope this can help you, and give you some hints.Batch calls with Business Central (2) – Error handling – Kauffmann @ Dynamics 365 Business Central

    Best Regards
    Gerardo

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,137 Super User 2025 Season 2 on at
    Stopping Job queue from auto rollback if error in any one record occurs

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,237

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,425

#3
Sumit Singh Profile Picture

Sumit Singh 2,907

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans