question

Leilivazietan-9959 avatar image
0 Votes"
Leilivazietan-9959 asked ·

error in Infopath forms auto populate current user details

hi

h designed the form in infopath that auto populate current display name and when i test in in preview it works properly

i did it from this link : https://social.technet.microsoft.com/Forums/azure/en-US/50a74abc-475a-45df-986f-37f2534b3efd/infopath-forms-auto-populate-current-user-details?forum=onlineservicessharepoint

but when i open in in my site have an error and when confirm it the for dosen't show the display name

error:an error occurred querying a data source 5566

pls help me 75161-2021-03-07-2.png


office-sharepoint-server-customization
2021-03-07-2.png (17.2 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChelseaWu-MSFT avatar image
0 Votes"
ChelseaWu-MSFT answered ·

What is the version of SharePoint you are currently using?
If you are on SharePoint Server, please check as following to narrow down this issue:

  1. The error suggests that your permission may not be sufficient for the GetUserCollectionFromGroup method to enumerate SharePoint groups and users, and so the method fails, referring to this document: "Access Denied" error (Event ID 5566) when you open a form in the browser.

    Make sure the account you use to publish the form is a member of the Farm Administrators group via Central Administration > Security > Manage the farm administrators group.
    Or use the workaround mentioned in the document to change the permissions of the SharePoint groups that the form enumerates.

  2. Disable Loop Back Check on all SharePoint servers.

  3. Referring to another article here, this error is expected when making a Web service call in SharePoint configured with Claims Based Authentication.
    You can follow the instructions and see how to avoid this error.

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 3 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hi
I did all the solutions you mentioned but my problem was not solved
please guide me

0 Votes 0 ·
ChelseaWu-MSFT avatar image ChelseaWu-MSFT Leilivazietan-9959 ·

Please use Comment instead of Write an Answer section to post the reply unless when you provide a valid solution to the question.
We will be converting this reply for you. Thank you for your understanding.


What is the version of SharePoint you are currently using? Are you using Claims Based Authentication (Windows Authentication)? If yes, have you gone through the third-party blog I provided in Point 3?

Please provide more information so that we can do more investigation on this issue. If you cannot decide what the problem is, you can get the ULS log when opening the form in browser for more error message related.

0 Votes 0 ·
ChelseaWu-MSFT avatar image ChelseaWu-MSFT Leilivazietan-9959 ·

Hi @Leilivazietan-9959 , do you have any progress on this thread? Please feel free to let us know if you need further assistance.

0 Votes 0 ·