Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Can't delete Sales Order! Please help

Posted on by 5

Hello everyone!

We have Dynamics NAV 2016. We ae trying to delete a couple of orders, but we cant do it.

The error we get when trying to delete the SO is: The tax document could not be found.

The error we are getting if we try to delete the line item is: You cannot delete the order line because it is associated with purchase order PO#### line 10000.

The problem is the PO number it is referencing has been deleted. So at this point, we have this open order in our system that could be released and that would not be good.

Can someone tell me how to get this out of our system? 

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can't delete Sales Order! Please help

    Chris,

    You might be in a loop that needs a Programmers help to resolve. I would contact your Partner for help.

    Thanks,

    Steve

  • Chris@CP Profile Picture
    Chris@CP 5 on at
    RE: Can't delete Sales Order! Please help

    I do not see any references on the line item in the order. Nor can I delete that item. Thank you for your help. What should I try next?

  • Chris@CP Profile Picture
    Chris@CP 5 on at
    RE: Can't delete Sales Order! Please help

    In the error I showed in my previous message, the PO# it is referencing has been deleted already. But when I try to delete that Sales Order, it says it can’t because it is associated with a Purchase Order that has been deleted.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can't delete Sales Order! Please help

    Hello,

    You have a Purchase Order link to the Sales Order. You must first delete the Purchase Order linked before you can change/delete the Sales Order.

    Thanks,

    Steve

  • Chris@CP Profile Picture
    Chris@CP 5 on at
    RE: Can't delete Sales Order! Please help

    Thank you so much for your help. The reservation entries was empty. The line item does have SPECIAL in the purchasing code. I tried to delete SPECIAL from the line item and I got an error that says “You cannot change Type because the order line is associated with purchase order PO### line 10000.”

    Can you tell me what I can do next?

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can't delete Sales Order! Please help

    Hello,

    Based on what you are writing, have you made a reservation on the Sales Line against an inbound Purchase Order. Check on the Line under Reservation Entries. You can cancel the Reservation. If this is not the case, on the Sales Line, is the field Purchasing Code populated? If yes, meaning Drop Shipment or Special Order, then you will need to delete the related Purchase Order then delete the value in the field to disconnect the relationship.

    Hope this helps.

    Thanks,

    Steve

  • navision begginers Profile Picture
    navision begginers 387 on at
    RE: Can't delete Sales Order! Please help

    I am talking about sales line.(where items are attached.)

  • Chris@CP Profile Picture
    Chris@CP 5 on at
    RE: Can't delete Sales Order! Please help

    The sales order is currently open. Where do I remove the PO references from?

  • navision begginers Profile Picture
    navision begginers 387 on at
    RE: Can't delete Sales Order! Please help

    Hello dear,

    I am sorry for the little bit confusion, please reopen the sales order and then remove purchase order references from existing sales order, which you want to delete it. I hope you can understand.

  • Chris@CP Profile Picture
    Chris@CP 5 on at
    RE: Can't delete Sales Order! Please help

    Hello and Thank you for your response. Are you saying I can reopen a deleted purchase order? When I search for the deleted purchase order I cant find it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templates⚡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,993 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans