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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

High volume inserts

(0) ShareShare
ReportReport
Posted on by 354

Hello,

at our client we create a high volume of sales/purchase (+10k/hr sometimes) order pairs using a batch job running with 8 threads on four AOSes.

Not all the time, but occasionally we see this error (either purchLine or salesLine) :

Cannot create a record in Order lines (SalesLine). Sales order: SO000012477, DTNPROC. The record already exists. Our orders have mostly one line, sometimes a few more.

We believe that this is an error with the TransIdIdx and the InventTransId. Two processes creating two different orders at pretty much the same time and one of them is failing

because the inventTransId has already been used. If we reprocess one of these failed transactions (creation of order pair in a tts), they work, so I don't think there's a problem with the

data that we use.

Is this even possible ? Has someone seen something like this before ? Can two processes pull the same number from a numbersequence if they do that at pretty much the same

time ? This is really high volume, processing data and creating order pairs as fast as D365 can.

We are not manually pulling the inventTransId from the number sequence, this happens with the insert.

Best regards

Frank

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    There is not much you can do, check that number seq is no continuous and try to enable pre allocation, this way each session will get a pull of  numbers and you will reduce chance of overlap. 

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Good morning Frank,

    I noticed a couple of similar issues that have been recorded on LCS.

    Please see: fix.lcs.dynamics.com/.../Results

    The specific error you mentioned is, however, not listed there (or I overlooked it).

    Based on the data volume / speed that you operate at, I would recommend getting the MS support directly involved.

    Best regards,

    Ludwig

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans