Forum Post: Unable to load the CRM Organizations

0
50
Forum Post: Change the Filter On option on Opportunity Associated View for Account form



Hi, When I tried to create new connection, after I selected Office 365 and entered my user name and password, it popped up a window showing something like "loading messages" and "loading data source" etc, then this popped up. I have tried some online solutions, but still can't solve this problem. I want to know how to do this? Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Principal user (Id=f0b8775b-2426-ec11-b6e5-00224828a832, type=8, roleCount=5, privilegeCount=998, accessMode=0), is missing prvReadCustomAPI privilege (Id=de944a2f-ecdc-4418-b888-f0f5853f333f) on OTC=10189 for entity 'customapi' (LocalizedName='Custom API'). context.Caller=f0b8775b-2426-ec11-b6e5-00224828a832 Detail: 3fd50188-9450-4b3c-a5aa-7f104964f72e -2147220960 ApiExceptionSourceKey Plugin/Microsoft.Crm.ObjectModel.CustomBusinessEntityService ApiSourceActivityKey ApiExceptionOwnerKey OwnershipNotFoundInExceptionOwnerSettings ApiOriginalExceptionKey Microsoft.Crm.CrmSecurityException: Principal user (Id=f0b8775b-2426-ec11-b6e5-00224828a832, type=8, roleCount=5, privilegeCount=998, accessMode=0), is missing prvReadCustomAPI privilege (Id=de944a2f-ecdc-4418-b888-f0f5853f333f) on OTC=10189 for entity 'customapi' (LocalizedName='Custom API'). context.Caller=f0b8775b-2426-ec11-b6e5-00224828a832 —> Microsoft.Crm.CrmSecurityException: Principal user (Id=f0b8775b-2426-ec11-b6e5-00224828a832, type=8, roleCount=5, privilegeCount=998, accessMode=0), is missing prvReadCustomAPI privilege (Id=de944a2f-ecdc-4418-b888-f0f5853f333f) on OTC=10189 for entity 'customapi' (LocalizedName='Custom API'). context.Caller=f0b8775b-2426-ec11-b6e5-00224828a832 at Microsoft.Crm.BusinessEntities.SecurityLibrary.ThrowCrmSecurityException(SecurityPrincipal principal, Guid privilegeId, Int32 errorCode, ExecutionContext context, Guid targetBusinessUnitId) at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context) at Microsoft.Crm.BusinessEntities.SecurityFilterPopulatorBase.CheckPrivilege(Guid user, Guid organizationId, EntityMetadata entityMetadata, ExecutionContext context) at Microsoft.Crm.BusinessEntities.SecurityFilterPopulatorBase.PopulateSecurityFilterForRetrieveMultiple(Guid user, EntityMetadata entityMetadata, FilterExpression securityFilter, FilterExpression existingCriteria, ExecutionContext context, Boolean noLock, EntitySecurityPOAattributes entitySecurityPOAattributes) at Microsoft.Crm.BusinessEntities.SecurityExtension.CreateSecurityFilter(Guid user, EntityMetadata entityMetadata, FilterExpression existingCriteria, Int32 entityColumnCount, ExecutionContext context, Boolean noLock, EntitySecurityPOAattributes entitySecurityPOAattributes, LinkEntityType linkEntityType, RetrieveMultipleSecuritySqlFormat& securitySqlFormat, Boolean forRetrieve, String tableAlias) at Microsoft.Crm.BusinessEntities.SecurityExtension.AddSecuritySql(Guid user, EntityExpression entityExpression, ExecutionContext context) at Microsoft.Crm.BusinessEntities.SecurityExtension.PreRetrieveMultipleHandler(ExtensionEventArgs e) at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreRetrieveMultipleEventHandler.Invoke(Object sender, ExtensionEventArgs e) at Microsoft.Crm.BusinessEntities.BusinessProcessObject.RetrieveMultiple(EntityExpression entityExpression, DatabaseQueryTarget queryTarget, ExecutionContext context) — End of inner exception stack trace — at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context) at Microsoft.Crm.Extensibility.Pipeline.<>c__DisplayClass3_0. b__0() ApiStepKey 4a597b8f-4b11-eb11-a812-000d3a579ca5 ApiDepthKey 1 ApiActivityIdKey 3fd50188-9450-4b3c-a5aa-7f104964f72e ApiPluginSolutionNameKey System ApiStepSolutionNameKey System ApiExceptionCategory ClientError ApiExceptionMessageName PrivilegeDenied ApiExceptionHttpStatusCode 403 0 prvReadCustomAPI 1 customapi http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040220&client=platform Principal user (Id=f0b8775b-2426-ec11-b6e5-00224828a832, type=8, roleCount=5, privilegeCount=998, accessMode=0), is missing prvReadCustomAPI privilege (Id=de944a2f-ecdc-4418-b888-f0f5853f333f) on OTC=10189 for entity 'customapi' (LocalizedName='Custom API'). context.Caller=f0b8775b-2426-ec11-b6e5-00224828a832 2022-03-07T18:40:36.6859676Z false 3fd50188-9450-4b3c-a5aa-7f104964f72e -2147220960 Principal user (Id=f0b8775b-2426-ec11-b6e5-00224828a832, type=8, roleCount=5, privilegeCount=998, accessMode=0), is missing prvReadCustomAPI privilege (Id=de944a2f-ecdc-4418-b888-f0f5853f333f) on OTC=10189 for entity 'customapi' (LocalizedName='Custom API'). context.Caller=f0b8775b-2426-ec11-b6e5-00224828a832 2022-03-07T18:40:36.6859676Z false Server stack trace: at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at Microsoft.Crm.Tools.Libraries.CrmServiceConnectionExtensions.RetrieveMultipleAllPages(CrmServiceClient service, QueryBase query, String TraceTag) at Microsoft.Crm.Tools.Libraries.OrganizationHelper.LoadCustomApis(CrmOrganization org) at Microsoft.Crm.Tools.PluginRegistration.Helper.<>c__DisplayClass4_0. b__0(Object o, DoWorkEventArgs e) Thanks a lot!



Source link

Leave a reply

Please enter your comment!
Please enter your name here