Hi Team,
Suddenly in live enviornment we are facing issue with workflows.Some workflows are stuck in Pending status without any workflow item creation(no user assignment) few are completed by user but status on transaction table is not update like from Released PR-Completed , or some workflows which are cancelled now unable to resubmit.
I ran Tutorial_WorkflowProcessor form many times but it was taking too long to complete so i have to force stop the process. I checked SysworkflowMessagetable as well but it is empty in my case.
I ran Workflow configuration wizard and check batch job history for Workflow messaging batch job which are showing Waiting status. For Workflow messging batch job i got error log in batch history before 2-3 hrs from now which shows following error,there is no current error log niether any workflow is getting executed.
"Cannot edit a record in Workflow Messages Table (SysWorkflowMessageTable). Workflow message id: {00000000-0000-0000-0000-000000000000}, {00000000-0000-0000-0000-000000000000}.
Deadlock, where one or more users have simultaneously locked the whole table or part of it."
Microsoft.Dynamics.Ax.Xpp.DeadlockException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.DeadlockException' was thrown.
at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue)
at Microsoft.Dynamics.Ax.MSIL.cqlCursorIL.UpdateAll(IntPtr table)
at Dynamics.Ax.Application.SysWorkflowQueueTask.assignBatchAffinity(Guid _affinity, Int64 _minRecId, Int64 _maxRecId, Boolean , Boolean ) in SysWorkflowQueueTask.assignBatchAffinity.xpp:line 47
at Dynamics.Ax.Application.SysWorkflowQueueTask.@assignBatchAffinity(Guid _affinity, Int64 _minRecId, Boolean )
at Dynamics.Ax.Application.SysWorkflowQueueTask.assignBatchAffinity(Guid _affinity)
at Dynamics.Ax.Application.SysWorkflowQueueTask.Run() in SysWorkflowQueueTask.run.xpp:line 21
at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 50
at BatchRun::runJobStatic(Object[] )
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)
at BatchIL.taskThreadEntry(Object threadArg)
Kindly help.
Thanks,
Shri
*This post is locked for comments