Skip to content

Avoid '&' (Ampersand) sign in Nintex workflow variable values

Issue:

I have a main workflow that calls 16 different sub-workflow to run and wait for their completion before continuing and to my surprise only 1 of those didn’t send me an email as I expected it to be, but did not fail nor stopped.

Troubleshooting:

The sub-workflows are all running and complete, then the main workflow continues its journey to completion.

Nintex16

By adding a Log in History to extract all the variables that I pass to the sub-workflows I then realised that the only difference between all sub-workflow and the one that flies through without sending an email contains a ‘&’ character in one of the variable. That variable is just used to print the value in the body of the message, not even the subject or the recipient email but still it did fail the workflow action.

Fix: by adding a “Regular Expression” Nintex action we can easily replace any ampersand in variable before passing it to the sub-worklow. If you place it into the sub-worlfow UDA then it’s only 1 change for all 16+ sub-workflows.

Note to self: filter out & (ever)