Why I am Getting a 401 unauthorized error when using Nintex Query XML on an InfoPath form?

Problem

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.”

Solution

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?

http://msdn.microsoft.com/en-us/library/ms772417.aspx

Advertisements

About Joseph Velliah
As a SharePoint Developer my professional interests tend to be technical and SharePoint focused. I run a blog at "SP RIDER" where you can expect to read HOW TOs and scenarios that I run into during my day to day job. I hope my posts will give back a little to the community that is helped me.

Comments are closed.

%d bloggers like this: