cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Update XML action - Errors if "&" ampersand is entered into text

Jump to solution

Hi All,

I have InfoPath form with an Nintext workflow attached.  In the workflow I have an update xml action with a setting of "Replace Node Content"  I am replacing the value with a workflow variable from a free text box.  If someone adds a "&" to the text box the update XML action fails.  Is there a way round this? The error we get is - "An error occurred while parsing EntityName. Line 1...."

Eg this is what I am replacing the node with:

------------------------------

{WorkflowVariable:User_Comments}

Submitted Comments - {WorkflowVariable:user}({Common:CurrentDate})

------------------------------

Thanks

Labels: (3)
Tags (2)
Reply
1 Reply
Workflow Hero

Re: Update XML action - Errors if "&" ampersand is entered into text

Jump to solution

Hi James

You have to escape the ampersand in XML, see List of XML and HTML character entity references - Wikipedia, the free encyclopedia

You can use the Regular expression action to do this.

Kind Regards

Manfred

Reply