Hi,
I'm running a state machine workflow, and trying to fire events on an existing instance, but getting the following error:
{"EnqueueItemOnIdle cannot be called on suspended workflows."} System.Exception {System.InvalidOperationException}
I tried calling the Resume() method on the WorkflowInstance immediately before raising the event, but that didn't make any difference. Any ideas how I can "un-suspend" the instance to allow events to be raised to it
Many thanks,
David Cowell

Error calling events on a suspended workflow
Ashok Ojha
Is your workflow suspended Do you have Suspend activities in your workflow or call instance.Suspend() from the host
If so, calling instance.Resume() and the enqueing an event may still cause a problem due to race conditions. Suspend() is an asynchronous call and if the workflow did not get a chance to start up before you call enqueue, you would see this issue.
-Angel
Hans1982
do you have a HandleExternalEvent Activity if so you're workflow must be running when you launch the event. You must resume the workflow before launching the event.
Antoine