I'm entering a quote into my website, which uses content generated by Portal Server. Getting the error: "A workflow error occurred: AmsServices.Marble.Utility.ExceptionBase: An error occured executing TemplateStep Welcome: "Persisted document BlackCar:Black_Car_Policy not found in the document collection.". What can I look at to troubleshoot this problem?

asked May 03 '10 at 13:59

Joe%20Sanderson's gravatar image

Joe Sanderson
312


One Answer:

The error is stating that workflow could not find any data to populate the template in question. This would be the template that is being used in the TemplateStepActivity named "Welcome". You'll get this error if you attempt to generate markup for a template and the workflow doesn't have any data to fill the template with.

One way to ensure that your workflow always has some data to work with is to use a default data document. In your Workflows directory you can place an xml file that follows this naming convention: "WORKFLOW_NAME.DEPLOYMENT_NAME.SCHEMA.DATA".

In this particular example, if your workflow was named "BlackCarSample.xoml" you would create a data file named "BlackCarSample.BlackCar.schema.data". When Portal Server starts your workflow it will use this as the default data to fill your templates with. See documentation for more information on default data documents.

answered May 03 '10 at 15:41

jkushiner's gravatar image

jkushiner
163

updated May 03 '10 at 15:47

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×4

Asked: May 03 '10 at 13:59

Seen: 546 times

Last updated: May 03 '10 at 15:47

powered by OSQA