icrosoft.Dynamics.Ax.Xpp.ErrorException: Cannot edit a record in Batch job (BatchJob). The corresponding AOS validation failed. at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip) at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.update(IntPtr table) at Microsoft.Dynamics.Ax.Xpp.Common.__Update_IntImpl__() in D:\dbs\sh\l23t\0702_210843\cmd\d\Source\Kernel\xppil\XppSupport\XppCommon.cs:line 1835 at Microsoft.Dynamics.Ax.Xpp.Common.Update() in D:\dbs\sh\l23t\0702_210843\cmd\d\Source\Kernel\xppil\XppSupport\XppCommon.cs:line 1828 at Dynamics.AX.Application.BatchJob.`update() at Dynamics.AX.Application.BatchJob.update() at Dynamics.AX.Application.BatchHeader.`saveHeader(BatchStatus status, Boolean @status_IsDefaultSet) at Dynamics.AX.Application.BatchHeader.saveHeader(BatchStatus status, Boolean @status_IsDefaultSet) at Dynamics.AX.Application.BatchHeader.saveHeader(BatchStatus status) at Dynamics.AX.Application.BatchHeader.`save(BatchStatus status, Boolean @status_IsDefaultSet) at Dynamics.AX.Application.BatchHeader.save(BatchStatus status, Boolean @status_IsDefaultSet) at Dynamics.AX.Application.BatchHeader.save() at Dynamics.AX.Application.RetailCDXScheduleRunner.saveBatchHeader(BatchHeader _batchHeader) at Dynamics.AX.Application.RetailCDXScheduleRunner.saveBatchHeaderWithRetry() at Dynamics.AX.Application.RetailCDXScheduleRunner.runImpl(Object[] _parm) at RetailCDXScheduleRunner::runImpl(Object[] , Boolean& ) at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters) in D:\dbs\sh\l23t\0702_210843\cmd\d\Source\Kernel\xppil\XppSupport\ReflectionCallHelper.cs:line 1674 at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runasDirectParameters(String userId, Int32 classId, String staticMethodName, Object[] directParms, String company, String language, String partitionKey, String executionType, Boolean validateContainerInSessionBoundary) in D:\dbs\sh\l23t\0702_210843\cmd\d\Source\Kernel\xppil\XppSupport\Support.cs:line 6484 at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runas(String userId, Int32 classId, String staticMethodName, Object[] parms, String company, String language, String partitionKey) in D:\dbs\sh\l23t\0702_210843\cmd\d\Source\Kernel\xppil\XppSupport\Support.cs:line 6365 at Dynamics.AX.Application.RetailCDXScheduleRunner.`run()