I'm attempting to run the Solution Checker on one of my solutions and it fails. The error message I received is:
Principal user (Id=42737f93-039d-ea11-a813-000d3a19b041, type=8, roleCount=2, privilegeCount=100, accessMode=4), is missing prvReadEnvironmentVariableValue privilege (Id=8f721830-b9a9-47d2-bc79-98c3edc28f10) on OTC=381 for entity 'environmentvariablevalue'. context.Caller=42737f93-039d-ea11-a813-000d3a19b041
When I lookup that user I find it's the Power Apps Checker Application user (pacheckerapp@microsoft.com). Apparently this user's security role doesn't have read privileges for the environment variables. At least that's what I gather from the error message.
Has anyone come across this error and found a solution? I tried setting the read privilege for the user's security role but I cannot change anything for that user. The admin section will only allow me to view that security role and not change any settings.
Thanks for any help.
Dan
Solved! Go to Solution.
I ended up creating a copying the solution checker's existing security role, assigning read privileges to the environment variable entity and then assigning that role to the Power Apps Checker Application user. That cleared it up for me.
Hi @dallenap
I haven't come across this before but what you could do is create a new Security Role and give it the additional permissions required. Then assign that role to the Power App Checker Application user and see if that fixes your issue.
There is a also a large article on Common Issues for the Solution Checker which you might want to look at.
Hello @dallenap,
I had almost the same thing, but with a canvas app in my solution and the solution checker kept failing.
What I did was go into https://admin.powerplatform.microsoft.com/environments
Selected my environment
In the "Resources" tile I clicked "Dynamics 365 apps"
In the "Dynamics 365 apps" screen is a list of solutions
I found the "PowerApps Checker" solution and in the "Status" column it said "Update available"
I agreed to the terms of service and clicked "Update"
The solution then updated and the security role assigned to the user was updated allowing me to run the solution checker.
Good luck with it.
Garry
Hi
I have exactly the same problem.
I have updated the Solution Checker to the latest version (1.2.0.32), but that did not solve the problem for me.
I have been through the checks mentioned in the article 'Common issues and resolutions for solution checker', and as far as I can see the user 'Power Apps Checker Application' has all the correct permissions.
(Only if I remove all my environment variables from my solution, will the Solution Checker run successfully - and I really don't want to do that)
Kind regards
Michael
I ended up creating a copying the solution checker's existing security role, assigning read privileges to the environment variable entity and then assigning that role to the Power Apps Checker Application user. That cleared it up for me.
Hello @dallenap
A new version of Power Apps Checker [1.2.0.34] is currently being rolled out worldwide. It will hit our Europe region this upcoming weekend (crm4).
This solution version contains the missing privilege, prvReadEnvironmentVariableValue, as a part of the Export Customizations (Solution Checker) security role. This solution can be acquired via the Dynamics 365 Administration Center solutions list for an organization.
Best Regards,
Tyler
User | Count |
---|---|
10 | |
3 | |
3 | |
2 | |
1 |
User | Count |
---|---|
15 | |
8 | |
7 | |
3 | |
2 |