Several sales orders are created and Sales tax is adjusted.
Sales update > Invoice is configured with Late selection, qty All, batch processing and editing the Selection with a filter that includes those sales order.
Batch job fails with the error:
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274)\Tax regulations are found Tax is regulated on sales order ID SO-101265
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274)\Tax regulations are found Tax is regulated on sales order ID SO-101266
Info Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274)\Tax regulations are found Sales orders cannot be rearranged when individual sales orders are tax regulated.
Remove the regulation on the orders, rearrange and regulate the tax on the summary order.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274) Update has been canceled because of an error.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274) Removal of suspension of recId allocation for table SalesParmLine has failed.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274) Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.SysRecIdSequence.Removerecidsuspension(Int32 _tableId) in SysRecIdSequence.removeRecIdSuspension.xpp:line 25
at Dynamics.Ax.Application.formletterParmData.Removerecidsuspension() in formletterParmData.removeRecIdSuspension.xpp:line 14
at Dynamics.Ax.Application.formletterParmData.Catchall() in formletterParmData.catchAll.xpp:line 9
at Dynamics.Ax.Application.formletterParmData.Rearrange() in formletterParmData.reArrange.xpp:line 12
at Dynamics.Ax.Application.SalesFormletterParmData.reArrangeServer(Object[] _salesFormletterContractPacked, Boolean _isExecutingInBatch, Boolean ) in SalesFormletterParmData.reArrangeServer.xpp:line 9
at Dynamics.Ax.Application.FormletterParmDataRearrangeBatchTask.Rearrange() in FormletterParmDataRearrangeBatchTask.rearrange.xpp:line 15
at Dynamics.Ax.Application.FormletterParmDataRearrangeBatchTask.Run() in FormletterParmDataRearrangeBatchTask.run.xpp:line 7
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Info Infolog for job Order invoice (22565437134)\Infolog for task Order invoice (22565439275)\Posting Batch tasks created for multithreading.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274)\Tax regulations are found Tax is regulated on sales order ID SO-101266
Info Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274)\Tax regulations are found Sales orders cannot be rearranged when individual sales orders are tax regulated.
Remove the regulation on the orders, rearrange and regulate the tax on the summary order.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274) Update has been canceled because of an error.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274) Removal of suspension of recId allocation for table SalesParmLine has failed.
Error Infolog for job Order invoice (22565437134)\Infolog for task Rearranging posting data (22565439274) Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.
at Dynamics.Ax.Application.SysRecIdSequence.Removerecidsuspension(Int32 _tableId) in SysRecIdSequence.removeRecIdSuspension.xpp:line 25
at Dynamics.Ax.Application.formletterParmData.Removerecidsuspension() in formletterParmData.removeRecIdSuspension.xpp:line 14
at Dynamics.Ax.Application.formletterParmData.Catchall() in formletterParmData.catchAll.xpp:line 9
at Dynamics.Ax.Application.formletterParmData.Rearrange() in formletterParmData.reArrange.xpp:line 12
at Dynamics.Ax.Application.SalesFormletterParmData.reArrangeServer(Object[] _salesFormletterContractPacked, Boolean _isExecutingInBatch, Boolean ) in SalesFormletterParmData.reArrangeServer.xpp:line 9
at Dynamics.Ax.Application.FormletterParmDataRearrangeBatchTask.Rearrange() in FormletterParmDataRearrangeBatchTask.rearrange.xpp:line 15
at Dynamics.Ax.Application.FormletterParmDataRearrangeBatchTask.Run() in FormletterParmDataRearrangeBatchTask.run.xpp:line 7
at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Info Infolog for job Order invoice (22565437134)\Infolog for task Order invoice (22565439275)\Posting Batch tasks created for multithreading.