SharePoint Server 2010
-
Mittwoch, 2. Mai 2012 12:19
Hello,
After redirecting my portal URL i faced an error while opening my infopath workflow. could not connect to the webservice to get user profile information.
i published the workflow using the new URL same error.
note that my workflow is based on a list and inforpath and not a docuemnt library.
regards,
George
Alle Antworten
-
Freitag, 4. Mai 2012 09:41Moderator
-
Freitag, 4. Mai 2012 09:43
Hi,
Thank you for your reply, waiting your response.
regards,
George
-
Freitag, 4. Mai 2012 19:39
Hi George,
The first thing I would suggest is the following: enable "Verbose" logging for the InfoPath Forms Services category, reproduce the error and then review the ULS log to get more information about the error. For reference, what error are you seeing when you attempt to open the InfoPath workflow form?
When you say you "redirected" your portal URL do you mean you changed it permanently or you "redirect" the user after they commit a document? If you changed the URL to your portal then did you change the URL as well for the UserProfileService data connection? Regardless of the change, I would start with the verbose logging to get more details. Let us know what you find.
Scott
Scott Heim - Microsoft Office InfoPath and SharePoint Designer Online Community Support
-
Samstag, 5. Mai 2012 11:11
Hi Scott,
Thank you for your email, below you will find the error that I found in the log file after enabling "Verbose" logging for the InfoPath Forms Services.
Web Controls cm8z Medium Failed to get SPGroupName from GroupID. Error Message: Group cannot be found. Callstack: at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id) at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value). 8b7f1316-a7d8-46ac-85b8-6d8909057c42.
Actually what I meant is I redirect the URL from the alternate access mapping. Yes true, I changed the URL to my portal then I changed it from the UserProfileService data connection and publish it again.
Regards,
George -
Samstag, 5. Mai 2012 11:25as per the error, are you setting user on form load in peoplepicker control
Manish Sati
-
Samstag, 5. Mai 2012 12:20yes true.
-
Samstag, 5. Mai 2012 12:21but not peoplepicker on a text box.
-
Montag, 7. Mai 2012 17:19
Thank you for the information George. So in looking at the error, the UserProfileService is failing to find your group. Are you sure that group exists? You could try these steps to narrow this down a bit:
- Log onto your SharePoint server
- Open Windows explorer and navigate to a location like this:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI
- Find and make a backup copy of the web.config file in this folder
- Open the original web.config file with Notepad
- Change these 3 entries:
<remove name="HttpGet" />
<remove name="HttpPost" />
<remove name="HttpPostLocalhost" />So they look like this:
<add name="HttpGet" />
<add name="HttpPost" />
<add name="HttpPostLocalhost" />- Save and close the web.config file
- From your client machine, launch Internet Explorer (IE) and enter the same URL you used when you setup the UserProfileService data connection in InfoPath (if you want, just open your XSN in Design View, modify that data connection and copy the URL)
- Once you navigate to that URL in IE, if it successfully opened the page you should see something like this at the top and then a list of the various web methods that are available:
UserProfileService
User Profile Service
The following operations are supported. For a formal definition, please review the Service Description.- Click on the web method that you are trying to use in your InfoPath form, fill in any information that is needed and click the Invoke button - what happens? Depending on the results George, you may need to open a support incident to allow is to dig into this more but first try these steps and let us know the results.
Thanks,
Scott
Scott Heim - Microsoft Office InfoPath and SharePoint Designer Online Community Support
-
Montag, 7. Mai 2012 17:46
You need to make the group searchable.
Group -> Group Settings
Who can view the membership of the group? - Everyone
-
Dienstag, 8. Mai 2012 07:29
Hi Scott,
Thank you for your email, actually i followed the above steps with no luck, and the webservice URL is successfully opened (http://rfportal/_vti_bin/userprofileservice.asmx). i click on the web method (getuserprofilebyname) but the parameter and value doesn't appear just i have this "The test form is only available for requests from the local machine." even though, that the original URL (http://rf-hv-spapps-01/_vti_bin/userprofileservice.asmx?op=GetUserProfileByName) its appeared and i can click on the Invoke button and an XML page open containing all the info related to this account name.
Please note that the workflow was working on the original\default url, the problem appeared after i changed the URL of the Portal.
Regards,
George
-
Dienstag, 8. Mai 2012 07:30yes Everyone.
-
Dienstag, 8. Mai 2012 12:20
Hmmm...that's odd...with the changes I suggested to the web.config file, you should have seen the options along with the Invoke button. What happens if you test the URL on the server machine itself - can you invoke it there?
Scott
Scott Heim - Microsoft Office InfoPath and SharePoint Designer Online Community Support
-
Mittwoch, 9. Mai 2012 06:32
i tested on the server machine same result and message "The test form is only available for requests from the local machine".
any other suggestion?
-
Mittwoch, 9. Mai 2012 12:42
Hi George,
So very odd...there is one other node in that web.config file:
<remove name="Documentation" />
Make sure this is changed as well to:
<add name="Documentation" />
If you still cannot get to the option to invoke the UserProfileService then I am unsure why. The reason I would like to test this is to see if just executing that web service from within IE gives you the same result or you get data. If the above still does not work, please confirm you are changing the web.config file at this location:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI
NOTE: If you have more than one web front end, you will need to do this on all of them.
The other thing I would suggest is to download and install the "Fiddler" network tracing tool (http://fiddler2.com/fiddler2/version.asp - then click the Install Fiddler2 link) and run this while you try to execute the connection from within your InfoPath form. This may help show what is causing the error. You can see what URL was being executed, the request, the response, what the error was, etc.
Scott
Scott Heim - Microsoft Office InfoPath and SharePoint Designer Online Community Support
-
Dienstag, 22. Mai 2012 13:11
Hi Scott,
sorry for the delay, know the invoke its working fine one both links; the original one and the redirected one. still having the same problem
any other suggestions?
regards,
George- Bearbeitet GeorgeHanna Dienstag, 22. Mai 2012 13:12
-
Montag, 4. Juni 2012 06:45
HI Scott,
any good news :)
Thanks,
George

