Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Workflow Error

  Asked By: Uma    Date: May 26    Category: Sharepoint    Views: 840

i am trying to invoke the work flow by Code

i got the this error "Unable to Sanctimoniously deliver start event via a manual Start Work flow"

This is The Code.....

Private void InvokeWorkflow(SplistItem item, Spsite site)
SPworkflowAssociateionCollection association collection = item.Parentlist.WorkflowAssociations;

foreach(Spworkflowassociation association in associationcollection)
if(association.Name == "WorkflowName")
Spworkflow my Workflow = spsite.WorkflowManager.StartWorkflow(item,association,string.Empty)



2 Answers Found

Answer #1    Answered By: Cheyenne Jacobson     Answered On: May 26
Answer #2    Answered By: Makayla Lewis     Answered On: May 26

Spworkflow my workflow  = spsite.WorkflowManager.StartWorkflow(item,association,string.Empty,true);

make auto-start property as true
it will start  running

Didn't find what you were looking for? Find more on Workflow Error Or get search suggestion and latest updates.