Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

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

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
    Maneesha 5,889 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
    DMorales 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
    DMorales 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
    DMorales 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
    Maneesha 5,889 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
    AJAnsari 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
    Amol Salvi 18,694 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans