In this PowerApps Tutorial, we will discuss a common error in Power Apps i.e. You don’t have permission to view this data. Server Response: Products failed: Something went wrong.
Power Apps Error: You don’t have permission to view this data
I have created an app where I need to create a PowerApps Collection to create a gallery indexing. For that, I have applied the collection formula on the Screen’s OnVisible property i.e.
OnVisible = Clear(colIndex);
ForAll(
Products,
Collect(
colIndex,
{
ItemID: ID,
Index: Value(Last(colIndex).Index) + 1
}
)
)
Where,
- colIndex = Collection name
- Products = SharePoint List name
So when I have written the above formula, I got an error like “You don’t have permission to view this data. Server Response: Products failed: Something went wrong“. Refer to the below screenshot.
Also read: Power Apps Search Gallery + 19 Examples
Solution: You don’t have permission to view this data error in Power Apps
When this error occurred in the app, I searched it in the browser and found many solutions and then I tried it. Here I will share some important things that you can try to overcome this error. Follow the below points:
- While you are getting this type of error in the app, the first thing you need to make sure check the permission things with the PowerApps data sources.
- Many users use many of the data sources like SharePoint, Azure, Excel, SQL, etc. But here I will explain the SharePoint List Data sources because most of the PowerApps users use SharePoint data source connector.
- The most important thing is, you need to share the list in Sharepoint with every user who needs to use it in the PowerApps otherwise the users will get the same error message that I got.
- For this, you need to set the permission level to whatever is necessary, but it must be at least View. One thing you can put in place to create a Custom Permission based on the one you need and uncheck “View application pages” and they will not be able to access any views on the SharePoint site, even if they navigate directly to them.
- The custom permission level needs to be based on at least Contribute. So overall I can say, here are all the data sources your users will need permission to the SharePoint list.
- In some cases what happens is, even if you have the right permission to your SharePoint list data source connector, then also the users may able to see the same error message.
- To avoid this type of issue, all you need to do one thing i.e. refresh your Sharepoint list in the app. Click on the View tab -> Data sources -> Go to your existing SharePoint list connector (Products) -> Click on the elipses (…) -> Refresh it as shown below. Once the list is refreshed, you can see the error will not appear again and the code will run appropriately.
Also, you may like the below PowerApps tutorials:
- Power Apps Sort Gallery
- Power Apps Search SharePoint List Examples
- PowerApps Search User
- Power Automate Do until
- PowerApps Find Function With Examples
- PowerApps Mod Function
- PowerApps toggle control + How to use with examples
- PowerApps Trim Function
- PowerApps Now, Today, and IsToday function
- PowerApps StartsWith and EndsWith Functions
- Upload PowerApps Attachments to SharePoint Library Folder
- Power BI integration with PowerApps Portals
- Power Apps Azure AD Group
- Power Apps RSS Feed
- PowerApps Twitter Connector
- PowerApps Weather
- Build a Calculator in Power Apps
In this Power Apps Tutorial, we discussed how to overcome an error in PowerApps i.e. You don’t have permission to view this data. Server Response: Products failed: Something went wrong.
I am Bijay a Microsoft MVP (10 times – My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com