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

duplicate in inventtrans

(0) ShareShare
ReportReport
Posted on by 10

i have duplicate records in inventtrans table

the item sold only 1 unit

and if we checked the inventory we will find two records as duplicate qty

, problem is applied on all items in the sales order of the store

the sales order contains the right qty for all items

but inventtrans doesn't contain it.

version is cu12

0131.F1.png

F3.png

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello SayedMohamed,

    Is only one single sales order affected by this issue or do you see the multiplication of inventtrans lines for all of your sales orders?

    Also, you put the tag 'retail'. Can you let us know how this sales order was created (manually through an import, etc.)

    Many thanks,

    Ludwig

  • SayedMohamed Profile Picture
    10 on at

    Hello Ludwig Reinhard,

    the transaction is cash-N-Carry .

    the sales order created automatically  after posting statement for the store.

    how the transaction posted twice to inventtrans table ? we don't know?

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Sayed,

    Many thanks for the update.

    Is it possible that the automatic transfer got stuck somehow and once it reverted back created those two transactions?

    This is something you probably need to discuss with your IT/development team.

    Best regards,

    Ludwig

  • SayedMohamed Profile Picture
    10 on at

    Thanks for you

    we're already discus   all  available reasons with no result.

    and the partner also doesn't reach for the problem

    we need how to fix duplicated data in inventtrans

    and how to retrieve the duplicated transaction in inventtrans table

  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Sayed,

    A developer can certainly 'clean' that duplicated line but the main question is why it happened and how you can make sure that it won't happen again.

    It's difficult to guess what might be the reason for that; probably one of your integrations built.

    Yet, as you have already discussed internally, another way forward would be having the MS support taking a look at the issue.

    That's what I would go for next, i.e. opening a support ticket with MS.

    Best regards,

    Ludwig

  • André Arnaud de Calavon Profile Picture
    304,508 Super User 2026 Season 1 on at

    Hi Sayed,

    A developer should create a script to find the duplicate records and delete them.

    Related to the cause... are you aware of any customizations? Could it be the case that during a batch process of posting the statement the system was stopped and restarted later?

  • Suggested answer
    vinitgoyal2005 Profile Picture
    6,332 on at

    Hi Sayed,

    Once the inventtrans duplicate data is deleted check if the On-Hand inventory is showing correct values ( I am 99% sure it will not). To correct it run the consistency check for that particular item with 'Fix' parameter which will correct the on-hand data.

  • SayedMohamed Profile Picture
    10 on at

    Hi André,

    we get duplicate it by sql script but we prefer to get it from the system itself

    we think the reason of the problem during statement posting.

    Thanks

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 337

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans