I am trying to read the XML data from an InfoPath form which is located in a form library. I am using the Nintex Query XML action and passing a XML file URL to the form that I want to read. When I run the workflow, I got the following error:
“Error processing XML. The remote server returned an error: (401) Unauthorized.”
This is because we have InfoPath Forms Services in the farm environment, the request for the InfoPath xml file was getting redirected.
Upending “?NoRedirect=true” at the end of the URL to the XML file as a query string stopped the redirection and allowed me to read the XML data from the InfoPath file.
Check this useful info from msdn – How to: Use Query Parameters to Invoke Browser-Enabled InfoPath Forms?