Skip to main content
Community site session details

Community site session details

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

Purchase Order - Accidentally Deleted Line Items that have been Received

(3) ShareShare
ReportReport
Posted on by 13
We have a large open PO with quarterly releases and accidentally deleted line items that have been received and invoiced.  Why would BC allow you delete line items that have been received and can you change any system settings to prevent this from happening in the future?  
Categories:
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,446 Super User 2025 Season 1 on at
    Purchase Order - Accidentally Deleted Line Items that have been Received
    BC system has only restriction that PO cannot be deleted if Qty. Received <> Qty. Invoiced. If all received items are invoiced, then PO can be deleted. Normally if You press Post from the PO to create receipt+invoice (or just invoice) the PO will be deleted automatically (if all quantity was received and invoiced by this action). So normally in PO list it is not intended to keep PO's that have been received and invoiced. For large orders - the Blanked Orders are used - you enter the yearly quantity and from this generate partial PO each month/quarter.

    Of course if You really want to prevent deletion, just remove the permissions for users to Delete from table 38 (Purchase Header). Or create a customization with the needed validations.
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    880 on at
    Purchase Order - Accidentally Deleted Line Items that have been Received
    Hii There,
    as per this scenirio its possible when user was updated status to OPEN . and then if the QTY to Invoice and Receive is same as Quantity it will allow to delete line so YUN ZHU as per you case you not invoiced QTY . 
     
    so please check the status of ORDER also .
     
    so as per requirement you can create a customization for this to prevent deleting from this from page , 
    if you want to check the code feasibility will check . 
     
     
     
    if you found answer please mark it answered.
     
    Thank You .
    KAMAL Khakhkhar.
  • Suggested answer
    YUN ZHU Profile Picture
    86,134 Super User 2025 Season 1 on at
    Purchase Order - Accidentally Deleted Line Items that have been Received
    Hi, There are standard controls here that cannot be deleted.
    Is this caused by a third-party customization? I recommend that you contact your partner to investigate this issue.
    Qty. Rcd. Not Invoiced must be equal to '0' in Purchase Line: Document Type=Order, Document No.=106015, Line No.=10000. Current value is '2'.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    RockwithNav Profile Picture
    7,265 on at
    Purchase Order - Accidentally Deleted Line Items that have been Received
    BC won't - Check if anything working on top as a custom solution.
     
  • Sohail Ahmed Profile Picture
    4,844 on at
    Purchase Order - Accidentally Deleted Line Items that have been Received
    In Business Central, the system should not allow deletion of purchase lines that are fully or partially received/invoiced — unless those lines are not properly linked or the deletion happened before posting. If lines were deleted post-receipt/invoice, it may be due to:
     
    Customizations bypassing standard checks
     
    Using "Delete Line" before posting the receipt/invoice
     
    Manual modifications in earlier versions or via configuration packages
     
     
    ✅ To prevent this in future:
     
    Restrict permissions for deleting PO lines using Permission Sets
     
    Enable Change Log to track such actions
     
    Train users on proper handling of posted documents
     
     
    ✅ Mark this answer as verified if it helps you.
     
     
  • Jonas "Jones" Melgaard Profile Picture
    4,601 Super User 2025 Season 1 on at
    Purchase Order - Accidentally Deleted Line Items that have been Received
    Moved from D365 Finance to the BC forum

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

News and Announcements

Now Available: 2025 Release Wave 2

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 > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans