Workflow in wait status due to System.NullReferenceException in CRM 2011
-
woensdag 23 mei 2012 14:04
I have a case audit workflow in CRM 2011, and it is triggered whenever there is a change made to the record status. Sometimes WF succeeds, but most of the time, it's stuck in wait status. The error message is the following:
Workflow paused due to error: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Activities.Statements.InteropExecutor.TranslateExecutionStatus()
at System.Activities.Statements.InteropEnvironment.Execute(Activity definition, NativeActivityContext context)
at System.Activities.Statements.Interop.Execute(NativeActivityContext context)
at System.Activities.NativeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
What might be wrong and how may I fix this?
Thanks in advance.
Alle reacties
-
woensdag 23 mei 2012 18:12
What is your workflow doing? Just change/update something on the case recordset or change/update related recordset(s)?
Object reference not set to an instance of an object - means within the workflow context an instance of an object needed is not available. To fix this we need more info of the logic.
Carsten Groth http://carstengroth.wordpress.com Microsoft Dynamics Certified Technology Specialist