web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Unable to load the CRM Organizations

(0) ShareShare
ReportReport
Posted on by 10

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?

pastedimage1646678582197v1.png

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:80040220&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!

  • Guido Preite Profile Picture
    54,086 Moderator on at

    not a solution but you can try with Plugin Registration Tool inside XrmToolBox

  • Suggested answer
    Bipin D365 Profile Picture
    28,995 Moderator on at

    HI,

    Make sure you have system admin role assigned in Dataverse to connect to PLugin registration tool.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • JMaye2 Profile Picture
    57 on at

    Querying on the error above- "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)".  It looks like a permissions issue.  

    Have you seen this?  

    community.dynamics.com/.../principal-user-type-8-is-missing-prvreadxxx-privilege

  • Verified answer
    CRMJetty Profile Picture
    3,514 on at

    Hello Shuangshuang,

    pls refer this thread to Unable to load the CRM Organizations,

    https://community2.dynamics-int.com/crm/f/microsoft-dynamics-crm-forum/211592/unable-to-connect-to-a-crm-organization-with-the-pluginregistration-tool-all-versions

    I hope it helps,

    Thanks.

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi

    Please uninstall your plugin registration tool and again install. Your problem will be resolve.

    [View:/cfs-file/__key/communityserver-discussions-components-files/117/PluginRegistration.exe:320:240]

    Thanks,

    Arshad

    Please like and subscribe my youtube channel and follow my blog as well for interview preparation and more update please.

    https://www.youtube.com/channel/UC3Pe9Y_2SxA9xAmTfuSWQaA/videos

    https://juniorcrmblog.blogspot.com/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 109 Super User 2026 Season 2

#2
Syed Aqib Raza Profile Picture

Syed Aqib Raza 88

#3
ParthPatel249 Profile Picture

ParthPatel249 82

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans