Process Automation process error - "Unable to create an empty SOAP envelope"

Document ID : KB000047583
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

When using a Process Automation process that contains special characters the follow error may be received:

"Unable to create an empty SOAP envelope"

Environment:

This is a non-environmental specific behavior. 

Cause: 

This type of error is typically seen in reference to an invalid character being passed through the PAM process web services call. This usually happens if you have "special" characters in the parameters that have not been properly escaped.

Resolution: 

The solution would be to include an escape for the special characters in the Process Automation process. Here is an example of an escape:

Process.outputString = Process.inputString.replace(/&/g, "&"); 
Process.outputString = Process.inputString.replace(/</g, "&lt;"); 
Process.outputString = Process.inputString.replace (/>/g, "&gt;"); 
Process.outputString = Process.inputString.replace (/"/g, "&quot;"); 
Process.outputString = Process.inputString.replace (/'/g, "&apos;"); 

Note that outputString and inputString are arbitrary names and these statements can be modified in various ways to get this same result in your particular scenario. These are 5 common special characters that seem to correct a majority of issues. 

Additional Info: 

Special Characters in Process Automation