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
Copy file name to clipboardExpand all lines: support/dynamics-365/supply-chain/costing/inventory-closing-recalculation-reverse.md
+32-29Lines changed: 32 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This article provides troubleshooting guidance for common errors that might occu
17
17
18
18
### Symptoms
19
19
20
-
An inventory closing, recalculation, or reverse fails with the following error:
20
+
An inventory closing, recalculation, or reverse fails with the following error message:
21
21
22
22
> Batch task failed: Cannot select a record in Current client sessions (SysClientSessions). Sessionld: 0, 0. The SQL database has issued an error.
23
23
@@ -27,31 +27,31 @@ This issue can occur due to SQL database unavailability, deadlocks, blockings, o
27
27
28
28
### Solution
29
29
30
-
Most of the time, these type of issues are transient and never cause any data corruption. Retry the operation.
30
+
Most of the time, these issues are transient and don't cause any data corruption. Retry the operation.
31
31
32
32
## Duplicate reverse is not allowed
33
33
34
34
### Symptoms
35
35
36
-
An Inventory reverse fails with the following error:
36
+
An inventory reverse fails with the following error message:
37
37
38
38
> Another Inventory %1 reverse for voucher %2 is running. Duplicate reverse is not allowed
39
39
40
40
### Cause
41
41
42
-
This issue occurs when you try to execute the reversal or cancellation of multiple closing or recalculation vouchers at the same time. Reversals must be carried out sequentially. This approach prevents any inventory and ledger data corruption due to concurrent updates of adjustments, settlements, or postings.
42
+
This issue occurs when you try to execute the reversal or cancellation of multiple closing or recalculation vouchers at the same time. You must carry out reversals sequentially. This approach prevents any inventory and ledger data corruption due to concurrent updates of adjustments, settlements, or postings.
43
43
44
44
### Solution
45
45
46
46
Always execute the reversal of one voucher at a time, and only after its completion, proceed with further reversals.
47
47
48
-
This issue can occur if the previous reversal execution doesn't complete successfully, but the batch job ends with error, and the user tries to execute a new reverse of the original voucher. This issue can occur due to system issues, sudden crashes, system or SQL server unavailability, and so on. In such cases, contact Microsoft Support or your partner.
48
+
This issue can occur if the previous reversal execution doesn't complete successfully, but the batch job ends with error, and you try to execute a new reverse of the original voucher. This issue can occur due to system issues, sudden crashes, system or SQL server unavailability, and so on. In such cases, contact Microsoft Support or your partner.
49
49
50
50
## Inventory closing cannot proceed because available physical on-hand inventory on item \<ItemName\> is currently negative
51
51
52
52
### Symptoms
53
53
54
-
An inventory closing or recalculation fails with the following error:
54
+
An inventory closing or recalculation fails with the following error message:
55
55
56
56
> Inventory closing cannot proceed because available physical on-hand inventory on item \<Item\> is currently negative, which isn't allowed according to its item model group
57
57
@@ -66,11 +66,11 @@ Usually, the system flags this error while posting transactions for an item that
66
66
### Solution
67
67
68
68
1. Review the inventory transactions for the item mentioned in the error message to identify the cause of this issue.
69
-
1. If necessary, based on your business requirements, you can enable the negative physical or financial inventory.
69
+
1. If necessary, based on your business requirements, enable the negative physical or financial inventory.
70
70
1. Alternatively, you can post manual adjustments to balance out the inventory transactions that result in a negative inventory.
71
-
1. Once you fix the transactions, execute a consistence check for that item:
71
+
1. Once you fix the transactions, execute a consistency check for that item:
72
72
1. Go to **System administration** > **Periodic tasks** > **Database** > **Consistency check**.
73
-
1. In the consistency check dialog set **Check/Fix** to **Fix error**.
73
+
1. In the consistency check dialog, set **Check/Fix** to **Fix error**.
74
74
1. Set **Module** to **Inventory management**.
75
75
1. Expand the **Item** tree and select the checkboxes for **Inventory transactions** and **On-hand**.
76
76
1. Open the More menu (**...**) and select **Dialog**.
@@ -80,14 +80,14 @@ Usually, the system flags this error while posting transactions for an item that
80
80
> [!NOTE]
81
81
> If required, you can run the check as a batch process in the background.
82
82
83
-
1. Once the consistence check completes, you can view the final fix logs from the batch job logs or in the notification panel.
83
+
1. Once the consistency check completes, you can view the final fix logs from the batch job logs or in the notification panel.
84
84
1. After completing the consistency check, resume the closing or recalculation operation.
85
85
86
86
## Close stock - processing level \<Level\> with a total of \<Total\> bundles
87
87
88
88
### Symptoms
89
89
90
-
An inventory closing or recalculation fails with the following error:
90
+
An inventory closing or recalculation fails with the following error message:
91
91
92
92
> Close stock - processing level \<Level\> with a total of \<Total\> bundles
93
93
@@ -97,10 +97,10 @@ This error usually occurs because of business data corruption due to manual data
97
97
98
98
### Solution
99
99
100
-
1. Identify the item and inventory transactions causing this error
100
+
1. Identify the item and inventory transactions causing this error.
101
101
1. Execute a consistency check for that item for on-hand and inventory transactions.
102
102
1. Go to **System administration** > **Periodic tasks** > **Database** > **Consistency check**.
103
-
1. In the consistency check dialog set **Check/Fix** to ?????. <!-- (need to confirm with SME) -->
103
+
1. In the consistency check dialog, set **Check/Fix** to ?????. <!-- (need to confirm with SME) -->
104
104
1. Set **Module** to **Inventory management**.
105
105
1. Expand the **Item** tree and select the checkboxes for **Inventory transactions** and **On-hand**.
106
106
1. Open the More menu (**...**) and select **Dialog**.
@@ -110,7 +110,7 @@ This error usually occurs because of business data corruption due to manual data
110
110
> [!NOTE]
111
111
> If required, you can run the check as a batch process in the background.
112
112
113
-
1. Once the consistence check completes, you can view the final fix logs from the batch job logs or in the notification panel.
113
+
1. Once the consistency check completes, you can view the final fix logs from the batch job logs or in the notification panel.
114
114
1. After completing the consistency check, resume the closing or recalculation operation.
115
115
116
116
## Fiscal period is not open
@@ -134,7 +134,7 @@ Verify the ledger calendar period status:
134
134
135
135
### Symptoms
136
136
137
-
An inventory closing or recalculation fails with the following error:
137
+
An inventory closing or recalculation fails with the following error message:
138
138
139
139
> Account number for transaction type \<Type\> does not exist
140
140
@@ -156,13 +156,13 @@ After verifying your setup, resume the closing or recalculation operation.
156
156
157
157
### Symptoms
158
158
159
-
An inventory closing or recalculation fails with the following error:
159
+
An inventory closing or recalculation fails with the following error message:
160
160
161
161
> Only users in user group \<Group\> can post in module \<Module\> in the period containing the date \<Date\>
162
162
163
163
### Solution
164
164
165
-
1. Go to **General Ledger** > **Calendars** > **Ledger calendars**
165
+
1. Go to **General Ledger** > **Calendars** > **Ledger calendars**.
166
166
1. Select the required ledger period, then check the access level for specific modules and legal entities.
167
167
168
168
> [!NOTE]
@@ -174,15 +174,15 @@ An inventory closing or recalculation fails with the following error:
174
174
175
175
### Symptoms
176
176
177
-
An inventory closing, recalculation, or reverse fails during the ledger posting stage with the following error message:
177
+
An inventory closing, recalculation, or reverse operation fails during the ledger posting stage with the following error message:
178
178
179
179
> The entry for category \<Category\> on project \<Project\> cannot be posted/approved because it would cause the cost budget to be exceeded by \<Amount\>
180
180
181
181
You can view this error in the inventory closing logs. For more information on accessing closing logs, see [Inventory close](/dynamics365/supply-chain/cost-management/inventory-close#the-inventory-close-log).
182
182
183
183
### Cause
184
184
185
-
This issue can appear when inventory closing, recalculation, or reverse adjustments settles the project-enabled inventory transactions, and those adjustments or settlements exceed the budget control price set for that specific project.
185
+
This issue can appear when inventory closing, recalculation, or reverse adjustments settle the project-enabled inventory transactions, and those adjustments or settlements exceed the budget control price set for that specific project.
186
186
187
187
### Solution
188
188
@@ -191,7 +191,7 @@ As a temporary workaround:
191
191
1. Go to **Project management and accounting** > **Setup** > **Project management and accounting parameters** > **Cost control**.
192
192
1. Set **Budget control** to **Disabled**. <!-- Need to ask SME where "Use budget control" applies to -->
193
193
1. Resume the inventory closing, recalculation, or reverse voucher.
194
-
1. After the inventory operation completes, set **Budget control** back to **Enabled**<!-- Need to confirm this value with the SME -->
194
+
1. After the inventory operation completes, set **Budget control** back to **Enabled**.<!-- Need to confirm this value with the SME -->
195
195
196
196
For a more permanent solution, update the project budget control cost to meet your business requirements.
197
197
@@ -207,23 +207,26 @@ An inventory closing or recalculation fails with the following error message:
207
207
208
208
This issue can occur if data corruptions exist in the inventory transactions or adjustments. The error happens when pre-closing incorrectly posts settlements to and closes financial transactions. Pre-closing should only affect non-financial transactions.
209
209
210
-
The inventory closing and recalculation processes implicitly execute pre-closing for the non-financial transfers against which it has any markings. This issue most likely occurred in that process.
210
+
The inventory closing and recalculation processes implicitly execute pre-closing for the non-financial transfers against which they have any markings. This issue most likely occurred in that process.
211
211
212
212
### Solution
213
213
214
-
You can identify which transactions are causing this issue from the `InventTrans` table in the database. Look for records that meet the following criteria:
214
+
You can identify which transactions cause this issue from the `InventTrans` table in the database. Look for records that meet the following criteria:
215
215
216
216
- A value is specified for the `QtySettled` or `CostAmountSettled` fields
217
217
- The `ValueOpen` field is set to `false`
218
218
- The `NonFinancialTransferInventClosing` field is set to the record ID of a closing or recalculation voucher.
219
219
220
-
For each problematic transaction you identify, reset the `ValueOpen`, `NonFinancialTransferInventClosing`, `DateClosed` fields. After updating all problematic transactions, resume the closing or recalculation operation.
220
+
For each problematic transaction you identify, reset the following fields: <!-- What does resetting them entail -->
221
+
222
+
-`ValueOpen`
223
+
-`NonFinancialTransferInventClosing`
224
+
-`DateClosed`
221
225
222
-
1. Reset the `ValueOpen`, `NonFinancialTransferInventClosing`, `DateClosed` fields
223
-
1. After updating all problematic transactions, resume the closing or recalculation operation.
226
+
After updating all problematic transactions, resume the closing or recalculation operation.
224
227
225
228
> [!IMPORTANT]
226
-
> When making any direct database data modification, you should first make the change in a lower replica then confirm everything is work correctly before proceeding to other replicas.
229
+
> When making any direct database data modification, first make the change in a lower replica then confirm everything works correctly before proceeding to other replicas.
227
230
228
231
## Unable to edit a record in table
229
232
@@ -235,14 +238,14 @@ An inventory closing, recalculation, or reverse fails with the following error m
235
238
236
239
### Cause
237
240
238
-
This issue occurs when a SQL error prevents further execution and cause a process or batch job to fail. Typically, these SQL errors are deadlocks that occur when multiple processes execute at the same time. Other possible causes include SQL Server availability issues due to increased traffic, or insufficient and inappropriate indexing that results in query timeouts for long running queries.
241
+
This issue occurs when a SQL error prevents further execution and causes a process or batch job to fail. Typically, these SQL errors are deadlocks that occur when multiple processes execute at the same time. Other possible causes include SQL Server availability issues due to increased traffic, or insufficient and inappropriate indexing that results in query timeouts for long running queries.
239
242
240
243
### Solution
241
244
242
245
Usually, these SQL issues are transient and go away with retries.
243
246
244
-
Sometimes, customizations also result in deadlocks and blocking issues due to inappropriate transaction scopes and error handling. Tace the error message from the batch job or related processes, call stack, and SQL statement. Verify if any customizations are present. If customizations are present, check the indexes and index fragmentation. <!-- The indexes and index fragmentation of what? The customizations? The tables the customizations are applied to? -->
247
+
Sometimes, customizations also result in deadlocks and blocking issues due to inappropriate transaction scopes and error handling. Trace the error message from the batch job or related processes, call stack, and SQL statement. Verify if any customizations are present. If customizations are present, check the indexes and index fragmentation. <!-- The indexes and index fragmentation of what? The customizations? The tables the customizations are applied to? -->
245
248
246
249
## Additional support
247
250
248
-
If the guidance in this article does not resolve your issue, contact Microsoft Support or your partner for further assistance.
251
+
If the guidance in this article doesn't resolve your issue, contact Microsoft Support or your partner for further assistance.
0 commit comments