Cannot edit a record in Batch job (BatchJob). Update must be performed inside a transaction
Problem :I am at review & process collection letters form and over there when i click on Print >Collection letter note.
I get this error :"Cannot edit a record in Batch job (BatchJob). Update must be performed inside a transaction."
Debugging it further I captured this at call stack, can anyone please suggest how to fix this error.
Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Info.`add(Dynamics.AX.Application.Exception _exception, string _txt, string _helpUrl, Microsoft.Dynamics.Ax.Xpp.XppObjectBase _sysInfoAction, bool buildprefix, string _label, bool @_helpUrl_IsDefaultSet, bool @_sysInfoAction_IsDefaultSet, bool @buildprefix_IsDefaultSet, bool @_label_IsDefaultSet) Line 336 X++ Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Info.`kernelAdd(Dynamics.AX.Application.Exception _exception, string _txt, string label) Line 283 X++ [External Code] Dynamics.AX.ApplicationPlatform.0.netmodule!Dynamics.AX.Application.BatchJob.`update() Line 262 X++ Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.CheckBatchJobStatus(Microsoft.Dynamics.Ax.Xpp.SysGlobalObjectCache sgoc) Line 2110 X++ Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.ensureCleanUpBatchJobRunning() Line 2064 X++ Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.`startOperation() Line 1399 X++ Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsPrintMgmtController.`startOperation() Line 888 X++ Dynamics.AX.ApplicationSuite.118.netmodule!Dynamics.AX.Application.SrsPrintMgmtFormLetterController.`startOperation() Line 115 X++ Dynamics.AX.ApplicationSuite.20.netmodule!Dynamics.AX.Application.CustCollectionJourController.`main(Dynamics.AX.Application.Args _args) Line 209 X++ [External Code] Dynamics.AX.ApplicationSuite.Forms.3.netmodule!Dynamics.AX.Application.Forms.CustCollectionLetterNote.FormControl.PrintoutCollectionLetter.clicked() Line 289 X++ [External Code]
Solution :
issue was due to a systembatchjob which was running , after deletting the batch job. Issue was resolved.
Batch job name "report data cleanup"
Thanks,
Vikas Mehta
No comments:
Post a Comment