Hello,
We recently encountered an issue while migrating solutions from one environment to another in Microsoft Dataverse. Despite having roles such as System Administrator and System Customizer, we ran into the following error message:
"Sorry, the app encountered a non-recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Exception Id: 55693c3b-61f0-4013-b479-f96b9e444a10, Exception Type: System.NullReferenceException."
After diving into the log file, we noticed repeated lines indicating a missing privilege:
"Principal user (Id=[User Id], type=8, roleCount=4, privilegeCount=145, accessMode='0 Read-Write', AADObjectId=[AAD Id], MetadataCachePrivilegesCount=10423, businessUnitId=[Business Unit Id]), is missing prvReadSolution privilege (Id=[Privilege Id]) on OTC=7100 for entity 'solution' (LocalizedName='Solution'). context.Caller=[Caller Id]. Consider adding missed privilege to one of the principal (user/team) roles.|EXCEPTION: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]"
Any inputs are greatly appreciated.
Thanks