%3CLINGO-SUB%20id%3D%22lingo-sub-509733%22%20slang%3D%22en-US%22%3ESharePoint%20Workflow%20Architecture%20%E2%80%93%20Part%203%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-509733%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20Mar%2012%2C%202013%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EThis%20blog%20post%20is%20a%20contribution%20from%20Andy%20Li%2C%20an%20Escalation%20Engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FP%3E%0A%20%20%3CP%3EAndy%20is%20one%20of%20the%20Escalation%20Engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%26nbsp%3B%20The%20series%20of%20posts%20on%20Workflows%20are%20his%20contribution%20for%20the%20community%20to%20better%20understand%20the%20internals%20of%20workflow%20runtime%20and%20how%20it%20interacts%20with%20SharePoint.%3C%2FP%3E%0A%20%20%3CP%3EIf%20you%20missed%20the%20first%20two%20parts%20of%20this%20SharePoint%20Workflow%20Architecture%20series%2C%20below%20are%20links%20to%20quickly%20navigation%20to%20them.%3C%2FP%3E%0A%20%20%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fb%2Fsharepointdevelopersupport%2Farchive%2F2013%2F03%2F11%2Fsharepoint-workflow-architecture-part-1.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20SharePoint%20Workflow%20Architecture%20%E2%80%93%20Part%201%20%3C%2FA%3E%3C%2FP%3E%0A%20%20%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fblogs.technet.com%2Fb%2Fsharepointdevelopersupport%2Farchive%2F2013%2F03%2F12%2Fsharepoint-workflow-architecture-part-2.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20SharePoint%20Workflow%20Architecture%20%E2%80%93%20Part%202%20%3C%2FA%3E%3C%2FP%3ELocked%2FStuck%20Tasks%3CP%3ELocked%20tasks%20or%20stuck%20tasks%20are%20one%20of%20the%20most%20common%20issues%20many%20people%20have%20seen%20in%20workflows.%26nbsp%3B%20People%20ask%20me%20the%20same%20question%20when%20they%20have%20a%20locked%20task%20%E2%80%93%20how%20to%20unlock%20it%3F%20My%20answer%20has%20always%20been%3A%20why%20is%20the%20task%20locked%20in%20the%20first%20place%3F%26nbsp%3B%20Lot%20of%20people%20don%E2%80%99t%20really%20understand%20what%E2%80%99s%20causing%20the%20task%20to%20be%20in%20the%20locked%20state%20and%20simply%20try%20to%20unlock%20it%20and%20hope%20that%20will%20solve%20the%20problem%20with%20the%20workflow.%26nbsp%3B%20The%20fact%20is%20that%20might%20only%20make%20the%20problem%20worse!%3C%2FP%3E%0A%20%20%3CP%3EThere%20is%20actually%20a%20very%20popular%20%E2%80%9Cunsupported%E2%80%9D%20way%20to%20unlock%20a%20task.%26nbsp%3B%20Essentially%2C%20the%20way%20it%20unlocks%20the%20task%20is%20to%20update%20the%20%E2%80%9CWorkflowVersion%E2%80%9D%20column%20for%20the%20task%20to%20%E2%80%9C1%E2%80%9D%20(we%20mentioned%20it%20in%20an%20earlier%20post%20that%20%E2%80%9C1%E2%80%9D%20means%20unlocked).%26nbsp%3B%20The%20problem%20with%20this%20workaround%20is%20that%20it%20doesn%E2%80%99t%20know%20what%20has%20happened%20with%20the%20workflow%20instance%2C%20where%20the%20workflow%20instance%20stopped%20and%20whether%20the%20workflow%20is%20expecting%20an%20update%20from%20the%20task%20you%20just%20unlocked%20etc.%2C%3C%2FP%3E%0A%20%20%3CP%3ESo%2C%20let%E2%80%99s%20go%20over%20it%20again%20and%20see%20how%20a%20task%20gets%20into%20the%20%E2%80%9Cstuck%E2%80%9D%20or%20%E2%80%9Clocked%E2%80%9D%20state.%26nbsp%3B%20First%20of%20all%2C%20we%20already%20know%20that%20the%20task%20will%20be%20in%20the%20locked%20state%20once%20a%20user%20submits%20the%20task%20from%20the%20task%20form.%26nbsp%3B%20The%20%E2%80%9Clocked%E2%80%9D%20state%20will%20remain%20until%20the%20workflow%20instance%20processes%20the%20%3CEM%3E%20OnTaskChanged%20%3C%2FEM%3E%20event%20(if%20you%20still%20don%E2%80%99t%20understand%20why%2C%20read%20Part%201%20of%20this%20series).%26nbsp%3B%20So%2C%20if%20you%20are%20trying%20to%20re-submit%20the%20task%20via%20code%20or%20UI%2C%20you%20will%20get%20the%20exception%20that%20the%20task%20is%20currently%20being%20locked%20and%20you%20wait%20for%20hours%20or%20days%20and%20try%20to%20resubmit%20it%20and%20again%20you%20get%20the%20same%20exception.%26nbsp%3B%20Why%3F%3C%2FP%3E%0A%20%20%3CP%3EHere%20is%20why%3A%3C%2FP%3E%0A%20%20%3CBLOCKQUOTE%3E%0A%20%20%20%3CP%3E%231%20The%20ItemUpdated%20event%20has%20not%20been%20processed%20by%20the%20workflow%20instance%20yet.%26nbsp%3B%20So%20the%20task%20has%20to%20remain%20in%20the%20%E2%80%9Clocked%E2%80%9D%20state.%3C%2FP%3E%0A%20%20%3C%2FBLOCKQUOTE%3E%0A%20%20%3CBLOCKQUOTE%3E%0A%20%20%20%3CP%3E%232%20The%20ItemUpdated%20event%20has%20never%20reached%20the%20workflow%20engine%20(EventDeliveryFailedException).%26nbsp%3B%20Again%2C%20the%20workflow%20has%20not%20processed%20the%20event%20yet%20so%20that%20task%20has%20to%20remain%20in%20%E2%80%9Clocked%E2%80%9D%20state.%3C%2FP%3E%0A%20%20%3C%2FBLOCKQUOTE%3E%0A%20%20%3CBLOCKQUOTE%3E%0A%20%20%20%3CP%3E%233%20The%20workflow%20has%20processed%20the%20ItemUpdated%20event%2C%20BUT%20the%20task%20is%20not%20unlocked%20as%20it%E2%80%99s%20supposed%20to.%3C%2FP%3E%0A%20%20%3C%2FBLOCKQUOTE%3E%0A%20%20%3CP%3E%231%3A%20Let%E2%80%99s%20step%20back%20a%20little%20bit%20to%20understand%20what%20happens%20when%20a%20user%20submits%20the%20task.%26nbsp%3B%20First%20of%20all%2C%20we%20know%20that%20an%20event%20receiver%20will%20be%20fired.%26nbsp%3B%20And%20it%20will%20try%20to%20deliver%20the%20event%20to%20workflow.%26nbsp%3B%20SPWorkflowManager%20needs%20to%20load%20the%20workflow%20instance%20into%20the%20runtime%20to%20deliver%20the%20event.%26nbsp%3B%20However%2C%20if%20the%20workflow%20instance%20is%20currently%20locked%20then%20SPWorkflowManager%20will%20not%20be%20able%20to%20deliver%20it.%26nbsp%3B%20A%20WorkItem%20will%20be%20queued%20in%20content%20database%20(ScheduledWorkItems%20table)%20and%20timer%20job%20can%20pick%20it%20up%20for%20re-delivery.%26nbsp%3B%20If%20timer%20service%20or%20timer%20job%20is%20not%20running%20then%20nobody%20will%20pick%20up%20the%20work%20item.%3C%2FP%3E%0A%20%20%3CP%3E%232%3A%20EventDeliveryFailedException%20is%20the%20most%20famous%20(of%20infamous)%20exception%20in%20workflow.%26nbsp%3B%20There%20are%20actually%20a%20couple%20of%20different%20variations%20to%20this%20exception%20depending%20on%20its%20inner%20exception.%26nbsp%3B%20The%20following%20are%20the%20most%20common%20ones%3A%3C%2FP%3E%0A%20%20%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%0A%20%20%20%3CDIV%20id%3D%22codeSnippet%22%3EEngine%20RunWorkflow%3A%20System.Workflow.Activities.EventDeliveryFailedException%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Event%20%22OnTaskChanged%22%20on%20interface%20type%20%22Microsoft.SharePoint.Workflow.ITaskService%22%20for%20instance%20id%20%2284f908b6-0357-497c-b7cc-8021798dc706%22%20cannot%20be%20delivered.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20---%26gt%3B%20System.Workflow.Runtime.QueueException%3A%20Event%20Queue%20operation%20failed%20with%20MessageQueueErrorCode%20QueueNotFound%20for%20queue%20'Message%20Properties%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ITaskService%20Method%20Name%3AOnTaskChanged%20CorrelationValues%3A%20ff5aa7b7-b6e4-4efb-84ef-27750b17b8ca%20'.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20at%20System.Workflow.Runtime.WorkflowQueuingService.GetQueue(IComparable%20queueID)%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20Windows%20SharePoint%20Services%20Workflow%20Infrastructure%20Engine%20RunWorkflow%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Activities.EventDeliveryFailedException%3A%20Event%20%22OnTaskChanged%22%20on%20interface%20type%20%22Microsoft.SharePoint.Workflow.ITaskService%22%20for%20instance%20id%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%224565fe7f-6043-4e8b-8896-4565fe7f9058%22%20can%20not%20be%20delivered.%20---%26gt%3B%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.NullReferenceException%3A%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object.%20at%20Microsoft.SharePoint.Workflow.SPWorkflowHostServiceBase.LoadInstanceData%20(Guid%20instanceId%2C%20Boolean%26amp%3B%20compressedData)%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20EventDeliveryFailedException%20with%20QueueNotFound%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ELet%E2%80%99s%20talk%20about%20this%20one%20(QueueNotFound)%20first.%26nbsp%3B%20QueueNotFound%20is%20a%20workflow%20runtime%20exception.%26nbsp%3B%20It%20basically%20means%2C%20that%20workflow%20is%20not%20waiting%20for%20the%20event%20you%20are%20trying%20to%20deliver%20to%20it.%26nbsp%3B%20In%20other%20words%2C%20it%20means%20the%20workflow%20is%20not%20waiting%20on%20anything%20on%20the%20task%20that%20you%20are%20submitting.%26nbsp%3B%20It%20might%20also%20mean%20that%20the%20workflow%20is%20waiting%20on%20task%20A%2C%20but%20you%20are%20submitting%20task%20B.%26nbsp%3B%20Basically%2C%20the%20workflow%20instance%20is%20not%20getting%20what%20it%20wants%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111442i2821499B1BBB7460%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ESo%20what%20happened%3F%26nbsp%3B%20Here%20are%20a%20couple%20of%20reasons%20that%20could%20cause%20this%20problem%3A%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E1.%20The%20workflow%20instance%20was%20not%20properly%20persisted.%26nbsp%3B%20The%20workflow%20usually%20will%20be%20persisted%20after%20it%20has%20no%20more%20work%20to%20do.%26nbsp%3B%20Especially%2C%20when%20it%20reaches%20%3CEM%3E%20OnTaskChanged%20%3C%2FEM%3E%20activity.%26nbsp%3B%20The%20persistence%20service%20will%20try%20to%20save%20the%20workflow%20instance%20to%20the%20content%20database.%26nbsp%3B%20If%20things%20go%20wrong%20during%20the%20persistence%20process%2C%20the%20state%20of%20the%20workflow%20instance%20will%20be%20in%20the%20previous%20saved%20state%2C%20which%20is%20completely%20wrong.%26nbsp%3B%20If%20you%20have%20created%20a%20new%20task%20in%20the%20workflow%2C%20it%20has%20no%20idea%20about%20that%20because%20the%20state%20of%20the%20workflow%20instance%20is%20not%20saved.%26nbsp%3B%20It%E2%80%99s%20like%20the%20workflow%20time%20travels%20back%20to%20a%20point%20where%20the%20task%20has%20not%20been%20created%20yet.%26nbsp%3B%20Now%2C%20you%20are%20trying%20to%20submit%20a%20task%20that%20the%20workflow%20has%20no%20idea%20about.%26nbsp%3B%20So%2C%20EventDeliveryFailedException%20with%20QueueNotFound%20is%20the%20exception%20you%20will%20get.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E2.%20The%20other%20scenario%20is%20that%20the%20workflow%20seems%20to%20be%20waiting%20for%20task%20A.%26nbsp%3B%20But%20you%20are%20submitting%20task%20B.%26nbsp%3B%20What%20might%20have%20happened%20is%20that%20the%20correlation%20parameters%20are%20messed%20up.%26nbsp%3B%20Remember%20that%20TaskId%20parameter%20you%20have%20to%20setup%20for%20each%20task%20you%20are%20tracking%20in%20the%20workflow%3F%20Yes%2C%20that%20is%20the%20identifier%20for%20the%20conversation%20on%20the%20task.%26nbsp%3B%20Each%20CreateTask%20and%20OnTaskChanged%20pair%20needs%20to%20have%20a%20unique%20TaskId%20which%20should%20be%20different%20from%20the%20other%20pairs.%26nbsp%3B%20One%20of%20the%20most%20common%20issues%20we%20see%20is%20that%20people%20use%20a%20shared%20variable%20in%20the%20workflow%20class%20to%20create%20the%20TaskId%20for%20each%20pair%20of%20CreateTask%2FOnTaskChanged.%26nbsp%3B%20There%20is%20no%20problem%20if%20your%20tasks%20are%20running%20sequentially.%26nbsp%3B%20But%20if%20the%20tasks%20will%20be%20run%20in%20parallel%2C%20you%20will%20definitely%20have%20problems%20with%20this%20design.%26nbsp%3B%20A%20shared%20variable%20between%20the%20tasks%20could%20cause%20race%20condition.%26nbsp%3B%20A%20TaskId%20for%20task%20A%20could%20be%20read%20and%20assigned%20to%20task%20B%20by%20workflow%20runtime%20(since%20it%E2%80%99s%20parallel)%20at%20the%20same%20time.%26nbsp%3B%20The%20chances%20of%20running%20into%20this%20problem%20may%20be%20low%20since%20it%E2%80%99s%20a%20race%20condition.%26nbsp%3B%20But%20if%20you%20are%20getting%20some%20random%20EventDeliveryFailedException%20once%20in%20a%20while%2C%20you%E2%80%99d%20better%20check%20if%20you%20are%20using%20a%20shared%20TaskId.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E3.%20Before%20August%202011%20CU%20for%20SharePoint%202010%2C%20there%20were%20some%20issues%20with%20the%20way%20SharePoint%20processes%20events.%26nbsp%3B%20And%20it%20could%20cause%20the%20workflow%20being%20persisted%20into%20a%20wrong%20state.%26nbsp%3B%20After%20August%202011%20CU%2C%20the%20event%20processing%20is%20more%20robust%20although%20you%20might%20experience%20some%20delay%20in%20the%20event%20processing.%26nbsp%3B%20So%2C%20make%20sure%20you%20are%20at%20least%20on%20August%202011%20CU%20if%20you%20are%20running%20out%20of%20options.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20EventDeliveryFailedException%20with%20NullReferenceException%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ENotice%20that%20call%20stack%20says%20it%20failed%20on%20%E2%80%9CSPWorkflowHostServiceBase.LoadInstanceData%E2%80%9D%20method.%26nbsp%3B%20This%20is%20part%20of%20SharePoint%20persistence%20service.%26nbsp%3B%20SharePoint%20workflow%20runtime%20needs%20to%20load%20the%20workflow%20instance%20into%20memory%20before%20it%20can%20be%20delivered%20to%20the%20event.%26nbsp%3B%20This%20exception%20indicates%20that%20the%20workflow%20instance%20may%20not%20be%20persisted%20correclty%20as%20some%20objects%20seem%20to%20be%20null.%26nbsp%3B%20In%20August%202011%20CU%2C%20we%20added%20more%20ULS%20logs%20for%20diagnosing%20issues%20with%20persistence%20service.%26nbsp%3B%20The%20following%20is%20an%20example.%26nbsp%3B%20So%20if%20you%20are%20not%20sure%20if%20your%20workflow%20has%20any%20issue%20with%20persistence%2C%20look%20for%20the%20following%20message%20in%20the%20ULS%20logs.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20Failed%20to%20persist%20workflow%20instance%3A%203c489d77-355c-4beb-86d4-1f106f26113c%20with%20error%20code%3A%205%2C%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20instance%20data%20size%3A%2034505%2C%20internal%20state%3A%20Running%2C%20processing%20id%3A%204db2b5e9-cf02-479f-83fc-db106a432ba4%2015bfccd3-663b-449e-8d37-113494e4f892%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EOne%20of%20the%20causes%20of%20this%20exception%20is%20that%20the%20workflow%20was%20taking%20too%20long%20to%20finish.%26nbsp%3B%20There%20is%20a%20hard-coded%20threshold%20in%20SharePoint%20that%20if%20the%20workflow%20is%20taking%20more%20than%2020%20minutes%20to%20reach%20the%20next%20persistence%20point%2C%20its%20state%20could%20be%20re-set%20by%20the%20fail-over%20timer%20job.%26nbsp%3B%20We%20mentioned%20earlier%20that%20this%20timer%20job%20is%20used%20to%20determine%20if%20a%20workflow%20has%20died%20half%20way%20through.%26nbsp%3B%20If%20so%2C%20it%E2%80%99ll%20re-set%20its%20state.%26nbsp%3B%20The%20way%20the%20fail-over%20timer%20job%20detects%20the%20dead%20workflow%20is%20to%20check%20how%20long%20the%20workflow%20has%20been%20running.%26nbsp%3B%20Because%20most%20workflows%20should%20be%20able%20to%20complete%20its%20work%20within%20a%20couple%20of%20minutes%20or%20even%20seconds%2C%20so%20if%20a%20workflow%20status%20in%20database%20shows%20it%20has%20been%20running%20more%20than%2020%20minutes%2C%20it%E2%80%99s%20likely%20that%20it%E2%80%99s%20not%20running%20at%20all.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Analyzing%20Log%20Files%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWorkflow%20runtime%20trace%20and%20ULS%20logs%20are%20the%20most%20commonly%20used%20logs%20for%20troubleshooting%20workflow%20issues.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Runtime%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ETo%20enable%20workflow%20logging%2C%20you%20can%20use%20the%20configuration%20file%20to%20create%20output%20of%20Windows%20Workflow%20Foundation%20logging%20information%20to%20help%20in%20debugging%20scenarios.%26nbsp%3B%20Windows%20Workflow%20Foundation%20uses%20the%20configuration%20format%20that%20was%20introduced%20in%20the%20Microsoft%20.NET%20Framework%202.0.%26nbsp%3B%20The%20following%20examples%20show%20how%20to%20enable%20logging%20information%20for%20several%20Windows%20Workflow%20Foundation%20namespaces.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ETo%20use%20a%20configuration%20file%20to%20configure%20the%20workflow%20runtime%20engine%20for%20your%20SharePoint%20workflow%2C%20you%20first%20need%20to%20figure%20out%20what%20are%20the%20processes%20that%20may%20run%20the%20workflow.%26nbsp%3B%20W3wp.exe%20may%20be%20the%20one%20that%20comes%20into%20your%20mind%2C%20but%20don%E2%80%99t%20forget%20the%20timer%20service%20which%20also%20runs%20workflow.%26nbsp%3B%20If%20you%20don%E2%80%99t%20have%20a%20OWSTIMER.exe.CONFIG%20file%20yet%2C%20you%20can%20manually%20create%20one%20under%20the%2014%5CBin%20folder.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EHere%E2%80%99s%20an%20example%3A%20An%20absolute%20path%20is%20specified%20in%20the%20initializeData%20attribute.%26nbsp%3B%20Also%2C%20some%20additional%20options%20are%20specified%20by%20using%20the%20following%20traceOutputOptions%20attributes%3A%20ProcessId%20and%20DateTime.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EIf%20these%20attributes%20are%20being%20used%20for%20a%20web%20application%20and%20if%20multiple%20instances%20of%20w3wp.exe%20are%20running%2C%20each%20attribute%20will%20create%20its%20own%20trace%20file.%26nbsp%3B%20In%20this%20scenario%2C%20in%20addition%20to%20the%20WFTrace.log%20file%2C%20you%20will%20have%20files%20that%20are%20named%20%3CGUID%3EWFTrace.log.%3C%2FGUID%3E%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CCONFIGURATION%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSYSTEM.DIAGNOSTICS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSOURCES%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSOURCE%20name%3D%22%26quot%3BSystem.Workflow.Runtime%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow%26quot%3B%2F%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSOURCE%20name%3D%22%26quot%3BSystem.Workflow.Runtime.Hosting%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow%26quot%3B%2F%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSOURCE%20name%3D%22%26quot%3BSystem.Workflow.Activities%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow%26quot%3B%2F%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FSOURCE%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSHAREDLISTENERS%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow%26quot%3B%22%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20type%3D%22System.Diagnostics.TextWriterTraceListener%22%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20initializeData%3D%22d%3A%5C_temp%5CWFTrace.log%22%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20traceOutputOptions%3D%22DateTime%2CProcessId%22%2F%26gt%3B%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSWITCHES%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow.LogToTraceListeners%26quot%3B%22%20value%3D%22%26quot%3B1%26quot%3B%2F%22%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow.Runtime%26quot%3B%22%20value%3D%22%26quot%3BAll%26quot%3B%22%3E%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow.Runtime.Hosting%26quot%3B%22%20value%3D%22%26quot%3BAll%26quot%3B%22%3E%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow.Runtime.Tracking%26quot%3B%22%20value%3D%22%26quot%3BAll%26quot%3B%22%3E%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow.Activities%26quot%3B%22%20value%3D%22%26quot%3BAll%26quot%3B%22%3E%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CADD%20name%3D%22%26quot%3BSystem.Workflow.Activities.Rules%26quot%3B%22%20value%3D%22%26quot%3BAll%26quot%3B%22%3E%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FADD%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FSWITCHES%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FSHAREDLISTENERS%3E%20%3CBR%20%2F%3E%3C%2FSOURCE%3E%3C%2FSOURCE%3E%3C%2FSOURCES%3E%3C%2FSYSTEM.DIAGNOSTICS%3E%3C%2FCONFIGURATION%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%3CEM%3EtraceOutputOptions%20%3C%2FEM%3E%20is%20used%20by%20the%20trace%20listener%20to%20determine%20which%20options%20or%20elements%20should%20be%20included%20in%20trace%20output.%26nbsp%3B%20In%20most%20cases%2C%20DateTime%20and%20ProcessId%20should%20be%20good%20enough.%26nbsp%3B%20You%20can%20also%20add%20%E2%80%9CCallstack%E2%80%9D%20to%20it%2C%20which%20will%20give%20more%20information%20about%20the%20context%20of%20the%20log%20entry.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ULS%20Logs%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ETo%20enable%20verbose%20log%20for%20workflow%2C%20go%20to%20Central%20Administration%20site%2C%20then%20click%20Monitoring%20on%20the%20left%20navigation.%26nbsp%3B%20Click%20on%20Configure%20diagnostics%20logging.%26nbsp%3B%20Check%20General%2C%20Timer%20and%20Workflow%20Infrastructure%20under%20the%20SharePoint%20Foundation%20category%20and%20select%20Verbose%20in%20the%20least%20critical%20event%20to%20report%20to%20trace%20log.%26nbsp%3B%20The%20reason%20we%20want%20to%20enable%20%E2%80%9CGeneral%E2%80%9D%20is%20because%20most%20of%20the%20event%20receiver%20related%20logs%20are%20under%20%E2%80%9CGeneral%E2%80%9D%20category%20and%20it%E2%80%99s%20very%20useful%20when%20troubleshooting%20issues%20with%20the%20event%20delivery%20pipeline.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Analyzing%20ULS%20Logs%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMost%20of%20workflow%20failures%20are%20associated%20with%20some%20sort%20of%20exception%20and%20you%20should%20be%20able%20to%20find%20the%20exceptions%20in%20the%20ULS%20logs.%26nbsp%3B%20Sometimes%2C%20the%20workflow%20appears%20fine%20on%20the%20UI%2C%20for%20example%2C%20the%20workflow%20status%20may%20show%20%E2%80%9CIn%20Progress%E2%80%9D%20on%20the%20UI%2C%20but%20some%20of%20its%20tasks%20are%20locked.%26nbsp%3B%20Now%2C%20it%E2%80%99s%20time%20to%20search%20ULS%20logs%20to%20see%20if%20there%E2%80%99s%20any%20exception%20for%20that%20particular%20workflow%20instance.%26nbsp%3B%20The%20call%20stack%20associated%20with%20the%20exception%20in%20the%20ULS%20logs%20should%20be%20able%20to%20tell%20you%20what%20has%20happened%20on%20the%20instance%20and%20where%20that%20happened.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EEach%20ULS%20log%20has%20a%20unique%20tag%20associated%20with%20it.%26nbsp%3B%20For%20example%2C%20%E2%80%9C936m%E2%80%9D%20is%20the%20unique%20tag%20for%20all%20%E2%80%9CEvents%20Successfully%20delivered%20to%20Instance%3A%20%3CINSTANCEID%3E%E2%80%9D.%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2007%2F25%2F2011%2012%3A31%3A01.68%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20OWSTIMER.EXE%20(0x1DCC)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x1E34%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20936m%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20RunWorkflow%3A%20Events%20successfully%20delivered%20to%20Instance%3A%20e63dcf89-5cd5-4121-8302-58063851e903%2C%20Association%3A%20dde85862-a347-4ab2-9978-f8fbaf7d965f%2C%20BaseTemplate%3A%2062506157-6fad-4127-8b0f-6f37fa023000%202f8a3470-d977-4b09-b51b-5770bf6e86b4%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20following%20table%20shows%20the%20most%20common%20workflow%20error%20and%20exception%20that%20may%20be%20shown%20in%20the%20ULS%20log.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CTABLE%3E%0A%20%20%20%3CTBODY%3E%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20ULS%20tag%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Location%20and%20Log%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72fq%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.StartWorkflow()%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%22Start%20Workflow%3A%20%3CEXCEPTION%20message%3D%22%22%3E%E2%80%9D%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72fr%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.SaveInstanceData()%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%22Workflow%20Save%20Instance%3A%20%3CEXCEPTION%20message%3D%22%22%3E%E2%80%9D%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_98d6%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.SaveInstanceData()%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72fs%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.RunWorkflow()%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%22RunWorkflow%3A%20%3CEXCEPTION%20message%3D%22%22%3E%22%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_98d7%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.RunWorkflow()%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20An%20entry%20is%20logged%20into%20HistoryList%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72fu%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.LoadPluggableClass%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%E2%80%9CLoad%20Workflow%20Class%3A%20%3CEXCEPTION%20message%3D%22%22%3E%22%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72fr%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.AutoStartWorkflow%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%E2%80%9CDeclarative%20workflow%20may%20fail%20to%20start%20because%20it%20was%20trying%20to%20impersonate%20the%20workflow%20author%2C%20but%20that%20user%20does%20not%20exist%20on%20this%20site.%22%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72fv%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.AutoStartWorkflow%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%E2%80%9CAutoStart%20Workflow%3A%20%3CEXCEPTION%20message%3D%22%22%3E%22%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_7fbw%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWorkflowManager.DelaySTartworkflow%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%22DelayedStart%20Workflow%3A%20%3CEXCEPTION%20message%3D%22%22%3E%E2%80%9D%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72et%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOeHostServices.CreateSubscription%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72eu%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOeHostServices.DeleteSubscription%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72ev%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOETaskService.CreateTask%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72ew%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOETaskService.CreateTaskWithContnetType%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72ez%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOETaskService.DeleteTask%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72f0%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOETaskService.CompleteTask%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72f1%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOETaskService.RollBackTask%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72f2%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOETaskService.SendEmail%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_75yn%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOEHostService.LoadWorkflowAssembly%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%E2%80%9CLoad%20Workflow%20Assembly%3A%20%25s%22%E2%80%9D%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_88xr%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOEHostService.TerminateWorkflow%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%E2%80%9CWinWF%20Internal%20Error%2C%20terminating%20workflow%20Id%23%20%3CINSTANCEID%3E%22%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_98d4%2C%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOEHostService.TerminateWorkflow%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_98d5%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOEHostService%20.ExceptionNotHandled%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72eo%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOEHostService%20.DehydrateInstance%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%E2%80%9CDehydrateInstance%3A%20%3CEXCEPTION%20message%3D%22%22%3E%E2%80%9D%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_72ep%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOEHostService%20.WorkItemDequeue%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%E2%80%9CWorkflow%20WorkItem%20Dequeue%3A%20%3CEXCEPTION%20message%3D%22%22%3E%22%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_936l%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOeEngine.RunWorkflow%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%22Engine%20RunWorkflow%3A%20%3CEXCEPTION%20message%3D%22%22%3E%22%2C%3C%2FEXCEPTION%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3Etag_936m%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3ELocation%3A%20SPWinOeEngine.RunWorkflow%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EMessage%3A%20%22RunWorkflow%3A%20Events%20successfully%20delivered%20to%20Instance%3A%20%3CINSTANCEID%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20workflow%20failover%20job%2C%20unlocking%20workflow%20instance%3A%20%7B0%7D%2C%20processing%20id%3A%20%7B1%7D%22%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3EIn%20workflow%20failover%20job%2C%20failover%20in%20progress%20work%20items%20for%20workflow%20instance%3A%20%7B1%7D%2C%20processing%20id%3A%20%7B1%7D%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%3C%2FTBODY%3E%3C%2FTABLE%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EIn%20August%202011%20CU%20and%20February%202012%20CU%20for%20SharePoint%202010%2C%20we%20add%20more%20ULS%20log%20for%20diagnosing%20workflow%20issues.%26nbsp%3B%20And%20they%20all%20show%20as%20%E2%80%9C0000%E2%80%9D%20on%20the%20tag.%26nbsp%3B%20These%20logs%20have%20been%20very%20useful%20in%20troubleshooting%20some%20complicated%20issues.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CTABLE%3E%0A%20%20%20%3CTBODY%3E%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20ULS%20tag%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Location%20and%20Log%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Running%20timer%20event%20for%20workflow%20instance%20%3CINSTANCEID%3E%E2%80%9D%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%E2%80%9CRunning%20non-timer%20event%20for%20instance%20%3CINSTANCEID%3E%E2%80%9D%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22After%20RunWorkflow()%20the%20instance%20is%20still%20running.%20Calling%20TryUnload()%20on%20workflow%20instance%3A%20%26lt%3B%20InstanceID%26gt%3B%E2%80%9D%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%E2%80%9CProcessing%20%7B0%7D%20events%20for%20workflow%20instance%3A%20%26lt%3B%20InstanceID%26gt%3B%2C%20processing%20id%3A%20%3CPROCESSINGID%3E%E2%80%9D%3C%2FPROCESSINGID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Stopped%20processing%20events%20for%20workflow%20instance%3A%20%3CINSTANCEID%3E%20because%20the%20instance%20is%20unlocked.%22%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Processing%20event%20%3CEVENTNAME%3E%20with%20id%20%3CEVENTID%3E%20for%20workflow%20instance%3A%20%26lt%3B%20InstanceID%26gt%3B%2C%20processing%20id%3A%20%3CPROCESSINGID%3E%E2%80%9D%3C%2FPROCESSINGID%3E%3C%2FEVENTID%3E%3C%2FEVENTNAME%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20RaiseEvent()%2C%20calling%20RunWorkflowElev%20for%20instance%20%26lt%3B%20InstanceID%26gt%3B%2C%20event%20type%3A%20%3CEVENTTYPE%3E%22%3C%2FEVENTTYPE%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Calling%20RouteWorkflowEvent()%20on%20list%20%3CLISTID%3E%2C%20item%20%3CITEMID%3E%20for%20event%20type%3A%20%3CEVENTTYPE%3E%E2%80%9D%3C%2FEVENTTYPE%3E%3C%2FITEMID%3E%3C%2FLISTID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20Workflow%20event%20receiver%2C%20ItemUpdating()%22)%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20ItemUpdated()%20call%20on%20workflow%20event%20receiver%20for%20list%20id%3A%20%3CLISTID%3E%2C%20item%20id%3A%20%3CITEMID%3E%E2%80%9D%3C%2FITEMID%3E%3C%2FLISTID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Setting%20up%20workflow%20event%20receiver%20for%20instance%3A%20%3CINSTANCEID%3E%20on%20list%20%3CLISTID%3E%22%3C%2FLISTID%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Loaded%20instance%20data%20for%20instance%3A%20%3CINSTANCEID%3E%2C%20data%20size%3A%20%3CSIZE%3E%2C%20processing%20id%3A%20%3CPROCESSINGID%3E%22%3C%2FPROCESSINGID%3E%3C%2FSIZE%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Calling%20SaveInstanceData%20for%20workflow%20instance%3A%3CINSTANCEID%3E%3B%20instance%20data%20size%3A%20%3CSIZE%3E%2C%20internal%20state%3A%20%3CINTERNALSTATE%3E%2C%20processing%20id%3A%20%3CPROCESSINGID%3E%22%3C%2FPROCESSINGID%3E%3C%2FINTERNALSTATE%3E%3C%2FSIZE%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Failed%20to%20persist%20workflow%20instance%3A%20%3CINSTANCEID%3E%20with%20error%20code%3A%20%3CINSTANCEID%3E%2Cinstance%20data%20size%3A%20%3CSIZE%3E%2C%20internal%20state%3A%20%3CINTERNALSTATE%3E%2C%20processing%20id%3A%20%3CPROCESSINGID%3E%22%3C%2FPROCESSINGID%3E%3C%2FINTERNALSTATE%3E%3C%2FSIZE%3E%3C%2FINSTANCEID%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Successfully%20persisted%20workflow%20instance%3A%20%3CINSTANCEID%3E%20with%20error%20code%3A%20%3CERRORCODE%3E%2C%20instance%20data%20size%3A%20%3CSIZE%3E%2C%20internal%20state%3A%20%3CINTERNALSTATE%3E%20processing%20id%3A%20%3CPROCESSINGID%3E%22%3C%2FPROCESSINGID%3E%3C%2FINTERNALSTATE%3E%3C%2FSIZE%3E%3C%2FERRORCODE%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Unlocking%20instance%3A%20%3CINSTANCEID%3E%20with%20processing%20id%3A%20%3CPROCESSINGID%3E%20because%20its%20internal%20state%20%3CINTERNALSTATE%3E%20is%20completed%20or%20terminated%22%3C%2FINTERNALSTATE%3E%3C%2FPROCESSINGID%3E%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20RunWorkflowElev()%2C%20Enqueue%20pending%20event%3A%20%3CEVENT%3E%20for%20instance%3A%20%3CINSTANCEID%3E%22%3C%2FINSTANCEID%3E%3C%2FEVENT%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20RunWorkflowElev()%2C%20begin%20processing%20events%20for%20instance%3A%20%3CINSTANCEID%3E%E2%80%9D%3C%2FINSTANCEID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22Updating%20workflow%20task%20with%20id%20%3CTASKID%3E%20on%20list%20%3CLISTID%3E%20in%20AlterTask()%22%3C%2FLISTID%3E%3C%2FTASKID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20fireItemEvent()%2C%20for%20list%20%3CLISTID%3E%2C%20and%20item%3A%20%3CITEMID%3E%22%2C%3C%2FITEMID%3E%3C%2FLISTID%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%20%3CTR%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E0000%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%20%3CTD%3E%3CBR%20%2F%3E%3CP%3E%22In%20fireSyncItemEvent()%2C%20calling%20ExecuteItemEventReceivers()%22)%3C%2FP%3E%3CBR%20%2F%3E%3C%2FTD%3E%0A%20%20%20%3C%2FTR%3E%0A%20%20%3C%2FTBODY%3E%3C%2FTABLE%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EI%20included%20an%20example%20to%20show%20how%20to%20read%20these%20messages%20to%20understand%20what%E2%80%99s%20going%20on%20with%20the%20workflow%20instance.%26nbsp%3B%20This%20example%2C%20is%20based%20on%20the%20SharePoint%202010%20Approval%20workflow%20template%20with%20a%20single%20task%20in%20it.%26nbsp%3B%20The%20workflow%20completed%20successfully%20after%20the%20task%20has%20been%20approved.%26nbsp%3B%20For%20each%20log%2C%20I%20included%20a%20note%20that%20explains%20what%20has%20just%20happened%20on%20the%20workflow%20instance%20(below).%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Filtered%20based%20on%20workflow%20InstanceID%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E(Note%20that%20the%20following%20logs%20only%20included%20the%20logs%20that%20are%20filtered%20based%20on%20the%20workflow%20Instance%20ID%3A%2084963525-6500-492a-9586-975ba07c2a19).%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A00.59%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20RunWorkflowElev()%2C%20Enqueue%20pending%20event%3A%20bf3ab7d2-cc40-3634-a4d6-1978b43af379%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20is%20the%20very%20first%20log%20of%20the%20workflow.%20The%20reason%20why%20it%20seems%20to%20be%20trying%20to%20delivery%20an%20event%20is%20because%20of%20the%20OnWorkflowActivated%20event.%20As%20you%20recall%2C%20OnWorkflowActivated%20activity%20is%20the%20very%20first%20activity%20required%20for%20SharePoint%20workflow%20flow.%20It%20is%20essentially%20a%20HandleExternalEventActivity%20which%20is%20waiting%20for%20the%20initialization%20data%20from%20SharePoint%20workflow%20runtime.%20So%20that%E2%80%99s%20right%2C%20the%20very%20first%20thing%20on%20a%20SharePoint%20workflow%20is%20to%20deliver%20the%20initialization%20data%20to%20the%20workflow%20instance.%20Before%20the%20event%20delivery%2C%20we%20en-queue%20it%20in%20content%20database%20first.%20That%E2%80%99s%20what%20has%20happened.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A02.12%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20RunWorkflowElev()%2C%20begin%20processing%20events%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A19.27%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Processing%201%20events%20for%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20processing%20id%3A%209e4dbed4-55af-4b85-907a-a1e2d6761c58%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EEn-queue%20completed%20and%20now%20we%20started%20processing%20the%20event.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A19.27%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Processing%20event%20OnWorkflowActivated%20with%20id%2000000000-0000-0000-0000-000000000000%20for%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20processing%20id%3A%209e4dbed4-55af-4b85-907a-a1e2d6761c58%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ENow%20we%20are%20processing%20the%20OnWorkflowActivated%20event.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A26.25%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Setting%20up%20workflow%20event%20receiver%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20on%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A26.26%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Setting%20up%20workflow%20event%20receiver%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20on%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A26.26%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Setting%20up%20workflow%20event%20receiver%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20on%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A26.26%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Setting%20up%20workflow%20event%20receiver%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20on%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20previous%20four%20logs%20are%20for%20setting%20up%20event%20receivers%20on%20the%20Task%20List.%20The%20List%20ID%20on%20the%20log%20suggests%20this%20is%20the%20Task%20list.%20Because%20I%20created%20a%20task%20in%20the%20workflow%2C%20SharePoint%20subscription%20service%20will%20set%20up%20the%20event%20receiver%20for%20each%20event%20type%3A%20ItemAdded%2C%20ItemUpdating%2C%20ItemUpdated%20and%20ItemDeleted.%20Note%20that%20ItemUpdated%20is%20the%20one%20that%20will%20trigger%20OnTaskChanged%20activity%20in%20the%20workflow.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A26.54%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Setting%20up%20workflow%20event%20receiver%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20on%20list%204a8a416b-c92b-4cfc-82f9-e5e99c5bc871%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20event%20receiver%20is%20for%20the%20document%20on%20which%20I%20started%20the%20workflow.%20The%20purpose%20of%20this%20is%20to%20listen%20to%20the%20%E2%80%9CItemDeleted%E2%80%9D%20event%20where%20the%20workflow%20can%20respond%20to%20stop%20the%20workflow.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A27.29%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Calling%20SaveInstanceData%20for%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20instance%20data%20size%3A%2038253%2C%20internal%20state%3A%20Locked%2C%20Running%2C%20NotStarted%2C%20processing%20id%3A%209e4dbed4-55af-4b85-907a-a1e2d6761c58%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWorkflow%20got%20no%20more%20work%20after%20the%20task%20has%20been%20created%20and%20started%20waiting%20on%20the%20OnTaskChanged%20activity.%20At%20this%20point%2C%20persistence%20is%20being%20called%20and%20the%20workflow%20state%20is%20saved%20to%20content%20database.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A27.35%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Successfully%20persisted%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20with%20error%20code%3A%200%2C%20instance%20data%20size%3A%2038253%2C%20internal%20state%3A%20Locked%2C%20Running%2C%20NotStarted%2C%20processing%20id%3A%209e4dbed4-55af-4b85-907a-a1e2d6761c58%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20log%20shows%20the%20persistence%20service%20successfully%20save%20the%20workflow%20state%20into%20content%20database.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A27.41%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20936m%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20RunWorkflow%3A%20Events%20successfully%20delivered%20to%20Instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20Association%3A%208dc4f282-d366-4e7f-838d-1838bb7fd829%2C%20BaseTemplate%3A%208ad4d8f0-93a7-4941-9657-cf3706f00409%2C%20processing%20id%3A%209e4dbed4-55af-4b85-907a-a1e2d6761c58%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20is%20the%20end%20of%20the%20OnWorkflowActivated%20event%20delivery.%20This%20seems%20to%20be%20too%20late%20as%20lots%20of%20things%20have%20already%20happened.%20Yes%2C%20but%20the%20whole%20thing%20started%20with%20delivering%20the%20very%20first%20event%20(OnWorkflowActviated)%2C%20this%20marks%20the%20end%20of%20the%20event%20lifecycle.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.67%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20RaiseEvent()%2C%20calling%20RunWorkflowElev%20for%20instance%2084963525-6500-492a-9586-975ba07c2a19%2C%20event%20type%3A%20Microsoft.SharePoint.Workflow.ITaskService%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWe%20got%20this%20log%20right%20after%20the%20user%20approved%20the%20task.%20Now%20we%20are%20trying%20to%20raise%20the%20ItemUpdated%20(OnTaskChanged)%20event%20to%20the%20workflow%20instance.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.67%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20RunWorkflowElev()%2C%20Enqueue%20pending%20event%3A%20ceb27b99-ec4c-3b88-81f4-343de4d3ed0d%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EAgain%2C%20en-queuing%20the%20event%20first%20to%20content%20database.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.68%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20RunWorkflowElev()%2C%20begin%20processing%20events%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.68%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Processing%201%20events%20for%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.68%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Processing%20event%20OnTaskChanged%20with%20id%2000000000-0000-0000-0000-000000000000%20for%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EStart%20processing%20the%20OnTaskChanged%20event.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.68%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Running%20non-timer%20event%20for%20instance%2084963525-6500-492a-9586-975ba07c2a19%2C%20internal%20state%3A%20Locked%2C%20Running%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20is%20just%20a%20notification%20that%20this%20is%20non-timer%20event.%20Timer%20events%20are%20events%20such%20as%20%E2%80%9CDelay%E2%80%9D%2C%20%E2%80%9CDelayFor%E2%80%9D%2C%20etc.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.69%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Loaded%20instance%20data%20for%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20data%20size%3A%2038253%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EPersistence%20service%20loaded%20the%20workflow%20instance%20from%20database%20into%20memory.%20This%20process%20de-serializes%20the%20workflow%20state%20and%20loads%20it%20into%20workflow%20runtime.%20Notice%20the%20size%20of%20the%20instance%20data%20(38253)%20is%20exactly%20the%20same%20with%20the%20one%20we%20persisted%20in%20previous%20log.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A53.76%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Calling%20SaveInstanceData%20for%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20instance%20data%20size%3A%200%2C%20internal%20state%3A%20Locked%2C%20Running%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWorkflow%20instance%20finished%20processing%20the%20OnTaskChanged%20event%2C%20now%20persistence%20service%20is%20being%20called%20again%20to%20save%20the%20workflow%20state%20back%20to%20content%20database.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A53.84%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Successfully%20persisted%20workflow%20instance%3A%2084963525-6500-492a-9586-975ba07c2a19%20with%20error%20code%3A%200%2C%20instance%20data%20size%3A%200%2C%20internal%20state%3A%20Locked%2C%20Running%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20notifies%20that%20the%20workflow%20has%20been%20successfully%20persisted.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A53.86%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20936m%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20RunWorkflow%3A%20Events%20successfully%20delivered%20to%20Instance%3A%2084963525-6500-492a-9586-975ba07c2a19%2C%20Association%3A%208dc4f282-d366-4e7f-838d-1838bb7fd829%2C%20BaseTemplate%3A%208ad4d8f0-93a7-4941-9657-cf3706f00409%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EAgain%2C%20this%20marks%20the%20end%20of%20the%20ItemUpdated%20(OnTaskChanged)%20event%20lifecycle.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Other%20Logs%20for%20Event%20Pipeline%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ESome%20of%20the%20logs%20on%20the%20event%20delivery%20pipeline%20are%20not%20in%20the%20Workflow%20Infrastructure%20category.%20But%20these%20are%20the%20ones%20you%20need%20to%20look%20for%3A%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.31%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Updating%20workflow%20task%20with%20id%201%20on%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%20in%20AlterTask()%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20update%20on%20a%20workflow%20update%20starts%20with%20SPWorkflowTask.AlterTask()%20API.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.32%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20SPRequest.AddOrUpdateItem()%2C%20for%20list%20%7B1A9F51BB-D41E-457C-8998-A443DE8E02E9%7D%2C%20and%20item%3A%201%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20is%20a%20SharePoint%20internal%20call%20that%E2%80%99s%20making%20the%20changes%20to%20the%20list%20item%20associated%20with%20the%20task.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.32%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20CheckandfireItemEvent()%2C%20for%20list%20item%201%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ECheck%20and%20fire%20Item%20event%20receiver%2C%20as%20its%20name%20suggests.%20(this%20is%20for%20Synchronous%20event%20receivers).%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.32%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20fireItemEvent()%2C%20for%20list%20Tasks%2C%20and%20item%3A%201%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.32%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20fireSyncItemEvent()%2C%20calling%20ExecuteItemEventReceivers()%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EStart%20firing%20item%20event%20receivers.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.33%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Calling%20ExecuteItemEventReceivers()%20for%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%20on%20item%201%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EExecute%20Synchronous%20Item%20event%20receivers.%20For%20example%2C%20ItemUpdating%20event.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20CheckandfireItemEvent()%2C%20for%20list%20item%201%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ECheck%20and%20fire%20Item%20event%20receiver%2C%20as%20its%20name%20suggests.%20(This%20is%20for%20Asynchronous%20event%20receivers).%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.56%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x20B4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20General%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20fireItemEvent()%2C%20for%20list%20Tasks%2C%20and%20item%3A%201%20f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EFire%20Asynchronous%20item%20event%20receivers.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.57%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20ItemUpdated()%20call%20on%20workflow%20event%20receiver%20for%20list%20id%3A%201a9f51bb-d41e-457c-8998-a443de8e02e9%2C%20item%20id%3A%201%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EFire%20ItemUpdated%20event%20on%20the%20task.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.58%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Calling%20RouteWorkflowEvent()%20on%20list%201a9f51bb-d41e-457c-8998-a443de8e02e9%2C%20item%201%20for%20event%20type%3A%20ItemUpdated%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWorkflow%20event%20receiver%20is%20being%20called%20and%20it%20will%20try%20to%20deliver%20the%20event%20to%20workflow%20instance%20through%20SPWorkflowManager.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Analyzing%20Workflow%20Runtime%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWorkflow%20trace%20may%20look%20overwhelming%20when%20you%20look%20at%20it%20the%20first%20time.%20The%20key%20is%20to%20read%20the%20actual%20workflow%20logic%20and%20understand%20what%20sequence%20of%20the%20activities%20and%20then%20try%20to%20find%20the%20same%20activity%20flow%20in%20the%20trace%20file.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20next%20is%20a%20full%20walk%20through%20about%20how%20to%20read%20the%20workflow%20trace.%20It%E2%80%99s%20based%20on%20the%20previous%20sample%20workflow%20which%20has%20a%20CreateTask%20activity%2C%20an%20OnTaskChanged%20activity%20and%20a%20CompleteTask%20activity%20at%20the%20end.%20The%20OnTaskChanged%20activity%20is%20wrapped%20in%20a%20While%20activity%20which%20will%20end%20when%20the%20Task%20is%20marked%20as%20%E2%80%9C100%25%E2%80%9D%20Complete.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111443i3EDA4E7FFBD782FE%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%3CB%3E%3CI%3ENOTE%20%3C%2FI%3E%20%3C%2FB%3E%20%3CI%3E%20%3A%20A%20note%20has%20been%20included%20after%20each%20highlighted%20log.%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ENote%20that%20this%20trace%20only%20included%20the%20logs%20for%20the%20workflow%20instance%20that%20we%20are%20analyzing.%20You%20should%20always%20filter%20the%20trace%20based%20on%20the%20instance%20ID%20because%20it%20would%20be%20very%20distracting%20when%20you%20look%20at%20a%20trace%20that%20has%20multiple%20instances%20running.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%20Started%20WorkflowRuntime%20023c7e83-b965-4322-a4c1-57b4303a560c%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A46.8992124Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D64f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.1062516Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Start%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.1072282Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%20dispensing%20resource%2C%20instanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.1091814Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20Creating%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.6404518Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20is%20the%20start%20of%20the%20workflow.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Creating%20new%20Queue%20with%20ID%20-514710269%20for%20*PendingNotifications%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.6785392Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20TimerEventSubscriptionQueue%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20Created%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.6795158Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Adding%20context%201%3AWorkflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.6814690Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%E2%80%9CWorkflow1%E2%80%9D%20is%20the%20name%20of%20the%20workflow%20template.%20%E2%80%9CAdding%20Context%201%E2%80%9D%20basically%20means%20this%20is%20the%20current%20activity%20we%20are%20executing.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%3A%20replacing%20unusable%20executor%20for%20key%2064f82660-15b8-4a7e-90b7-4e054164e923%20with%20new%20one%20(hc%3A%2061799993)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.6843988Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Creating%20new%20Queue%20with%20ID%20-528633178%20for%20Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ISharePointService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnWorkflowActivated%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.7371352Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E%E2%80%9CCreating%20new%20Queue%E2%80%9D%20basically%20is%20a%20workflow%20runtime%20language%2C%20it%20means%20that%20an%20%E2%80%9Cevent%20sink%E2%80%9D%20has%20been%20created%20for%20OnWorkflowActivated%20activity.%20As%20you%20recall%2C%20OnWorkflowActivated%20is%20an%20event%20defined%20on%20ISharePointService.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%20dispensing%20resource%20instanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A%2061799993%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.7742460Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D00000000-0000-0000-0000-000000000000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.7742460Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Stop%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.7742460Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Activities%20Information%3A%200%20%3A%20Firing%20event%20OnWorkflowActivated%20for%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.8679996Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ESharePoint%20Workflow%20has%20just%20delivered%20the%20OnWorkflowActivated%20event%20to%20workflow%20runtime%2C%20that%E2%80%99s%20why%20we%20are%20seeing%20%E2%80%9CFiring%20event%20OnWorkflowActivated%E2%80%9D.%20Go%20back%20and%20check%20the%20ULS%20log%20and%20see%20if%20you%20find%20the%20logs%20for%20delivering%20%E2%80%9COnWorkflowActivated%E2%80%9D%20event.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D64f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.8699528Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Start%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.8699528Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Enqueue%20item%20Queue%20ID%20-528633178%20for%20Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ISharePointService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnWorkflowActivated%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.8875316Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%203707448%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9041338Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D00000000-0000-0000-0000-000000000000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9060870Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Stop%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9060870Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D64f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9080402Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Start%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9080402Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20Workflow1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9217126Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((1)Workflow1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9334318Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20Schedule%20workflow%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9422212Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D00000000-0000-0000-0000-000000000000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9422212Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Stop%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9422212Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20Running%20workflow%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9451510Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20CanRun%20is%20True%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9471042Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20Executing%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9500340Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20Running%20workflow%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9510106Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D64f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9558936Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Start%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A47.9558936Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((1)Workflow1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.0008172Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20onWorkflowActivated1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.0359748Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20activity%20onWorkflowActivated1%20is%20being%20executed%20by%20workflow%20runtime%2C%20because%20its%20status%20changed%20from%20%E2%80%9CInitialized%E2%80%9D%20to%20%E2%80%9CExecuting%E2%80%9D.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((1)onWorkflowActivated1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.0359748Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((1)Workflow1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.0359748Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((1)onWorkflowActivated1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.0359748Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20CorrelationToken%20initialized%20for%20workflowToken%20owner%20activity%20Workflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.0721090Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20onWorkflowActivated1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1101964Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20indicates%20that%20the%20OnWorkflowActivated%20activity%20has%20finished.%20Its%20status%20changed%20from%20%E2%80%9CExecuting%E2%80%9D%20to%20%E2%80%9CClosed%E2%80%9D.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)onWorkflowActivated1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1209390Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EonWorkflowActivated1%20activity%20finished%20successfully.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((1)onWorkflowActivated1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1355880Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)onWorkflowActivated1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1355880Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20sequenceActivity1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EDo%20you%20see%20the%20next%20activity%20on%20the%20workflow%20template%3F%20Yes%20its%20name%20is%20sequenceActivity1.%20Notice%20that%20createTask1%20and%20onTaskChanged1%20are%20child%20activities%20of%20sequenceActivity1.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((1)sequenceActivity1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)onWorkflowActivated1'%2C%20Closed%2C%20Succeeded))%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((1)sequenceActivity1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20createTask1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EcreateTask1%20is%20the%20first%20Child%20activity%20of%20sequenceActivity1.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((1)createTask1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((1)sequenceActivity1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((1)createTask1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1453540Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Activities%20Information%3A%200%20%3A%20CorrelationTokenInvalidatedHandler%3A%20creating%20q%20-798539121%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1687924Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Creating%20new%20Queue%20with%20ID%20-798539121%20for%20Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ITaskService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnTaskChanged%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20b788bb83-2882-4587-b4a9-b8a3bfc7c1b9%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.1687924Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EAs%20we%20mentioned%20earlier%2C%20A%20%E2%80%9CQueue%E2%80%9D%20in%20the%20language%20of%20workflow%20runtime%20is%20similar%20to%20an%20%E2%80%9Cevent%20sink%E2%80%9D%2C%20since%20the%20task%20is%20associated%20with%20an%20OnTaskChanged%20activity%20we%E2%80%99ll%20then%20need%20to%20set%20up%20a%20Queue%20for%20it.%20The%20Queue%20will%20be%20called%20back%20when%20workflow%20runtime%20receives%20the%20event%20from%20SharePoint.%20Notice%20that%20the%20CorrelationValue%20is%20the%20TaskId%20you%20created%20on%20createTask1_Invoking()%20method.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2037535352%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.2049266Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2046630754%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.2049266Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2047616313%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.2049266Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20CorrelationToken%20initialized%20for%20taskToken%20owner%20activity%20Workflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.2049266Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2016973140%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3240718Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20createTask1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EcreateTask1%20completed.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)createTask1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((1)createTask1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)createTask1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20whileActivity1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EStart%20executing%20the%20next%20activity%3A%20whileActivity1.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((1)whileActivity1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)createTask1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((1)whileActivity1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.3445804Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Adding%20context%202%3AonTaskChanged1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5008364Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20onTaskChanged1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5027896Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EStart%20executing%20onTaskChanged1%20activity.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((2)onTaskChanged1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5027896Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((1)whileActivity1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5037662Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((2)onTaskChanged1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5037662Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20WorkflowQueue%3AQueueItemAvailable%20subscribe%20for%20activity%20'onTaskChanged1'%20with%20context%20Id%202%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5106024Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Activities%20Information%3A%200%20%3A%20CorrelationService%3A%20activity%20'onTaskChanged1'%20subscribing%20to%20QueueItemAvailable%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5106024Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ESubscribe%20'onTaskChanged1'%20activity%20to%20QueueitemAvailable%2C%20this%20basically%20set%20up%20the%20event%20sink%20with%20the%20workflow%20runtime%20so%20that%20when%20workflow%20runtime%20receives%20the%20event%20from%20host%20application%2C%20it%20will%20raise%20the%20event%20to%20the%20onTaskChanged1%20activity.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((2)onTaskChanged1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5106024Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20workflow%20instance%20'64f82660-15b8-4a7e-90b7-4e054164e923'%20has%20no%20work.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5115790Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20Unloading%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5174386Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20TimerEventSubscriptionQueue%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20Suspend%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5193918Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%3A%20Calling%20PerformUnloading(false)%3A%20InstanceId%2064f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A%2061799993%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5193918Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20Calling%20SaveWorkflowInstanceState%20for%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20hc%2061799993%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.5359940Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20Serialized%20a%20System.Workflow.ComponentModel.ActivityExecutionContextInfo%20with%20id%2064f82660-15b8-4a7e-90b7-4e054164e923%20to%20length%209045.%20Took%2000%3A00%3A00.0625024.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6141220Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20above%20five%20highlighted%20logs%20shows%20that%20the%20workflow%20instance%20has%20no%20more%20work%20except%20waiting%20for%20the%20event%20to%20come%20back.%20It%E2%80%99s%20time%20to%20persist%20and%20unload%20the%20workflow%20instance.%20Notice%20that%20last%20highlight%20log%20says%20%E2%80%9CSerialized%20a%20%3CWORKFLOW%20class%3D%22%22%3E%20to%20length%209045%E2%80%9D.%209045%20is%20the%20size%20of%20the%20workflow%20instance%20data.%20You%20should%20still%20remember%20that%20in%20ULS%20log%20there%20is%20a%20log%20that%20shows%20the%20same%20instance%20size.%3C%2FWORKFLOW%3E%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A27.29%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x21F4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Calling%20SaveInstanceData%20for%20workflow%20instance%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%2C%20instance%20data%20size%3A%209045%2C%20internal%20state%3A%20Locked%2C%20Running%2C%20NotStarted%2C%20processing%20id%3A%209e4dbed4-55af-4b85-907a-a1e2d6761c58%2053bffe51-5d04-448a-a592-2ec318f9d13f%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E(NOTE%3A%20the%20full%20ULS%20log%20for%20this%20particular%20instance%20was%20not%20included%20in%20this%20document).%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2063891231%20added%20workItem%20hc%2015165310%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6150986Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20Calling%20CommitTransaction%20for%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20hc%2061799993%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6209582Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%203707448%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6824840Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2037535352%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6824840Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2046630754%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6824840Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2047616313%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6824840Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2032747756%20added%20workItem%20hc%2016973140%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6824840Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2063891231%20added%20workItem%20hc%2015165310%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.6834606Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%3A%20Returning%20from%20ProtectedPersist%3A%20InstanceId%2064f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A%2061799993%2C%20ret%3DTrue%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9354234Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20WorkflowExecutor%3A%20unloaded%20workflow%20instance%20'64f82660-15b8-4a7e-90b7-4e054164e923'.%20IsInstanceValid%3DFalse%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9373766Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20Received%20OnIdle%20Event%20for%20instance%2C%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9383532Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3ASchedulePersisted%20event%20raised%20for%20instance%20Id%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9393298Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3AScheduleUnloaded%20event%20raised%20for%20instance%20Id%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9412830Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%3ATryRemoveWorkflowExecutor%2C%20instance%3A64f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A61799993%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9481192Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%3A_removeInstance%2C%20instance%3A64f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A61799993%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9481192Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWorkflow%20instance%20is%20removed%20from%20workflow%20runtime.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D00000000-0000-0000-0000-000000000000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9520256Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Stop%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9520256Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20CanRun%20is%20False%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A28%3A48.9549554Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20Deserialized%20a%20Workflow1%20%5BWorkflowProject11.Workflow1.Workflow1%5D%20to%20length%209045.%20Took%2000%3A00%3A00.0859408.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9645512Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EOne%20minute%20later%20we%20are%20loading%20the%20instance%20from%20content%20database%20back%20into%20workflow%20runtime.%20This%20is%20after%20the%20user%20submitted%20the%20task%20through%20UI%20and%20the%20event%20has%20already%20been%20delivered%20half%20through%20the%20pipeline.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ENow%20you%20see%20the%20same%20size%209045%2C%20and%20this%20corresponds%20to%20the%20ULS%20log%3A%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%2006%2F26%2F2012%2016%3A05%3A52.69%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20w3wp.exe%20(0x27B4)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200x10E4%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20SharePoint%20Foundation%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Workflow%20Infrastructure%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%200000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Verbose%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Loaded%20instance%20data%20for%20instance%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%2C%20data%20size%3A%209045%2C%20processing%20id%3A%20973d7273-526b-47a9-85f4-337f9fe82751%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3E(NOTE%3A%20the%20full%20ULS%20log%20for%20this%20particular%20instance%20was%20not%20included%20in%20this%20document).%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EWhen%20analyzing%20ULS%20log%20and%20workflow%20trace%2C%20always%20verify%20the%20size%20of%20the%20workflow%20instance%20to%20ensure%20that%20workflow%20instance%20runtime%20is%20loading%20matches%20the%20one%20it%20was%20persisted.%20An%20unmatched%20instance%20sizes%20means%20issues%20might%20have%20occurred%20with%20the%20persistence%20service.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20Loading%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9704108Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Adding%20context%201%3AWorkflow1%20for%20load%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9723640Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Adding%20context%202%3AonTaskChanged1%20for%20load%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9723640Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ELoading%20the%20workflow%20instance%20and%20adding%20the%20current%20context%20activities.%20onTaskChanged1%20is%20where%20we%20left%20off.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%3A%20replacing%20unusable%20executor%20for%20key%2064f82660-15b8-4a7e-90b7-4e054164e923%20with%20new%20one%20(hc%3A%2028529661)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9723640Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20TimerEventSubscriptionQueue%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20Resume%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9782236Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3AScheduleLoaded%20event%20raised%20for%20instance%20Id%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9782236Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Activities%20Information%3A%200%20%3A%20Firing%20event%20OnTaskChanged%20for%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9801768Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThe%20event%20finally%20was%20raised%20to%20OnTaskChanged%20activity.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D64f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9801768Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Start%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9801768Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Enqueue%20item%20Queue%20ID%20-798539121%20for%20Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ITaskService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnTaskChanged%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20b788bb83-2882-4587-b4a9-b8a3bfc7c1b9%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9801768Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((2)onTaskChanged1%2C%20System.Workflow.ComponentModel.QueueEventArgs)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9811534Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Notifying%20async%20subscriber%20on%20queue%3A'Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ITaskService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnTaskChanged%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20b788bb83-2882-4587-b4a9-b8a3bfc7c1b9%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20'%20activity%3AonTaskChanged1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9811534Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EonTaskChanged1%20activity%20is%20inside%20a%20While%20Loop%2C%20so%20we%20need%20to%20re-subscribe%20the%20event%20every%20time%20after%20it%20has%20been%20raised.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2018075529%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20Schedule%20workflow%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D00000000-0000-0000-0000-000000000000%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Stop%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20Running%20workflow%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20CanRun%20is%20True%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20ManualWorkflowSchedulerService%3A%20Executing%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20Running%20workflow%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Transfer%3A%200%20%3A%20%2C%20relatedActivityId%3D64f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Start%3A%200%20%3A%20Workflow%20Trace%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((2)onTaskChanged1%2C%20System.Workflow.ComponentModel.QueueEventArgs)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9821300Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20onTaskChanged1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9938492Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EonTaskChanged1%20activity%20finished.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)whileActivity1%2C%20ActivityStatusChange('(2)onTaskChanged1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9938492Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((2)onTaskChanged1%2C%20System.Workflow.ComponentModel.QueueEventArgs)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9938492Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)whileActivity1%2C%20ActivityStatusChange('(2)onTaskChanged1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A09.9938492Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Removing%20context%202%3AonTaskChanged1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0075216Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)whileActivity1%2C%20ActivityStatusChange('(1)whileActivity1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0075216Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)whileActivity1%2C%20ActivityStatusChange('(2)onTaskChanged1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0075216Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)whileActivity1%2C%20ActivityStatusChange('(1)whileActivity1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0075216Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20whileActivity1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EwhileActivity1%20activity%20finished.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0143578Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)whileActivity1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0143578Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)whileActivity1%2C%20ActivityStatusChange('(1)whileActivity1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0153344Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)whileActivity1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0153344Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)sequenceActivity1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0153344Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)whileActivity1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0153344Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)sequenceActivity1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0153344Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20sequenceActivity1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EAll%20child%20activities%20of%20sequenceActivity1%20finished.%20Now%20sequenceActivity1%20is%20also%20finished.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)sequenceActivity1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)sequenceActivity1%2C%20ActivityStatusChange('(1)sequenceActivity1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)sequenceActivity1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20completeTask1%20Old%3AInitialized%3B%20New%3AExecuting%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EStart%20executing%20completeTask1%20activity.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20ActivityOperation((1)completeTask1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)sequenceActivity1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20ActivityOperation((1)completeTask1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0163110Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2059621546%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0387728Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20completeTask1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EDone%20executing%20completeTask1.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0387728Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)completeTask1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0387728Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20ActivityOperation((1)completeTask1%2C%20Execute)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0387728Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)completeTask1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0397494Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Scheduling%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)Workflow1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0407260Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)completeTask1'%2C%20Closed%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0407260Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)Workflow1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0407260Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Activity%20Status%20Change%20-%20Activity%3A%20Workflow1%20Old%3AExecuting%3B%20New%3AClosed%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0407260Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EDone%20executing%20the%20entire%20workflow.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippetWrapper%22%3E%3CBR%20%2F%3E%3CDIV%20id%3D%22codeSnippet%22%3E%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20CorrelationToken%20Uninitialized%20for%20workflowToken%20owner%20activity%20Workflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0436558Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Queuing%20Service%3A%20Deleting%20Queue%20with%20ID%20-798539121%20for%20Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ITaskService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnTaskChanged%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20b788bb83-2882-4587-b4a9-b8a3bfc7c1b9%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0475622Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2021353980%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0641644Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2033592719%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0641644Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Activities%20Information%3A%200%20%3A%20CorrelationTokenInvalidatedHandler%20subscription%20deleted%20SubId%208641f1db-ae5b-44df-b504-fe34946edcd0%20QueueId%20Message%20Properties%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Interface%20Type%3AMicrosoft.SharePoint.Workflow.ITaskService%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Method%20Name%3AOnTaskChanged%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20CorrelationValues%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20b788bb83-2882-4587-b4a9-b8a3bfc7c1b9%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0641644Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20CorrelationToken%20Uninitialized%20for%20taskToken%20owner%20activity%20Workflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0661176Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20Calling%20SaveWorkflowInstanceState%20for%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20hc%2028529661%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0719772Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2063891231%20added%20workItem%20hc%208140213%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0719772Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20Workflow%20Runtime%3A%20WorkflowExecutor%3A%20Calling%20CommitTransaction%20for%20instance%2064f82660-15b8-4a7e-90b7-4e054164e923%20hc%2028529661%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0719772Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2018075529%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0719772Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2059621546%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0719772Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2021353980%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0729538Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2043253384%20added%20workItem%20hc%2033592719%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0729538Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20pending%20work%20hc%2063891231%20added%20workItem%20hc%208140213%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.0729538Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20CorrelationToken%20Uninitialized%20for%20workflowToken%20owner%20activity%20Workflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.1901458Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%200%20%3A%20CorrelationToken%20Uninitialized%20for%20taskToken%20owner%20activity%20Workflow1%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.1901458Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime%20Information%3A%201%20%3A%20Workflow%20Runtime%3A%20Scheduler%3A%20InstanceId%3A%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3A%20Done%20with%20running%20scheduled%20entry%3A%20SubscriptionEvent((1)Workflow1%2C%20ActivityStatusChange('(1)Workflow1'%2C%20Executing%2C%20Succeeded))%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.1901458Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3ASchedulePersisted%20event%20raised%20for%20instance%20Id%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.1901458Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3AScheduleCompleted%20event%20raised%20for%20instance%20Id%2064f82660-15b8-4a7e-90b7-4e054164e923%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.2018650Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%3ATryRemoveWorkflowExecutor%2C%20instance%3A64f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A28529661%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.2956186Z%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20System.Workflow.Runtime.Hosting%20Information%3A%200%20%3A%20WorkflowRuntime%3A%3A_removeInstance%2C%20instance%3A64f82660-15b8-4a7e-90b7-4e054164e923%2C%20hc%3A28529661%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20ProcessId%3D5128%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20DateTime%3D2012-06-27T00%3A29%3A10.2956186Z%20%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FDIV%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3ERemoving%20the%20workflow%20instance%20from%20workflow%20runtime.%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId-1534230100%22%20id%3D%22toc-hId-1625599101%22%3EConclusion%3C%2FH3%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%3CP%3EThis%20concludes%20this%20three%20part%20series%20on%20SharePoint%20Workflow%20Architecture%20and%20troubleshooting.%26nbsp%3B%20Hope%20you%20found%20this%20as%20a%20helpful%20resource.%26nbsp%3B%20Do%20drop%20us%20a%20line%20if%20you%20have%20any%20comments%20or%20questions.%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-509733%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20TECHNET%20on%20Mar%2012%2C%202013%20This%20blog%20post%20is%20a%20contribution%20from%20Andy%20Li%2C%20an%20Escalation%20Engineer%20with%20the%20SharePoint%20Developer%20Support%20team.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-509733%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Esharepoint%202007%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharepoint%202010%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWorkflow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eworkflow%20architecture%20series%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft
First published on TECHNET on Mar 12, 2013

This blog post is a contribution from Andy Li, an Escalation Engineer with the SharePoint Developer Support team.

Andy is one of the Escalation Engineer with the SharePoint Developer Support team.  The series of posts on Workflows are his contribution for the community to better understand the internals of workflow runtime and how it interacts with SharePoint.

If you missed the first two parts of this SharePoint Workflow Architecture series, below are links to quickly navigation to them.

SharePoint Workflow Architecture – Part 1

SharePoint Workflow Architecture – Part 2

Locked/Stuck Tasks

Locked tasks or stuck tasks are one of the most common issues many people have seen in workflows.  People ask me the same question when they have a locked task – how to unlock it? My answer has always been: why is the task locked in the first place?  Lot of people don’t really understand what’s causing the task to be in the locked state and simply try to unlock it and hope that will solve the problem with the workflow.  The fact is that might only make the problem worse!

There is actually a very popular “unsupported” way to unlock a task.  Essentially, the way it unlocks the task is to update the “WorkflowVersion” column for the task to “1” (we mentioned it in an earlier post that “1” means unlocked).  The problem with this workaround is that it doesn’t know what has happened with the workflow instance, where the workflow instance stopped and whether the workflow is expecting an update from the task you just unlocked etc.,

So, let’s go over it again and see how a task gets into the “stuck” or “locked” state.  First of all, we already know that the task will be in the locked state once a user submits the task from the task form.  The “locked” state will remain until the workflow instance processes the OnTaskChanged event (if you still don’t understand why, read Part 1 of this series).  So, if you are trying to re-submit the task via code or UI, you will get the exception that the task is currently being locked and you wait for hours or days and try to resubmit it and again you get the same exception.  Why?

Here is why:

#1 The ItemUpdated event has not been processed by the workflow instance yet.  So the task has to remain in the “locked” state.

#2 The ItemUpdated event has never reached the workflow engine (EventDeliveryFailedException).  Again, the workflow has not processed the event yet so that task has to remain in “locked” state.

#3 The workflow has processed the ItemUpdated event, BUT the task is not unlocked as it’s supposed to.

#1: Let’s step back a little bit to understand what happens when a user submits the task.  First of all, we know that an event receiver will be fired.  And it will try to deliver the event to workflow.  SPWorkflowManager needs to load the workflow instance into the runtime to deliver the event.  However, if the workflow instance is currently locked then SPWorkflowManager will not be able to deliver it.  A WorkItem will be queued in content database (ScheduledWorkItems table) and timer job can pick it up for re-delivery.  If timer service or timer job is not running then nobody will pick up the work item.

#2: EventDeliveryFailedException is the most famous (of infamous) exception in workflow.  There are actually a couple of different variations to this exception depending on its inner exception.  The following are the most common ones:

Engine RunWorkflow: System.Workflow.Activities.EventDeliveryFailedException:


Event "OnTaskChanged" on interface type "Microsoft.SharePoint.Workflow.ITaskService" for instance id "84f908b6-0357-497c-b7cc-8021798dc706" cannot be delivered.


---> System.Workflow.Runtime.QueueException: Event Queue operation failed with MessageQueueErrorCode QueueNotFound for queue 'Message Properties Interface Type:Microsoft.SharePoint.Workflow.ITaskService Method Name:OnTaskChanged CorrelationValues: ff5aa7b7-b6e4-4efb-84ef-27750b17b8ca '.


at System.Workflow.Runtime.WorkflowQueuingService.GetQueue(IComparable queueID)





Windows SharePoint Services Workflow Infrastructure Engine RunWorkflow:


System.Workflow.Activities.EventDeliveryFailedException: Event "OnTaskChanged" on interface type "Microsoft.SharePoint.Workflow.ITaskService" for instance id


"4565fe7f-6043-4e8b-8896-4565fe7f9058" can not be delivered. --->


System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Workflow.SPWorkflowHostServiceBase.LoadInstanceData (Guid instanceId, Boolean& compressedData)



EventDeliveryFailedException with QueueNotFound

Let’s talk about this one (QueueNotFound) first.  QueueNotFound is a workflow runtime exception.  It basically means, that workflow is not waiting for the event you are trying to deliver to it.  In other words, it means the workflow is not waiting on anything on the task that you are submitting.  It might also mean that the workflow is waiting on task A, but you are submitting task B.  Basically, the workflow instance is not getting what it wants



So what happened?  Here are a couple of reasons that could cause this problem:



1. The workflow instance was not properly persisted.  The workflow usually will be persisted after it has no more work to do.  Especially, when it reaches OnTaskChanged activity.  The persistence service will try to save the workflow instance to the content database.  If things go wrong during the persistence process, the state of the workflow instance will be in the previous saved state, which is completely wrong.  If you have created a new task in the workflow, it has no idea about that because the state of the workflow instance is not saved.  It’s like the workflow time travels back to a point where the task has not been created yet.  Now, you are trying to submit a task that the workflow has no idea about.  So, EventDeliveryFailedException with QueueNotFound is the exception you will get.



2. The other scenario is that the workflow seems to be waiting for task A.  But you are submitting task B.  What might have happened is that the correlation parameters are messed up.  Remember that TaskId parameter you have to setup for each task you are tracking in the workflow? Yes, that is the identifier for the conversation on the task.  Each CreateTask and OnTaskChanged pair needs to have a unique TaskId which should be different from the other pairs.  One of the most common issues we see is that people use a shared variable in the workflow class to create the TaskId for each pair of CreateTask/OnTaskChanged.  There is no problem if your tasks are running sequentially.  But if the tasks will be run in parallel, you will definitely have problems with this design.  A shared variable between the tasks could cause race condition.  A TaskId for task A could be read and assigned to task B by workflow runtime (since it’s parallel) at the same time.  The chances of running into this problem may be low since it’s a race condition.  But if you are getting some random EventDeliveryFailedException once in a while, you’d better check if you are using a shared TaskId.



3. Before August 2011 CU for SharePoint 2010, there were some issues with the way SharePoint processes events.  And it could cause the workflow being persisted into a wrong state.  After August 2011 CU, the event processing is more robust although you might experience some delay in the event processing.  So, make sure you are at least on August 2011 CU if you are running out of options.



EventDeliveryFailedException with NullReferenceException

Notice that call stack says it failed on “SPWorkflowHostServiceBase.LoadInstanceData” method.  This is part of SharePoint persistence service.  SharePoint workflow runtime needs to load the workflow instance into memory before it can be delivered to the event.  This exception indicates that the workflow instance may not be persisted correclty as some objects seem to be null.  In August 2011 CU, we added more ULS logs for diagnosing issues with persistence service.  The following is an example.  So if you are not sure if your workflow has any issue with persistence, look for the following message in the ULS logs.





Failed to persist workflow instance: 3c489d77-355c-4beb-86d4-1f106f26113c with error code: 5,


instance data size: 34505, internal state: Running, processing id: 4db2b5e9-cf02-479f-83fc-db106a432ba4 15bfccd3-663b-449e-8d37-113494e4f892



One of the causes of this exception is that the workflow was taking too long to finish.  There is a hard-coded threshold in SharePoint that if the workflow is taking more than 20 minutes to reach the next persistence point, its state could be re-set by the fail-over timer job.  We mentioned earlier that this timer job is used to determine if a workflow has died half way through.  If so, it’ll re-set its state.  The way the fail-over timer job detects the dead workflow is to check how long the workflow has been running.  Because most workflows should be able to complete its work within a couple of minutes or even seconds, so if a workflow status in database shows it has been running more than 20 minutes, it’s likely that it’s not running at all.



Analyzing Log Files

Workflow runtime trace and ULS logs are the most commonly used logs for troubleshooting workflow issues.



Workflow Runtime Trace

To enable workflow logging, you can use the configuration file to create output of Windows Workflow Foundation logging information to help in debugging scenarios.  Windows Workflow Foundation uses the configuration format that was introduced in the Microsoft .NET Framework 2.0.  The following examples show how to enable logging information for several Windows Workflow Foundation namespaces.



To use a configuration file to configure the workflow runtime engine for your SharePoint workflow, you first need to figure out what are the processes that may run the workflow.  W3wp.exe may be the one that comes into your mind, but don’t forget the timer service which also runs workflow.  If you don’t have a OWSTIMER.exe.CONFIG file yet, you can manually create one under the 14\Bin folder.



Here’s an example: An absolute path is specified in the initializeData attribute.  Also, some additional options are specified by using the following traceOutputOptions attributes: ProcessId and DateTime.



If these attributes are being used for a web application and if multiple instances of w3wp.exe are running, each attribute will create its own trace file.  In this scenario, in addition to the WFTrace.log file, you will have files that are named <GUID>WFTrace.log.





<?xml version="1.0" encoding="utf-8"?>


<configuration>


<system.diagnostics>


<sources>


<source name="System.Workflow.Runtime" >


<listeners>


<add name = "System.Workflow"/>


</listeners>


</source>


<source name="System.Workflow.Runtime.Hosting">


<listeners>


<add name="System.Workflow"/>


</listeners>


</source>


<source name="System.Workflow.Activities">


<listeners>


<add name="System.Workflow"/>


</listeners>


</source>


</sources>


<sharedListeners>


<add name="System.Workflow"


type="System.Diagnostics.TextWriterTraceListener"


initializeData="d:\_temp\WFTrace.log"


traceOutputOptions="DateTime,ProcessId"/>


</sharedListeners>


<switches>


<add name="System.Workflow.LogToTraceListeners" value="1"/>


<add name="System.Workflow.Runtime" value="All" />


<add name="System.Workflow.Runtime.Hosting" value="All" />


<add name="System.Workflow.Runtime.Tracking" value="All" />


<add name="System.Workflow.Activities" value="All" />


<add name="System.Workflow.Activities.Rules" value="All" />


</switches>


</system.diagnostics>


</configuration>



traceOutputOptions is used by the trace listener to determine which options or elements should be included in trace output.  In most cases, DateTime and ProcessId should be good enough.  You can also add “Callstack” to it, which will give more information about the context of the log entry.



ULS Logs

To enable verbose log for workflow, go to Central Administration site, then click Monitoring on the left navigation.  Click on Configure diagnostics logging.  Check General, Timer and Workflow Infrastructure under the SharePoint Foundation category and select Verbose in the least critical event to report to trace log.  The reason we want to enable “General” is because most of the event receiver related logs are under “General” category and it’s very useful when troubleshooting issues with the event delivery pipeline.



Analyzing ULS Logs

Most of workflow failures are associated with some sort of exception and you should be able to find the exceptions in the ULS logs.  Sometimes, the workflow appears fine on the UI, for example, the workflow status may show “In Progress” on the UI, but some of its tasks are locked.  Now, it’s time to search ULS logs to see if there’s any exception for that particular workflow instance.  The call stack associated with the exception in the ULS logs should be able to tell you what has happened on the instance and where that happened.



Each ULS log has a unique tag associated with it.  For example, “936m” is the unique tag for all “Events Successfully delivered to Instance: <InstanceId>”.





07/25/2011 12:31:01.68


OWSTIMER.EXE (0x1DCC)


0x1E34


SharePoint Foundation


Workflow Infrastructure


936m


Verbose


RunWorkflow: Events successfully delivered to Instance: e63dcf89-5cd5-4121-8302-58063851e903, Association: dde85862-a347-4ab2-9978-f8fbaf7d965f, BaseTemplate: 62506157-6fad-4127-8b0f-6f37fa023000 2f8a3470-d977-4b09-b51b-5770bf6e86b4



The following table shows the most common workflow error and exception that may be shown in the ULS log.




ULS tag



Location and Log



tag_72fq



Location: SPWorkflowManager.StartWorkflow()



Message: "Start Workflow: <exception message>”



tag_72fr



Location: SPWorkflowManager.SaveInstanceData()



Message: "Workflow Save Instance: <exception message>”



tag_98d6



Location: SPWorkflowManager.SaveInstanceData()



tag_72fs



Location: SPWorkflowManager.RunWorkflow()



Message: "RunWorkflow: <exception message>"



tag_98d7



Location: SPWorkflowManager.RunWorkflow()



Message: An entry is logged into HistoryList



tag_72fu



Location: SPWorkflowManager.LoadPluggableClass



Message: “Load Workflow Class: <exception message>"



tag_72fr



Location: SPWorkflowManager.AutoStartWorkflow



Message: “Declarative workflow may fail to start because it was trying to impersonate the workflow author, but that user does not exist on this site."



tag_72fv



Location: SPWorkflowManager.AutoStartWorkflow



Message: “AutoStart Workflow: <exception message>"



tag_7fbw



Location: SPWorkflowManager.DelaySTartworkflow



Message: "DelayedStart Workflow: <exception message>”



tag_72et,



Location: SPWinOeHostServices.CreateSubscription



tag_72eu,



Location: SPWinOeHostServices.DeleteSubscription



tag_72ev



Location: SPWinOETaskService.CreateTask



tag_72ew,



Location: SPWinOETaskService.CreateTaskWithContnetType



tag_72ez,



Location: SPWinOETaskService.DeleteTask



tag_72f0,



Location: SPWinOETaskService.CompleteTask



tag_72f1,



Location: SPWinOETaskService.RollBackTask



tag_72f2



Location: SPWinOETaskService.SendEmail



tag_75yn



Location: SPWinOEHostService.LoadWorkflowAssembly



“Load Workflow Assembly: %s"”



tag_88xr,



Location: SPWinOEHostService.TerminateWorkflow



“WinWF Internal Error, terminating workflow Id# <InstanceID>"



tag_98d4,



Location: SPWinOEHostService.TerminateWorkflow



tag_98d5



Location: SPWinOEHostService .ExceptionNotHandled



tag_72eo



Location: SPWinOEHostService .DehydrateInstance



Message: “DehydrateInstance: <Exception Message>”



tag_72ep



Location: SPWinOEHostService .WorkItemDequeue



Message: “Workflow WorkItem Dequeue: <Exception Message>"



tag_936l



Location: SPWinOeEngine.RunWorkflow



Message: "Engine RunWorkflow: <Exception Message>",



tag_936m



Location: SPWinOeEngine.RunWorkflow



Message: "RunWorkflow: Events successfully delivered to Instance: <InstanceID>



0000



"In workflow failover job, unlocking workflow instance: {0}, processing id: {1}"



0000



In workflow failover job, failover in progress work items for workflow instance: {1}, processing id: {1}




In August 2011 CU and February 2012 CU for SharePoint 2010, we add more ULS log for diagnosing workflow issues.  And they all show as “0000” on the tag.  These logs have been very useful in troubleshooting some complicated issues.




ULS tag



Location and Log



0000



"Running timer event for workflow instance <InstanceID>”



0000



“Running non-timer event for instance <InstanceID>”



0000



"After RunWorkflow() the instance is still running. Calling TryUnload() on workflow instance: < InstanceID>”



0000



“Processing {0} events for workflow instance: < InstanceID>, processing id: <ProcessingID>”



0000



"Stopped processing events for workflow instance: <InstanceID> because the instance is unlocked."



0000



"Processing event <eventName> with id <EventId> for workflow instance: < InstanceID>, processing id: <ProcessingID>”



0000



"In RaiseEvent(), calling RunWorkflowElev for instance < InstanceID>, event type: <EventType>"



0000



"Calling RouteWorkflowEvent() on list <ListId>, item <ItemID> for event type: <EventType>”



0000



"In Workflow event receiver, ItemUpdating()");



0000



"In ItemUpdated() call on workflow event receiver for list id: <ListId>, item id: <ItemID>”



0000



"Setting up workflow event receiver for instance: <InstanceID> on list <ListID>"



0000



"Loaded instance data for instance: <InstanceID>, data size: <Size>, processing id: <ProcessingID>"



0000



"Calling SaveInstanceData for workflow instance:<InstanceID>; instance data size: <Size>, internal state: <InternalState>, processing id: <ProcessingID>"



0000



"Failed to persist workflow instance: <InstanceID> with error code: <InstanceID>,instance data size: <Size>, internal state: <InternalState>, processing id: <ProcessingID>"



0000



"Successfully persisted workflow instance: <InstanceID> with error code: <ErrorCode>, instance data size: <Size>, internal state: <InternalState> processing id: <ProcessingID>"



0000



"Unlocking instance: <InstanceID> with processing id: <ProcessingID> because its internal state <InternalState> is completed or terminated"



0000



"In RunWorkflowElev(), Enqueue pending event: <Event> for instance: <InstanceID>"



0000



"In RunWorkflowElev(), begin processing events for instance: <InstanceID>”



0000



"Updating workflow task with id <TaskID> on list <ListID> in AlterTask()"



0000



"In fireItemEvent(), for list <ListID>, and item: <ItemID>",



0000



"In fireSyncItemEvent(), calling ExecuteItemEventReceivers()")




I included an example to show how to read these messages to understand what’s going on with the workflow instance.  This example, is based on the SharePoint 2010 Approval workflow template with a single task in it.  The workflow completed successfully after the task has been approved.  For each log, I included a note that explains what has just happened on the workflow instance (below).



Filtered based on workflow InstanceID

(Note that the following logs only included the logs that are filtered based on the workflow Instance ID: 84963525-6500-492a-9586-975ba07c2a19).





06/26/2012 16:05:00.59


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


In RunWorkflowElev(), Enqueue pending event: bf3ab7d2-cc40-3634-a4d6-1978b43af379 for instance: 84963525-6500-492a-9586-975ba07c2a19 53bffe51-5d04-448a-a592-2ec318f9d13f



This is the very first log of the workflow. The reason why it seems to be trying to delivery an event is because of the OnWorkflowActivated event. As you recall, OnWorkflowActivated activity is the very first activity required for SharePoint workflow flow. It is essentially a HandleExternalEventActivity which is waiting for the initialization data from SharePoint workflow runtime. So that’s right, the very first thing on a SharePoint workflow is to deliver the initialization data to the workflow instance. Before the event delivery, we en-queue it in content database first. That’s what has happened.





06/26/2012 16:05:02.12


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


In RunWorkflowElev(), begin processing events for instance: 84963525-6500-492a-9586-975ba07c2a19 53bffe51-5d04-448a-a592-2ec318f9d13f








06/26/2012 16:05:19.27


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Processing 1 events for workflow instance: 84963525-6500-492a-9586-975ba07c2a19, processing id: 9e4dbed4-55af-4b85-907a-a1e2d6761c58 53bffe51-5d04-448a-a592-2ec318f9d13f



En-queue completed and now we started processing the event.





06/26/2012 16:05:19.27


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Processing event OnWorkflowActivated with id 00000000-0000-0000-0000-000000000000 for workflow instance: 84963525-6500-492a-9586-975ba07c2a19, processing id: 9e4dbed4-55af-4b85-907a-a1e2d6761c58 53bffe51-5d04-448a-a592-2ec318f9d13f



Now we are processing the OnWorkflowActivated event.





06/26/2012 16:05:26.25


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Setting up workflow event receiver for instance: 84963525-6500-492a-9586-975ba07c2a19 on list 1a9f51bb-d41e-457c-8998-a443de8e02e9 53bffe51-5d04-448a-a592-2ec318f9d13f











06/26/2012 16:05:26.26


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Setting up workflow event receiver for instance: 84963525-6500-492a-9586-975ba07c2a19 on list 1a9f51bb-d41e-457c-8998-a443de8e02e9 53bffe51-5d04-448a-a592-2ec318f9d13f











06/26/2012 16:05:26.26


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Setting up workflow event receiver for instance: 84963525-6500-492a-9586-975ba07c2a19 on list 1a9f51bb-d41e-457c-8998-a443de8e02e9 53bffe51-5d04-448a-a592-2ec318f9d13f











06/26/2012 16:05:26.26


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Setting up workflow event receiver for instance: 84963525-6500-492a-9586-975ba07c2a19 on list 1a9f51bb-d41e-457c-8998-a443de8e02e9 53bffe51-5d04-448a-a592-2ec318f9d13f



The previous four logs are for setting up event receivers on the Task List. The List ID on the log suggests this is the Task list. Because I created a task in the workflow, SharePoint subscription service will set up the event receiver for each event type: ItemAdded, ItemUpdating, ItemUpdated and ItemDeleted. Note that ItemUpdated is the one that will trigger OnTaskChanged activity in the workflow.





06/26/2012 16:05:26.54


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Setting up workflow event receiver for instance: 84963525-6500-492a-9586-975ba07c2a19 on list 4a8a416b-c92b-4cfc-82f9-e5e99c5bc871 53bffe51-5d04-448a-a592-2ec318f9d13f



This event receiver is for the document on which I started the workflow. The purpose of this is to listen to the “ItemDeleted” event where the workflow can respond to stop the workflow.





06/26/2012 16:05:27.29


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Calling SaveInstanceData for workflow instance: 84963525-6500-492a-9586-975ba07c2a19, instance data size: 38253, internal state: Locked, Running, NotStarted, processing id: 9e4dbed4-55af-4b85-907a-a1e2d6761c58 53bffe51-5d04-448a-a592-2ec318f9d13f



Workflow got no more work after the task has been created and started waiting on the OnTaskChanged activity. At this point, persistence is being called and the workflow state is saved to content database.





06/26/2012 16:05:27.35


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Successfully persisted workflow instance: 84963525-6500-492a-9586-975ba07c2a19 with error code: 0, instance data size: 38253, internal state: Locked, Running, NotStarted, processing id: 9e4dbed4-55af-4b85-907a-a1e2d6761c58 53bffe51-5d04-448a-a592-2ec318f9d13f



This log shows the persistence service successfully save the workflow state into content database.





06/26/2012 16:05:27.41


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


936m


Verbose


RunWorkflow: Events successfully delivered to Instance: 84963525-6500-492a-9586-975ba07c2a19, Association: 8dc4f282-d366-4e7f-838d-1838bb7fd829, BaseTemplate: 8ad4d8f0-93a7-4941-9657-cf3706f00409, processing id: 9e4dbed4-55af-4b85-907a-a1e2d6761c58 53bffe51-5d04-448a-a592-2ec318f9d13f



This is the end of the OnWorkflowActivated event delivery. This seems to be too late as lots of things have already happened. Yes, but the whole thing started with delivering the very first event (OnWorkflowActviated), this marks the end of the event lifecycle.





06/26/2012 16:05:52.67


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


In RaiseEvent(), calling RunWorkflowElev for instance 84963525-6500-492a-9586-975ba07c2a19, event type: Microsoft.SharePoint.Workflow.ITaskService



We got this log right after the user approved the task. Now we are trying to raise the ItemUpdated (OnTaskChanged) event to the workflow instance.





06/26/2012 16:05:52.67


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


In RunWorkflowElev(), Enqueue pending event: ceb27b99-ec4c-3b88-81f4-343de4d3ed0d for instance: 84963525-6500-492a-9586-975ba07c2a19



Again, en-queuing the event first to content database.





06/26/2012 16:05:52.68


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


In RunWorkflowElev(), begin processing events for instance: 84963525-6500-492a-9586-975ba07c2a19








06/26/2012 16:05:52.68


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Processing 1 events for workflow instance: 84963525-6500-492a-9586-975ba07c2a19, processing id: 973d7273-526b-47a9-85f4-337f9fe82751








06/26/2012 16:05:52.68


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Processing event OnTaskChanged with id 00000000-0000-0000-0000-000000000000 for workflow instance: 84963525-6500-492a-9586-975ba07c2a19, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



Start processing the OnTaskChanged event.





06/26/2012 16:05:52.68


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Running non-timer event for instance 84963525-6500-492a-9586-975ba07c2a19, internal state: Locked, Running, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



This is just a notification that this is non-timer event. Timer events are events such as “Delay”, “DelayFor”, etc.





06/26/2012 16:05:52.69


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Loaded instance data for instance: 84963525-6500-492a-9586-975ba07c2a19, data size: 38253, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



Persistence service loaded the workflow instance from database into memory. This process de-serializes the workflow state and loads it into workflow runtime. Notice the size of the instance data (38253) is exactly the same with the one we persisted in previous log.





06/26/2012 16:05:53.76


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Calling SaveInstanceData for workflow instance: 84963525-6500-492a-9586-975ba07c2a19, instance data size: 0, internal state: Locked, Running, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



Workflow instance finished processing the OnTaskChanged event, now persistence service is being called again to save the workflow state back to content database.





06/26/2012 16:05:53.84


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Successfully persisted workflow instance: 84963525-6500-492a-9586-975ba07c2a19 with error code: 0, instance data size: 0, internal state: Locked, Running, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



This notifies that the workflow has been successfully persisted.





06/26/2012 16:05:53.86


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


936m


Verbose


RunWorkflow: Events successfully delivered to Instance: 84963525-6500-492a-9586-975ba07c2a19, Association: 8dc4f282-d366-4e7f-838d-1838bb7fd829, BaseTemplate: 8ad4d8f0-93a7-4941-9657-cf3706f00409, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



Again, this marks the end of the ItemUpdated (OnTaskChanged) event lifecycle.



Other Logs for Event Pipeline

Some of the logs on the event delivery pipeline are not in the Workflow Infrastructure category. But these are the ones you need to look for:





06/26/2012 16:05:52.31


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Updating workflow task with id 1 on list 1a9f51bb-d41e-457c-8998-a443de8e02e9 in AlterTask() f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



The update on a workflow update starts with SPWorkflowTask.AlterTask() API.





06/26/2012 16:05:52.32


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


General


0000


Verbose


In SPRequest.AddOrUpdateItem(), for list {1A9F51BB-D41E-457C-8998-A443DE8E02E9}, and item: 1 f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



This is a SharePoint internal call that’s making the changes to the list item associated with the task.





06/26/2012 16:05:52.32


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


General


0000


Verbose


In CheckandfireItemEvent(), for list item 1 f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



Check and fire Item event receiver, as its name suggests. (this is for Synchronous event receivers).





06/26/2012 16:05:52.32


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


General


0000


Verbose


In fireItemEvent(), for list Tasks, and item: 1 f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0








06/26/2012 16:05:52.32


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


General


0000


Verbose


In fireSyncItemEvent(), calling ExecuteItemEventReceivers() f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



Start firing item event receivers.





06/26/2012 16:05:52.33


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


General


0000


Verbose


Calling ExecuteItemEventReceivers() for list 1a9f51bb-d41e-457c-8998-a443de8e02e9 on item 1 f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



Execute Synchronous Item event receivers. For example, ItemUpdating event.





General


0000


Verbose


In CheckandfireItemEvent(), for list item 1 f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



Check and fire Item event receiver, as its name suggests. (This is for Asynchronous event receivers).





06/26/2012 16:05:52.56


w3wp.exe (0x27B4)


0x20B4


SharePoint Foundation


General


0000


Verbose


In fireItemEvent(), for list Tasks, and item: 1 f3b13df8-1bb9-4aed-8faa-5a59b31bf1b0



Fire Asynchronous item event receivers.





06/26/2012 16:05:52.57


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


In ItemUpdated() call on workflow event receiver for list id: 1a9f51bb-d41e-457c-8998-a443de8e02e9, item id: 1



Fire ItemUpdated event on the task.





06/26/2012 16:05:52.58


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Calling RouteWorkflowEvent() on list 1a9f51bb-d41e-457c-8998-a443de8e02e9, item 1 for event type: ItemUpdated



Workflow event receiver is being called and it will try to deliver the event to workflow instance through SPWorkflowManager.



Analyzing Workflow Runtime Trace

Workflow trace may look overwhelming when you look at it the first time. The key is to read the actual workflow logic and understand what sequence of the activities and then try to find the same activity flow in the trace file.



The next is a full walk through about how to read the workflow trace. It’s based on the previous sample workflow which has a CreateTask activity, an OnTaskChanged activity and a CompleteTask activity at the end. The OnTaskChanged activity is wrapped in a While activity which will end when the Task is marked as “100%” Complete.





NOTE : A note has been included after each highlighted log.



Note that this trace only included the logs for the workflow instance that we are analyzing. You should always filter the trace based on the instance ID because it would be very distracting when you look at a trace that has multiple instances running.





System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime: Started WorkflowRuntime 023c7e83-b965-4322-a4c1-57b4303a560c


ProcessId=5128


DateTime=2012-06-27T00:28:46.8992124Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.1062516Z


System.Workflow.Runtime Start: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.1072282Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime dispensing resource, instanceId: 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.1091814Z


System.Workflow.Runtime.Hosting Information: 0 : Creating instance 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.6404518Z



This is the start of the workflow.





System.Workflow.Runtime Information: 0 : Queuing Service: Creating new Queue with ID -514710269 for *PendingNotifications


ProcessId=5128


DateTime=2012-06-27T00:28:47.6785392Z


System.Workflow.Runtime.Hosting Information: 0 : TimerEventSubscriptionQueue: 64f82660-15b8-4a7e-90b7-4e054164e923 Created


ProcessId=5128


DateTime=2012-06-27T00:28:47.6795158Z


System.Workflow.Runtime Information: 0 : Adding context 1:Workflow1


ProcessId=5128


DateTime=2012-06-27T00:28:47.6814690Z



“Workflow1” is the name of the workflow template. “Adding Context 1” basically means this is the current activity we are executing.





System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:: replacing unusable executor for key 64f82660-15b8-4a7e-90b7-4e054164e923 with new one (hc: 61799993)


ProcessId=5128


DateTime=2012-06-27T00:28:47.6843988Z


System.Workflow.Runtime Information: 0 : Queuing Service: Creating new Queue with ID -528633178 for Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ISharePointService


Method Name:OnWorkflowActivated


CorrelationValues:





ProcessId=5128


DateTime=2012-06-27T00:28:47.7371352Z



“Creating new Queue” basically is a workflow runtime language, it means that an “event sink” has been created for OnWorkflowActivated activity. As you recall, OnWorkflowActivated is an event defined on ISharePointService.





System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime dispensing resource instanceId: 64f82660-15b8-4a7e-90b7-4e054164e923, hc: 61799993


ProcessId=5128


DateTime=2012-06-27T00:28:47.7742460Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=00000000-0000-0000-0000-000000000000


ProcessId=5128


DateTime=2012-06-27T00:28:47.7742460Z


System.Workflow.Runtime Stop: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.7742460Z


System.Workflow.Activities Information: 0 : Firing event OnWorkflowActivated for instance 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.8679996Z



SharePoint Workflow has just delivered the OnWorkflowActivated event to workflow runtime, that’s why we are seeing “Firing event OnWorkflowActivated”. Go back and check the ULS log and see if you find the logs for delivering “OnWorkflowActivated” event.





System.Workflow.Runtime Transfer: 0 : , relatedActivityId=64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.8699528Z


System.Workflow.Runtime Start: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.8699528Z


System.Workflow.Runtime Information: 0 : Queuing Service: Enqueue item Queue ID -528633178 for Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ISharePointService


Method Name:OnWorkflowActivated


CorrelationValues:





ProcessId=5128


DateTime=2012-06-27T00:28:47.8875316Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 3707448


ProcessId=5128


DateTime=2012-06-27T00:28:47.9041338Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=00000000-0000-0000-0000-000000000000


ProcessId=5128


DateTime=2012-06-27T00:28:47.9060870Z


System.Workflow.Runtime Stop: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.9060870Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.9080402Z


System.Workflow.Runtime Start: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.9080402Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: Workflow1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:28:47.9217126Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((1)Workflow1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:47.9334318Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: Schedule workflow 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.9422212Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=00000000-0000-0000-0000-000000000000


ProcessId=5128


DateTime=2012-06-27T00:28:47.9422212Z


System.Workflow.Runtime Stop: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.9422212Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: Running workflow 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.9451510Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: CanRun is True


ProcessId=5128


DateTime=2012-06-27T00:28:47.9471042Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: Executing 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.9500340Z


System.Workflow.Runtime.Hosting Information: 0 : Running workflow 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.9510106Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:47.9558936Z


System.Workflow.Runtime Start: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:47.9558936Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((1)Workflow1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.0008172Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: onWorkflowActivated1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:28:48.0359748Z



The activity onWorkflowActivated1 is being executed by workflow runtime, because its status changed from “Initialized” to “Executing”.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((1)onWorkflowActivated1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.0359748Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((1)Workflow1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.0359748Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((1)onWorkflowActivated1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.0359748Z


System.Workflow.Runtime Information: 0 : CorrelationToken initialized for workflowToken owner activity Workflow1


ProcessId=5128


DateTime=2012-06-27T00:28:48.0721090Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: onWorkflowActivated1 Old:Executing; New:Closed


ProcessId=5128


DateTime=2012-06-27T00:28:48.1101964Z



This indicates that the OnWorkflowActivated activity has finished. Its status changed from “Executing” to “Closed”.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)onWorkflowActivated1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:28:48.1209390Z



onWorkflowActivated1 activity finished successfully.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((1)onWorkflowActivated1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.1355880Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)onWorkflowActivated1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:28:48.1355880Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: sequenceActivity1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z



Do you see the next activity on the workflow template? Yes its name is sequenceActivity1. Notice that createTask1 and onTaskChanged1 are child activities of sequenceActivity1.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((1)sequenceActivity1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)onWorkflowActivated1', Closed, Succeeded)) ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((1)sequenceActivity1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: createTask1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z



createTask1 is the first Child activity of sequenceActivity1.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((1)createTask1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((1)sequenceActivity1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((1)createTask1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.1453540Z


System.Workflow.Activities Information: 0 : CorrelationTokenInvalidatedHandler: creating q -798539121


ProcessId=5128


DateTime=2012-06-27T00:28:48.1687924Z


System.Workflow.Runtime Information: 0 : Queuing Service: Creating new Queue with ID -798539121 for Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ITaskService


Method Name:OnTaskChanged


CorrelationValues:


b788bb83-2882-4587-b4a9-b8a3bfc7c1b9





ProcessId=5128


DateTime=2012-06-27T00:28:48.1687924Z



As we mentioned earlier, A “Queue” in the language of workflow runtime is similar to an “event sink”, since the task is associated with an OnTaskChanged activity we’ll then need to set up a Queue for it. The Queue will be called back when workflow runtime receives the event from SharePoint. Notice that the CorrelationValue is the TaskId you created on createTask1_Invoking() method.





System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 37535352


ProcessId=5128


DateTime=2012-06-27T00:28:48.2049266Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 46630754


ProcessId=5128


DateTime=2012-06-27T00:28:48.2049266Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 47616313


ProcessId=5128


DateTime=2012-06-27T00:28:48.2049266Z


System.Workflow.Runtime Information: 0 : CorrelationToken initialized for taskToken owner activity Workflow1


ProcessId=5128


DateTime=2012-06-27T00:28:48.2049266Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 16973140


ProcessId=5128


DateTime=2012-06-27T00:28:48.3240718Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: createTask1 Old:Executing; New:Closed


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z



createTask1 completed.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)createTask1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((1)createTask1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)createTask1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z





System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: whileActivity1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z



Start executing the next activity: whileActivity1.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((1)whileActivity1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)createTask1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((1)whileActivity1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.3445804Z


System.Workflow.Runtime Information: 0 : Adding context 2:onTaskChanged1


ProcessId=5128


DateTime=2012-06-27T00:28:48.5008364Z





System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: onTaskChanged1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:28:48.5027896Z



Start executing onTaskChanged1 activity.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((2)onTaskChanged1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.5027896Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((1)whileActivity1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.5037662Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((2)onTaskChanged1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.5037662Z


System.Workflow.Runtime Information: 0 : WorkflowQueue:QueueItemAvailable subscribe for activity 'onTaskChanged1' with context Id 2


ProcessId=5128


DateTime=2012-06-27T00:28:48.5106024Z


System.Workflow.Activities Information: 0 : CorrelationService: activity 'onTaskChanged1' subscribing to QueueItemAvailable


ProcessId=5128


DateTime=2012-06-27T00:28:48.5106024Z



Subscribe 'onTaskChanged1' activity to QueueitemAvailable, this basically set up the event sink with the workflow runtime so that when workflow runtime receives the event from host application, it will raise the event to the onTaskChanged1 activity.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((2)onTaskChanged1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:28:48.5106024Z





System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: workflow instance '64f82660-15b8-4a7e-90b7-4e054164e923' has no work.


ProcessId=5128


DateTime=2012-06-27T00:28:48.5115790Z


System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: Unloading instance 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:48.5174386Z


System.Workflow.Runtime.Hosting Information: 0 : TimerEventSubscriptionQueue: 64f82660-15b8-4a7e-90b7-4e054164e923 Suspend


ProcessId=5128


DateTime=2012-06-27T00:28:48.5193918Z


System.Workflow.Runtime Information: 0 : 64f82660-15b8-4a7e-90b7-4e054164e923: Calling PerformUnloading(false): InstanceId 64f82660-15b8-4a7e-90b7-4e054164e923, hc: 61799993


ProcessId=5128


DateTime=2012-06-27T00:28:48.5193918Z


System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: Calling SaveWorkflowInstanceState for instance 64f82660-15b8-4a7e-90b7-4e054164e923 hc 61799993


ProcessId=5128


DateTime=2012-06-27T00:28:48.5359940Z


System.Workflow.Runtime.Hosting Information: 0 : Serialized a System.Workflow.ComponentModel.ActivityExecutionContextInfo with id 64f82660-15b8-4a7e-90b7-4e054164e923 to length 9045. Took 00:00:00.0625024.


ProcessId=5128


DateTime=2012-06-27T00:28:48.6141220Z



The above five highlighted logs shows that the workflow instance has no more work except waiting for the event to come back. It’s time to persist and unload the workflow instance. Notice that last highlight log says “Serialized a <workflow class> to length 9045”. 9045 is the size of the workflow instance data. You should still remember that in ULS log there is a log that shows the same instance size.





06/26/2012 16:05:27.29


w3wp.exe (0x27B4)


0x21F4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Calling SaveInstanceData for workflow instance: 64f82660-15b8-4a7e-90b7-4e054164e923, instance data size: 9045, internal state: Locked, Running, NotStarted, processing id: 9e4dbed4-55af-4b85-907a-a1e2d6761c58 53bffe51-5d04-448a-a592-2ec318f9d13f



(NOTE: the full ULS log for this particular instance was not included in this document).





System.Workflow.Runtime Information: 0 : pending work hc 63891231 added workItem hc 15165310


ProcessId=5128


DateTime=2012-06-27T00:28:48.6150986Z


System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: Calling CommitTransaction for instance 64f82660-15b8-4a7e-90b7-4e054164e923 hc 61799993


ProcessId=5128


DateTime=2012-06-27T00:28:48.6209582Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 3707448


ProcessId=5128


DateTime=2012-06-27T00:28:48.6824840Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 37535352


ProcessId=5128


DateTime=2012-06-27T00:28:48.6824840Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 46630754


ProcessId=5128


DateTime=2012-06-27T00:28:48.6824840Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 47616313


ProcessId=5128


DateTime=2012-06-27T00:28:48.6824840Z


System.Workflow.Runtime Information: 0 : pending work hc 32747756 added workItem hc 16973140


ProcessId=5128


DateTime=2012-06-27T00:28:48.6824840Z


System.Workflow.Runtime Information: 0 : pending work hc 63891231 added workItem hc 15165310


ProcessId=5128


DateTime=2012-06-27T00:28:48.6834606Z


System.Workflow.Runtime Information: 0 : 64f82660-15b8-4a7e-90b7-4e054164e923: Returning from ProtectedPersist: InstanceId 64f82660-15b8-4a7e-90b7-4e054164e923, hc: 61799993, ret=True


ProcessId=5128


DateTime=2012-06-27T00:28:48.9354234Z


System.Workflow.Runtime Information: 0 : WorkflowExecutor: unloaded workflow instance '64f82660-15b8-4a7e-90b7-4e054164e923'. IsInstanceValid=False


ProcessId=5128


DateTime=2012-06-27T00:28:48.9373766Z


System.Workflow.Runtime.Hosting Information: 0 : Received OnIdle Event for instance, 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:48.9383532Z





System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:SchedulePersisted event raised for instance Id 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:48.9393298Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:ScheduleUnloaded event raised for instance Id 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:28:48.9412830Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime::TryRemoveWorkflowExecutor, instance:64f82660-15b8-4a7e-90b7-4e054164e923, hc:61799993


ProcessId=5128


DateTime=2012-06-27T00:28:48.9481192Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime::_removeInstance, instance:64f82660-15b8-4a7e-90b7-4e054164e923, hc:61799993


ProcessId=5128


DateTime=2012-06-27T00:28:48.9481192Z



Workflow instance is removed from workflow runtime.





System.Workflow.Runtime Transfer: 0 : , relatedActivityId=00000000-0000-0000-0000-000000000000


ProcessId=5128


DateTime=2012-06-27T00:28:48.9520256Z


System.Workflow.Runtime Stop: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:28:48.9520256Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: CanRun is False


ProcessId=5128


DateTime=2012-06-27T00:28:48.9549554Z








System.Workflow.Runtime.Hosting Information: 0 : Deserialized a Workflow1 [WorkflowProject11.Workflow1.Workflow1] to length 9045. Took 00:00:00.0859408.


ProcessId=5128


DateTime=2012-06-27T00:29:09.9645512Z



One minute later we are loading the instance from content database back into workflow runtime. This is after the user submitted the task through UI and the event has already been delivered half through the pipeline.



Now you see the same size 9045, and this corresponds to the ULS log:





06/26/2012 16:05:52.69


w3wp.exe (0x27B4)


0x10E4


SharePoint Foundation


Workflow Infrastructure


0000


Verbose


Loaded instance data for instance: 64f82660-15b8-4a7e-90b7-4e054164e923, data size: 9045, processing id: 973d7273-526b-47a9-85f4-337f9fe82751



(NOTE: the full ULS log for this particular instance was not included in this document).



When analyzing ULS log and workflow trace, always verify the size of the workflow instance to ensure that workflow instance runtime is loading matches the one it was persisted. An unmatched instance sizes means issues might have occurred with the persistence service.





System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: Loading instance 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9704108Z


System.Workflow.Runtime Information: 0 : Adding context 1:Workflow1 for load


ProcessId=5128


DateTime=2012-06-27T00:29:09.9723640Z


System.Workflow.Runtime Information: 0 : Adding context 2:onTaskChanged1 for load


ProcessId=5128


DateTime=2012-06-27T00:29:09.9723640Z



Loading the workflow instance and adding the current context activities. onTaskChanged1 is where we left off.





System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:: replacing unusable executor for key 64f82660-15b8-4a7e-90b7-4e054164e923 with new one (hc: 28529661)


ProcessId=5128


DateTime=2012-06-27T00:29:09.9723640Z


System.Workflow.Runtime.Hosting Information: 0 : TimerEventSubscriptionQueue: 64f82660-15b8-4a7e-90b7-4e054164e923 Resume


ProcessId=5128


DateTime=2012-06-27T00:29:09.9782236Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:ScheduleLoaded event raised for instance Id 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9782236Z


System.Workflow.Activities Information: 0 : Firing event OnTaskChanged for instance 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9801768Z



The event finally was raised to OnTaskChanged activity.





System.Workflow.Runtime Transfer: 0 : , relatedActivityId=64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9801768Z


System.Workflow.Runtime Start: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:29:09.9801768Z


System.Workflow.Runtime Information: 0 : Queuing Service: Enqueue item Queue ID -798539121 for Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ITaskService


Method Name:OnTaskChanged


CorrelationValues:


b788bb83-2882-4587-b4a9-b8a3bfc7c1b9





ProcessId=5128


DateTime=2012-06-27T00:29:09.9801768Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((2)onTaskChanged1, System.Workflow.ComponentModel.QueueEventArgs)


ProcessId=5128


DateTime=2012-06-27T00:29:09.9811534Z


System.Workflow.Runtime Information: 0 : Queuing Service: Notifying async subscriber on queue:'Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ITaskService


Method Name:OnTaskChanged


CorrelationValues:


b788bb83-2882-4587-b4a9-b8a3bfc7c1b9


' activity:onTaskChanged1


ProcessId=5128


DateTime=2012-06-27T00:29:09.9811534Z



onTaskChanged1 activity is inside a While Loop, so we need to re-subscribe the event every time after it has been raised.





System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 18075529


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: Schedule workflow 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=00000000-0000-0000-0000-000000000000


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime Stop: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: Running workflow 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: CanRun is True


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime.Hosting Information: 0 : ManualWorkflowSchedulerService: Executing 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime.Hosting Information: 0 : Running workflow 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime Transfer: 0 : , relatedActivityId=64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime Start: 0 : Workflow Trace


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((2)onTaskChanged1, System.Workflow.ComponentModel.QueueEventArgs)


ProcessId=5128


DateTime=2012-06-27T00:29:09.9821300Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: onTaskChanged1 Old:Executing; New:Closed


ProcessId=5128


DateTime=2012-06-27T00:29:09.9938492Z



onTaskChanged1 activity finished.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)whileActivity1, ActivityStatusChange('(2)onTaskChanged1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:09.9938492Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((2)onTaskChanged1, System.Workflow.ComponentModel.QueueEventArgs)


ProcessId=5128


DateTime=2012-06-27T00:29:09.9938492Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)whileActivity1, ActivityStatusChange('(2)onTaskChanged1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:09.9938492Z





System.Workflow.Runtime Information: 0 : Removing context 2:onTaskChanged1


ProcessId=5128


DateTime=2012-06-27T00:29:10.0075216Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)whileActivity1, ActivityStatusChange('(1)whileActivity1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0075216Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)whileActivity1, ActivityStatusChange('(2)onTaskChanged1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0075216Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)whileActivity1, ActivityStatusChange('(1)whileActivity1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0075216Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: whileActivity1 Old:Executing; New:Closed



whileActivity1 activity finished.





ProcessId=5128


DateTime=2012-06-27T00:29:10.0143578Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)whileActivity1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0143578Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)whileActivity1, ActivityStatusChange('(1)whileActivity1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0153344Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)whileActivity1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0153344Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)sequenceActivity1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0153344Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)whileActivity1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0153344Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)sequenceActivity1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0153344Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: sequenceActivity1 Old:Executing; New:Closed



All child activities of sequenceActivity1 finished. Now sequenceActivity1 is also finished.





ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)sequenceActivity1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)sequenceActivity1, ActivityStatusChange('(1)sequenceActivity1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)sequenceActivity1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: completeTask1 Old:Initialized; New:Executing


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z



Start executing completeTask1 activity.





System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: ActivityOperation((1)completeTask1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)sequenceActivity1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: ActivityOperation((1)completeTask1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:29:10.0163110Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 59621546


ProcessId=5128


DateTime=2012-06-27T00:29:10.0387728Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: completeTask1 Old:Executing; New:Closed



Done executing completeTask1.





ProcessId=5128


DateTime=2012-06-27T00:29:10.0387728Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)completeTask1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0387728Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: ActivityOperation((1)completeTask1, Execute)


ProcessId=5128


DateTime=2012-06-27T00:29:10.0387728Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)completeTask1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0397494Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Scheduling entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)Workflow1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0407260Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)completeTask1', Closed, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0407260Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)Workflow1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.0407260Z


System.Workflow.Runtime Information: 0 : Activity Status Change - Activity: Workflow1 Old:Executing; New:Closed


ProcessId=5128


DateTime=2012-06-27T00:29:10.0407260Z



Done executing the entire workflow.





System.Workflow.Runtime Information: 0 : CorrelationToken Uninitialized for workflowToken owner activity Workflow1


ProcessId=5128


DateTime=2012-06-27T00:29:10.0436558Z


System.Workflow.Runtime Information: 0 : Queuing Service: Deleting Queue with ID -798539121 for Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ITaskService


Method Name:OnTaskChanged


CorrelationValues:


b788bb83-2882-4587-b4a9-b8a3bfc7c1b9





ProcessId=5128


DateTime=2012-06-27T00:29:10.0475622Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 21353980


ProcessId=5128


DateTime=2012-06-27T00:29:10.0641644Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 33592719


ProcessId=5128


DateTime=2012-06-27T00:29:10.0641644Z


System.Workflow.Activities Information: 0 : CorrelationTokenInvalidatedHandler subscription deleted SubId 8641f1db-ae5b-44df-b504-fe34946edcd0 QueueId Message Properties


Interface Type:Microsoft.SharePoint.Workflow.ITaskService


Method Name:OnTaskChanged


CorrelationValues:


b788bb83-2882-4587-b4a9-b8a3bfc7c1b9





ProcessId=5128


DateTime=2012-06-27T00:29:10.0641644Z


System.Workflow.Runtime Information: 0 : CorrelationToken Uninitialized for taskToken owner activity Workflow1


ProcessId=5128


DateTime=2012-06-27T00:29:10.0661176Z


System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: Calling SaveWorkflowInstanceState for instance 64f82660-15b8-4a7e-90b7-4e054164e923 hc 28529661


ProcessId=5128


DateTime=2012-06-27T00:29:10.0719772Z


System.Workflow.Runtime Information: 0 : pending work hc 63891231 added workItem hc 8140213


ProcessId=5128


DateTime=2012-06-27T00:29:10.0719772Z


System.Workflow.Runtime Information: 0 : Workflow Runtime: WorkflowExecutor: Calling CommitTransaction for instance 64f82660-15b8-4a7e-90b7-4e054164e923 hc 28529661


ProcessId=5128


DateTime=2012-06-27T00:29:10.0719772Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 18075529


ProcessId=5128


DateTime=2012-06-27T00:29:10.0719772Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 59621546


ProcessId=5128


DateTime=2012-06-27T00:29:10.0719772Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 21353980


ProcessId=5128


DateTime=2012-06-27T00:29:10.0729538Z


System.Workflow.Runtime Information: 0 : pending work hc 43253384 added workItem hc 33592719


ProcessId=5128


DateTime=2012-06-27T00:29:10.0729538Z


System.Workflow.Runtime Information: 0 : pending work hc 63891231 added workItem hc 8140213


ProcessId=5128


DateTime=2012-06-27T00:29:10.0729538Z


System.Workflow.Runtime Information: 0 : CorrelationToken Uninitialized for workflowToken owner activity Workflow1


ProcessId=5128


DateTime=2012-06-27T00:29:10.1901458Z


System.Workflow.Runtime Information: 0 : CorrelationToken Uninitialized for taskToken owner activity Workflow1


ProcessId=5128


DateTime=2012-06-27T00:29:10.1901458Z


System.Workflow.Runtime Information: 1 : Workflow Runtime: Scheduler: InstanceId: 64f82660-15b8-4a7e-90b7-4e054164e923 : Done with running scheduled entry: SubscriptionEvent((1)Workflow1, ActivityStatusChange('(1)Workflow1', Executing, Succeeded))


ProcessId=5128


DateTime=2012-06-27T00:29:10.1901458Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:SchedulePersisted event raised for instance Id 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:10.1901458Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime:ScheduleCompleted event raised for instance Id 64f82660-15b8-4a7e-90b7-4e054164e923


ProcessId=5128


DateTime=2012-06-27T00:29:10.2018650Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime::TryRemoveWorkflowExecutor, instance:64f82660-15b8-4a7e-90b7-4e054164e923, hc:28529661


ProcessId=5128


DateTime=2012-06-27T00:29:10.2956186Z


System.Workflow.Runtime.Hosting Information: 0 : WorkflowRuntime::_removeInstance, instance:64f82660-15b8-4a7e-90b7-4e054164e923, hc:28529661


ProcessId=5128


DateTime=2012-06-27T00:29:10.2956186Z



Removing the workflow instance from workflow runtime.



Conclusion



This concludes this three part series on SharePoint Workflow Architecture and troubleshooting.  Hope you found this as a helpful resource.  Do drop us a line if you have any comments or questions.