Avoid ‘&’ (Ampersand) sign in Nintex workflow variable values

Standard

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)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s