You do not have permissions to access a SharePoint list that contains data required for this form to function correctly

This SharePoint tutorial, we will discuss one InfoPath issue which comes while opening a SharePoint Online form. The error comes as: An error occurred querying a data source. Click OK to resume filling out the form. You may want to check your form data for errors. You do not have permission to access a SharePoint list that contains data required for this form to function correctly.

An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:f2b9479e-e0f8-5000-c5ba-5558ccd6bf75

The error message looks like below:

You do not have permissions to access a SharePoint list that contains data required for this form to function correctly
You do not have permissions to access a SharePoint list that contains data required for this form to function correctly

You do not have permissions to access a SharePoint list that contains data required for this form to function correctly

Let me explain to you when actually I got the error. We had a production site which was live, we wanted to create a development site with structure from the production site. For that reason, we used a 3rd party tool to migrate the structure from production to development.

Few lists were customized using InfoPath which contains some data connections “GetUserProfileByName”. By using the data connections, we were pulling the current logged in username and put into the field.

Then we saw that the user profile is not properly configured in the development environment. When we fixed the issue the form did not give any warning message, the InfoPath form works as expected.

Read some similar InfoPath tutorials:

This tutorial, we learned how to fix error, You do not have permissions to access a SharePoint list that contains data required for this form to function correctly.

>