Hi Experts,
I'm facing one wired error while opening a custom entity record or creating appointment entity record. The error log says Create Access to 'userentityuisettings' entity which is already there in the security role.
Appreciate your help.
Here is a complete error log -
Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: {"CallerPrincipal":{"PrincipalId":"d9fcedf9-d5ce-e911-a87f-000d3a6a2bab","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"d9fcedf9-d5ce-e911-a87f-000d3a6a2bab","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":2500,"EntityName":"userentityuisettings","ObjectBusinessUnitId":"26f4d38b-20a5-e511-80f1-c4346bc58784","RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=10, privilegeCount=290, accessMode=0; Principal Data: roleCount=10, privilegeCount=290, accessMode=0"],"OrganizationId":"6b4bad1e-33dc-40a7-b8fc-1fe940249a73","EntityOwnershipTypeMask":1,"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Teams":null,"Roles":null},"ReadOnlyState":"UserAndOrgFullAccess","IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"DirectReportInOwningTeam":"00000000-0000-0000-0000-000000000000","IsReadAccessFromIndirectReport":false,"POARightsFromDirectReports":{}}
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute()
at Microsoft.Crm.Application.Platform.AppFormFilter.SetLastViewedForm(Guid formId)
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.SetLastViewedXml()
at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #37BD92BBDetail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>d6c6c276-0f78-4181-90f4-cbce37a6017c</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: {"CallerPrincipal":{"PrincipalId":"d9fcedf9-d5ce-e911-a87f-000d3a6a2bab","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"d9fcedf9-d5ce-e911-a87f-000d3a6a2bab","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":2500,"EntityName":"userentityuisettings","ObjectBusinessUnitId":"26f4d38b-20a5-e511-80f1-c4346bc58784","RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=10, privilegeCount=290, accessMode=0; Principal Data: roleCount=10, privilegeCount=290, accessMode=0"],"OrganizationId":"6b4bad1e-33dc-40a7-b8fc-1fe940249a73","EntityOwnershipTypeMask":1,"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Teams":null,"Roles":null},"ReadOnlyState":"UserAndOrgFullAccess","IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"DirectReportInOwningTeam":"00000000-0000-0000-0000-000000000000","IsReadAccessFromIndirectReport":false,"POARightsFromDirectReports":{}}
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute()
at Microsoft.Crm.Application.Platform.AppFormFilter.SetLastViewedForm(Guid formId)
at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.SetLastViewedXml()
at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #37BD92BB</Message>
<Timestamp>2020-07-23T23:15:58.6769285Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>d6c6c276-0f78-4181-90f4-cbce37a6017c</ActivityId>
<ErrorCode>-2147187962</ErrorCode>
<ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>{"CallerPrincipal":{"PrincipalId":"d9fcedf9-d5ce-e911-a87f-000d3a6a2bab","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"OwnerPrincipal":{"PrincipalId":"d9fcedf9-d5ce-e911-a87f-000d3a6a2bab","Type":8,"IsOrganizationPrincipal":false,"IsUserPrincipal":true,"IsTeamPrincipal":false,"TypeName":"user"},"ObjectId":"00000000-0000-0000-0000-000000000000","ObjectTypeCode":2500,"EntityName":"userentityuisettings","ObjectBusinessUnitId":"26f4d38b-20a5-e511-80f1-c4346bc58784","RightsToCheck":"CreateAccess","RoleAccessRights":"None","PoaAccessRights":"None","HsmAccessRights":"None","Messages":["PrincipalHasOwnerPrincipalWithAtLeastBasicPrivilegeDepth = False","EntityUserGroupRights = None","MinimumPrivilegeDepthRequired = Local","GrantedRights = None","SecLib::AccessCheckEx2 failed. Owner Data: roleCount=10, privilegeCount=290, accessMode=0; Principal Data: roleCount=10, privilegeCount=290, accessMode=0"],"OrganizationId":"6b4bad1e-33dc-40a7-b8fc-1fe940249a73","EntityOwnershipTypeMask":1,"CallerInfo":{"IsSystemUser":false,"IsSupportUser":false,"IsAdministrator":false,"IsCustomizer":false,"IsDisabled":false,"IsIntegrationUser":false,"Teams":null,"Roles":null},"ReadOnlyState":"UserAndOrgFullAccess","IsHsmEnabled":false,"IsOwnerDirectReport":false,"IsDirectReportInOwningTeam":false,"DirectReportInOwningTeam":"00000000-0000-0000-0000-000000000000","IsReadAccessFromIndirectReport":false,"POARightsFromDirectReports":{}}</Message>
<Timestamp>2020-07-23T23:15:58.6769285Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Thanks