XmlTextReader in while loop
I found a bug where if you have a while loop in workflow designer which looks like this:
XmlTextReader xmTextRead = new XmlTextReader(new System.IO.StringReader(xmlStrDoc))
While(xmTextRead.Read())
{
Alert("Value: " + xmTextRead.Name)
}
The first alert happens and shows what I would expect to see from the xml root element but then when you click "ok" on the alert box you get an error which says "Unable to load specified workflow from instance store.". You can click ok as many times are you want too. As in it doesn't stop and error out it just keeps giving you that message.
Workflow Designer version 2.21.2.2
-
Your xml doc is on Server side, while Alert is on Client side.
When left to the client by alert, your object of xml doc is lost. That is the reason.
Rather than using Alert to bebug your workflow, try to use 'Write Line' or 'Log' which are the server side activity.
wish this helps you out.
0
Please sign in to leave a comment.
Comments
1 comment