Hi,
I realise this topic has been covered a fair bit out there but I'm a bit stuck. I am testing migration from SP 2010 to 2013 and the web applications have been created using Claims Authentication. I created my first InfoPath list form that has a connection to the GetUserProfileByName, and got the "5566" error when opening in the browser.
So after much reading and testing, I have done the following:-
- Created a Secure Store Target Application in CA called "InfoPathWebService" and set the Credentials to a Farm Admin (mostly for testing to try get it to work)
- Created a new InfoPath form with a secondary data connection to http://server/_vti_bin/userprofileservice.asmx?WSDL
- Converted this connection to UDCX and saved it to a Data Connections library at http://server/DataConnections
- Edited this file and edited the connection line with <udc:SSO AppID='InfoPathWebService' CredentialType='NTLM' />
- Approved this file
- Created a Form Load Rule with an Action on the InfoPath Form as below
- Created a second Action to "Query for Data" with the Data Connection to GetUserProfileByName
- So far so good. Created a further Form Load rule to "Set a Field's Value" as below
- Click on Preview on the form - perfect - can see my name in the form in the "Name" field.
- Published to the list. Created new item in the form and I am still getting the 5566 error.
I checked the logs and am getting the below:
Runtime - Data Connections m1v0 Warning The following query failed: GetUserProfileByName (User: 0#.w|domain\taggart_k, Form Name: Template, IP: , Connection Target: http://server/Data Connections/GetUserProfileByName_2.udcx, Request: http://server/Lists/Test List/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2015-03-10T21:48:06:196Z Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error. A user with the account name could not be found. ---> The corresponding SID in the domain is not part of the intended account type. UserCannotBeFoundThe corresponding SID in the domain is not part of the intended account type. The remote server returned an error: (500) Internal Server Error.)
I'd love some pointers about what I have missed!