You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Can't update a load line because the released quantity would be negative
15
+
# Can't update or delete a load line because the released quantity would be negative
18
16
19
17
Error code: @WAX:ReleasedQtyCannotBeNegative
20
18
21
19
## Symptoms
22
20
23
-
This issue occurs when updating or deleting a load line would cause a negative released quantity. In this case, when you try to update or delete the load line, the system shows the following error message:
24
-
25
-
> Released quantity cannot be negative for item %1, lot %2.
21
+
When you try to update or delete a load line, you receive the following error message:
26
22
27
-
Therefore, you can't update or delete the load line.
23
+
> Released quantity cannot be negative for item \<Item ID>, lot \<Lot ID>.
28
24
29
25
## Cause
30
26
31
-
After you update or delete a load line, the system updates the released quantity of the related sales line (*whsSalesLine.ReleaseQty*). The system evaluates the released quantity, and if it finds that the released quantity of the line would be a negative after the update, it won't let you update or delete the line. This validation occurs whenever you try to update either the load line quantity or the unit of measure through various actions, such as deleting a load line, deleting a shipment, changing the quantity of a load line, reducing the picked quantity, and short picking.
27
+
After you update or delete a load line, the system updates the released quantity of the related sales line (*whsSalesLine.ReleaseQty*). If the system finds that the released quantity would become negative after the update, it prevents you from making the change. This validation occurs whenever you try to update either the load line quantity or the [unit of measure](/dynamics365/supply-chain/pim/tasks/manage-unit-measure) through various actions, such as deleting a load line, deleting a shipment, changing the quantity of a load line, reducing the picked quantity, and short picking.
32
28
33
-
The most common root cause of this issue is a change in the unit conversion that is used for open load lines. For example, the unit conversion when a sales order was released was *50 Ea = 1 PL*. However, before the related load shipment was finalized, the unit conversion was changed to *100 Ea = 1 PL*.
29
+
The most common reason for this issue is a change in the [unit conversion](/dynamics365/supply-chain/pim/tasks/manage-unit-measure#define-unit-conversion-rules)used for open load lines. For example, the unit conversion is *50 Ea = 1 PL* when a sales order is released. However, if the unit conversion is changed to *100 Ea = 1 PL* before the related load shipment is finalized, it can cause this problem.
34
30
35
31
## Resolution
36
32
37
-
The solution is to revert the unit conversion changes, update or delete the load line, and then re-implement the conversion. You must prevent other loads that include the item that caused the issue from being processed until the issue is fixed. Otherwise, the new conversions might be used for other loads that are already open.
33
+
To resolve this issue, take the following steps to revert the unit conversion changes, update or delete the load line, and then re-implement the conversion.
38
34
39
-
To fix this issue, complete the following tasks:
35
+
> [!IMPORTANT]
36
+
> You must prevent other loads that include the item that caused the issue from being processed until the issue is fixed. Otherwise, the new conversions might be used for other loads that are already open.
40
37
41
-
1.Review the unit conversion that was used for the load line.
42
-
2.Review the current unit conversion for the item, and make adjustments that will enable the load line to be updated or deleted.
43
-
3. Update or delete the load line, and revert the unit conversion adjustments.
38
+
1.[Check the unit conversion that was used for the load line](#check-the-unit-conversion-that-was-used-for-the-load-line).
39
+
2.[Check the current unit conversion for the item and make adjustments that will enable the load line to be updated or deleted](#check-the-current-unit-conversion-for-the-item-and-make-adjustments).
40
+
3.[Update or delete the load line and revert the unit conversion adjustments](#update-or-delete-the-load-line-and-revert-the-unit-conversion-adjustments).
44
41
45
-
### Review the unit conversion that was used for the load line
42
+
### Check the unit conversion that was used for the load line
46
43
47
-
Use the following procedure to review your load lines and make a note of the unit conversion that was used for the load line.
44
+
Follow these steps to review your load lines and make a note of the unit conversion that was used for the load line:
48
45
49
46
1. Go to **Warehouse management** > **Loads** > **All loads**.
50
47
1. Select the load that includes the load line that can't be deleted or updated.
@@ -53,24 +50,38 @@ Use the following procedure to review your load lines and make a note of the uni
53
50
1. On the **General** tab at the bottom of the page, calculate the conversion rate between the **Inventory work quantity** value and the **Work quantity** value. Make a note of the rate.
54
51
1. Repeat this procedure for all relevant work IDs to make sure that the same conversion was used.
55
52
56
-
### Review the current unit conversion for the item and make adjustments
53
+
### Check the current unit conversion for the item and make adjustments
57
54
58
-
Use the following procedure to review your product's unit conversion and make adjustments to ensure that the unit conversion is aligned with the load line.
55
+
Follow these steps to review your product's unit conversion and make adjustments to ensure that the unit conversion is aligned with the load line:
59
56
60
57
1. Go to **Product information management** > **Products** > **Released products**.
61
58
1. Open the relevant product to go to its **Released product details** page.
62
59
1. On the Action Pane, on the **Product** tab, in the **Set up** group, select **Unit conversions**.
63
60
1. Select the conversion between the units, and make adjustments by using the conversion that you found in the previous section.
64
61
65
-
### Update or delete the load line, and revert the unit conversion adjustments
62
+
### Update or delete the load line and revert the unit conversion adjustments
66
63
67
-
Use the following procedure to process the load line as required and revert the unit conversions.
64
+
Follow these steps to process the load line as required and revert the unit conversions:
68
65
69
66
1. Go to **Warehouse management** > **Loads** > **All loads**.
70
67
1. Open the load that includes the load line that can't be deleted or updated.
71
-
1. On the **Load lines** FastTab, select the load line.
72
-
1. Continue with the required actions as needed. (For example, delete the load line, or change its quantity.)
68
+
1. On the **Load lines** FastTab, select the load line and proceed with the necessary actions (for example, delete the load line or change its quantity).
73
69
1. Go to **Product information management** > **Products** > **Released products**.
74
70
1. Open the relevant product to go to its **Released product details** page.
75
71
1. On the Action Pane, on the **Product** tab, in the **Set up** group, select **Unit conversions**.
76
72
1. Select the conversion between the units, and revert the adjustments that you made in the previous section.
73
+
74
+
## Alternative resolution
75
+
76
+
If reverting unit conversions isn't feasible, follow these steps to manually update *WHSSalesLine.ReleasedQty* (the sales line released quantity) and *WHSSalesLine.QtyLeftToLoad* (the sales line quantity that isn't on a load yet):
77
+
78
+
1. Go to **Account receivable** > **Orders** > **All sales orders**.
79
+
1. Open the sales order that contains the sales line related to the load where the line can't be deleted or updated.
80
+
1. On the upper-right side of the **Sales order lines** grid, select the three dots and select **Insert columns** from the dropdown menu.
81
+
1. Search for the **Released quantity** and **Quantity left to load** fields, select both, and then select **Update**.
82
+
83
+
The fields will appear in the **Sales order lines** grid and can be modified to reflect the quantities on the load lines.
84
+
85
+
## More information
86
+
87
+
[Sales Line Additional Fields in WorksheetLine(WHSSalesLine)](/common-data-model/schema/core/operationscommon/tables/supplychain/inventory/worksheetline/whssalesline)
0 commit comments