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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

sales lines still appears in item transaction Even after sale order deletion

(1) ShareShare
ReportReport
Posted on by 2,475

We have A sales order(Not invoiced ,no any inventory transaction only confirmation) we delete this sales order but sale line still appears in item transaction as ordered , we need  also delete sales line from item transaction .

pastedimage1626590670539v1.png

I have the same question (0)
  • Suggested answer
    asedawy Profile Picture
    119 on at

    Dear khaled,

    Try running consistency check on inventory management module and select items as per screen shot below and use dialog to select the item number.

    hope this helps.

    CEE0BC1D_2D00_0350_2D00_4BB3_2D00_879C_2D00_AEF6F2AA5414.jpeg

  • Khaled Ahmed Profile Picture
    2,475 on at

    Thanks MR. Ahmed El Sedawy

    I applied these steps but deleted line still appear ..

  • Suggested answer
    asedawy Profile Picture
    119 on at

    Dear khaled,

    If your environment is an on premises environment you can do something that is not recommended but will definitely solve the issue and needs to be done with extreme caution.

    You can delete the corresponding records from the inventtrans and inventtransorigin tables and update the inventsum table.

    please be really careful if you go through with this and test on test environment.

    thanks

  • Khaled Ahmed Profile Picture
    2,475 on at

    it is cloudy , should be open case ?

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

    Hi Khaled,

    Can you tell how you deleted the sales order? Do you have customizations in this environment? If you deleted it from the sales order page, it should also delete the sales order lines and related transactions. If you did it in this way and there is no customization or ISV solution which might impact the standard behavior, I would suggest to log an incident for Microsoft Support.

  • Khaled Ahmed Profile Picture
    2,475 on at

    Hi André;

    I have customization but not in sales process , small customize in report, I delete through sales and marketing >Periodic tasks>Clean up>Delete sales orders, we delete un invoiced sales order everyday ,it working probably,  but this sales order seem hung or bug in system.

    Why : we un invoiced sales order everyday? sales order auto reservation for inventory , for that any un invoiced sales will delete @ end day to back availability  for inventory  .

  • Khaled Ahmed Profile Picture
    2,475 on at

    Note that : this sales order confirmed, but all other deleted sales order also confirmed and not appear after delete..  

  • CU-19081602-6 Profile Picture
    4 on at
    Hi Khaled,
     
    I see that this was posted in 2021, but let me try anyways. Did you ever receive any explanation from MS regarding this behavior? I am currently experiencing the same issue, actually for two different customers.
     
    Sales orders are being deleted from the sales order header, but some of the sales order lines still appear as "On order" in the inventory transactions. This happens only sometimes, not all the time, and we have not found any pattern to when it happens. Anyhow, this drives demand in the net requirements, making us think we have to purchase the material to cover the sales order, when the sales order is actually already deleted.
     

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

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

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 101 Super User 2026 Season 1

#3
Zain Mehmood Profile Picture

Zain Mehmood 89 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans