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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How to delete a confirmed PO fully

(1) ShareShare
ReportReport
Posted on by 128
Hi All, 

   A confirmed purchase order exists in the live environment, which was originally created in 2022. To fully cancel this PO, we configured a workflow that requires users to click “Cancel” and then submit the workflow to complete the cancellation process.

When the user clicks “Cancel,” the PO header and line statuses are updated to “Canceled.” However, when attempting to submit the workflow, the system throws the following error: “Transaction date is not part of an open fiscal period within two fiscal years, or you do not have the necessary user rights.
due to workflow submit not done, the po is not fully deleted .
Although the PO appears canceled, the inventory transaction lines are not deleted. These transactions are only fully removed after the PO cancellation workflow is successfully submitted. Due to the error, we are unable to complete this step.
We attempted to resolve the issue by opening the relevant fiscal year in the calendar, but this approach was not accepted.

Current status:
PO status: Canceled
Approval status: In review
PO line status: Canceled
Inventory transaction status : on order
 

Is there any way to fully delete(to delete inventory lines and update inventory on hand status) the po through code ?


 
Categories:
I have the same question (0)
  • Paolo Cecchelli Profile Picture
    657 on at
    Hi,
     
    I cannot help you on the code part (surely others on the community can) however if I remember correctly the check on the date is done on the Accounting date on the PO header. Have you tried to change the accounting date on the PO header to the current fiscal year and send the PO to workflow?
    Hope it helps 
  • André Arnaud de Calavon Profile Picture
    304,341 Super User 2026 Season 1 on at
    Hi charanch,

    For each PO line, you can check if you can cancel the quantity via the option Delivery remainder.

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

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 699

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 301

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans