Skip to content

Commit 2be3201

Browse files
authored
some changes
1 parent bde0aba commit 2be3201

File tree

2 files changed

+39
-18
lines changed

2 files changed

+39
-18
lines changed
Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,54 @@
11
---
2-
title: Purchase Order workflow error
3-
description: Workflow Approval Fails Due to Unvalidated Accounting Distributions After Purchase Order Change Request.
2+
title: Accounting distribution validation failed error
3+
description: Solves an issue where you can't submit a purchase order for approval after updating a purchase order.
44
ms.reviewer: shubhamshr
5-
ms.date: 05/09/2025
5+
ms.date: 05/15/2025
66
ms.custom: sap:Purchase order procurement and sourcing\Issues with purchase orders
77
---
8-
# Workflow Approval Fails Due to Unvalidated Accounting Distributions After Purchase Order
8+
# Workflow approval fails with the "Accounting distribution validation failed" error
9+
10+
This article addresses an issue where the workflow approval process for a purchase order fails due to unvalidated accounting distributions. The error occurs when a purchase order is modified and resubmitted without validating accounting distributions, causing the workflow process to stop.
911

1012
## Symptoms
1113

12-
When submitting a purchase order for approval after setting it back to Draft and modifying the line item (e.g., changing the Unit price or Confirmed receipt date), the workflow approval process fails with the following error:
14+
When you submit a purchase order for approval after [setting it back to Draft](/dynamics365/supply-chain/procurement/purchase-order-approval-confirmation#changing-purchase-orders) and modifying the line item (for example, changing the unit price or the confirmed receipt date), the workflow approval process fails with the following error:
1315

14-
"Stopped (error): Accounting distribution validation failed. Please recall purchase order workflow and rectify accounting distributions. This action can only be completed after the line number 1 is fully distributed."
16+
> Stopped (error): Accounting distribution validation failed. Please recall purchase order workflow and rectify accounting distributions. This action can only be completed after the line number 1 is fully distributed.
1517
16-
## Steps to reproduce
18+
### Steps to reproduce
1719

18-
Create and approve a purchase order for vendor with change management enabled.
20+
1. Create and approve a purchase order for a vendor with change management enabled.
21+
2. Confirm the purchase order.
22+
3. Request a change to revert the purchase order to Draft status.
23+
4. Modify the line item, such as changing the unit price or the confirmed receipt date.
24+
5. Resubmit the purchase order for workflow approval without saving the line item beforehand.
25+
6. Observe that the workflow approval fails with the error.
1926

20-
Confirm the purchase order.
27+
## Cause
2128

22-
Request a change to revert the PO to Draft.
29+
When the **Auto calculate totals and accounting distributions** feature is enabled, the system automatically recalculates purchase order totals and accounting distributions when a purchase order is submitted to workflow. This recalculation is part of the workflow validation process and any validation errors will surface in the workflow history. For more information about the feature, see [Procurement and sourcing feature updates](/dynamics365/release-plan/2023wave2/finance-supply-chain/dynamics365-supply-chain-management/procurement-sourcing-feature-state-updates-10036#features-becoming-generally-available-with-the-10036-release).
2330

24-
Update the line item (e.g., change the unit price or receipt date), and resubmit without saving the line beforehand.
31+
If there are accounting distribution errors, such as missing financial dimensions or invalid combinations, the system generates a warning or error and prevents the workflow submission until the issue is resolved.
2532

26-
Observe that the workflow approval fails with the above error.
33+
## Workaround
2734

28-
## Cause
29-
When Auto calculate totals and accounting distributions Feature is on, System automatically recalculates totals and accounting distributions when a purchase order is submitted to workflow. This recalculation happens in the background as part of workflow validation.
30-
If there are accounting distribution errors (e.g., missing financial dimensions or invalid combinations), the recalculation will fail. Instead of allowing the workflow to proceed, the system will generate a warning or error, preventing submission.
35+
To avoid workflow failures due to unvalidated accounting distributions, you can disable the auto calculation feature. This ensures that errors in accounting distributions are identified and resolved before the workflow submission.
3136

32-
## Workaround
37+
1. Navigate to **Accounts Payable** > **Setup** > **Parameters**.
38+
2. Select the **General** tab.
39+
3. Locate the **Purchase Order Workflow** section.
40+
4. Disable the **Auto calculate totals and accounting distributions** parameter.
41+
5. Save your changes.
42+
43+
By disabling this parameter, the system will prevent you from submitting the purchase order to workflow if there are accounting distribution errors. Instead, it will display a warning, requiring you to fix the distribution errors first. Once the errors are resolved, you can submit the purchase order to workflow, and it will proceed without issues.
44+
45+
## Additional considerations
46+
47+
If disabling the **Auto calculate totals and accounting distributions** parameter isn't an acceptable option for your organization, ensure that all accounting distribution errors are resolved before submitting the purchase order to workflow.
48+
49+
- Ensure that all required financial dimensions are correctly assigned to the accounting distributions.
50+
- After modifying the purchase order line items, make sure to manually save the changes.
51+
52+
## More information
3353

34-
Disable the Parameter Auto Calculate Totals and Accounting Distribution from Accounts Payable Parameters -> General -> Purchase Order Workflow
35-
By doing so, it will not allow you to submit to workflow if you have accounting Errors , it will drop a warning And it will be forced to Fixed the Distribution beforehand and then once submited to workflow it will pass always
54+
[Approve and confirm purchase orders](/dynamics365/supply-chain/procurement/purchase-order-approval-confirmation)

support/dynamics-365/supply-chain/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@
164164
href: procurement/post-setting-turned-off.md
165165
- name: Unit prices on purchase orders aren't calculated based on the unit conversion
166166
href: procurement/po-unit-prices-not-calculated.md
167+
- name: Workflow approval fails with "Accounting distribution validation failed"
168+
href: procurement/po-workflow-accounting-distribution.md
167169
- name: You can only complete a purchase order action for fully distributed line numbers
168170
href: procurement/action-requires-full-distribution.md
169171
- name: You can't add the Price unit field to the Purchase agreement page

0 commit comments

Comments
 (0)