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

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,284 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

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 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans