Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

(0) ShareShare
ReportReport
Posted on by 50

We have Quotes linked to Purchase Orders and Purchase Orders linked to Sales Orders. When we want to delete one of the open Quotes or Purchase orders, we are not able to do it. 

For example, purchase order PO0002 is linked to Quote number MB4022817.

When I hit the 'Delete' button on the purchase order header ribbon , the following error pops ups:

error-when-trying-to-delete-linked-POs.PNG

The Sales Line does not exist. Identification fields and values: Document type='Order',Document No.='MB4022817',Line No.='26000' 

Please guide me on the deletion of this documents, thank you very much!

*This post is locked for comments

  • Maneesha Profile Picture
    5,891 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    according to your task and error message ,  this should not be some kind of customization but the functionality problem

    Have you run any job task according to this process  

  • DMorales Profile Picture
    50 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    Hi Amol,  

    I will verify with the development team, thanks.

  • DMorales Profile Picture
    50 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    Hello Maneesha,

    The sales order does not exist, that was the first place I looked according to the error text, but there's not such a document. The only ones existing and linked are the PO and the Quote.

    Thanks

  • DMorales Profile Picture
    50 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    Hello AJ Ansari, 

    Thanks for your reply. Indeed, the docuemnts are imported directly from the page of the customer into NAV. the sales order does not exist. On the Purchase Order header, the Quote number linked to it is MB4022817. there is no sales document with that number.

  • Maneesha Profile Picture
    5,891 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    check your reference in Sales order its might be empty on lines ,

    thats  why you got stuck  

  • AJAnsari Profile Picture
    5,754 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    Hi DMorales,

    I'm thinking this is a customization done by yourself or your partner?

    You mentioned that MB4022817 is a Quote. If you look closely at the message, it is looking for a line on a Sales Order (not Quote) number MB4022817.

    What does not exist cannot be deleted. :)

    Please have your developer revisit his/her C/AL code.

    Hope that helps!

  • Amol Salvi Profile Picture
    18,698 on at
    RE: NAV 2016 linked document deletion: Purchase Orders with Quotes and Sales Orders

    Better option activate debugger and check where you are getting error

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
EH-09052238-0 Profile Picture

EH-09052238-0 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 1

Featured topics

Product updates

Dynamics 365 release plans