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 :
Microsoft Dynamics AX (Archived)

Duplicate key error in the INVENTTRANSORIGINPURCHLINE table.

(0) ShareShare
ReportReport
Posted on by 393

We have an AX2012 CU9 live instance which is throwing the following error in SQL:

No se puede insertar una fila de clave duplicada en el objeto 'dbo.INVENTTRANSORIGINPURCHLINE' con índice único 'I_2989PURCHLINEIDX'. El valor de la clave duplicada es (5637144576, hhu, 03021953_IHU).

Cannot insert duplicate key row in object'dbo.INVENTTRANSORIGINPURCHLINE' with unique index 'I_2989PURCHLINEIDX'. The duplicate key value is (5637144576, hhu, 03021953_IHU).

The error does not appear to affect the normal running of the processes in place, and is associated with purchase order lines.  In the example below the purchase order has been Confirmed.

03021953_5F00_IHU.png

PurchLineIdx index has: Partition, DataAreaId, PurchLineInventTransId.

Does anyone have any experience with this error?

Thanks.

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,088 Super User 2025 Season 2 on at

    Hi Ian,

    Can you check the number sequence for the Inventory Lot ID numbers? Is this set to be continuous? If so, it might try to re-use a number from the list which might already in your database. The continuous setting for this number sequence is not recommended. So if it is enabled, please disable this setting.

    Otherwise check the Next value field and see if this is correct or not. If it is lower compared to existing values you have to increase this number.

  • Ian Schofield Profile Picture
    393 on at

    Thanks Andre!

    The Continuous check mark was indeed selected.  This would make creating inventory transactions slower, of course.

    InventTrans_5F00_Nu.PNG

    Will now inform the client.

    Regards

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans