Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Unable to load the CRM Organizations

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!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to load the CRM Organizations

    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/

  • Verified answer
    CRMJetty Profile Picture
    CRMJetty 3,508 on at
    RE: Unable to load the CRM Organizations

    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.

  • JMaye2 Profile Picture
    JMaye2 57 on at
    RE: Unable to load the CRM Organizations

    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

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: Unable to load the CRM Organizations

    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/

  • Guido Preite Profile Picture
    Guido Preite 54,063 Moderator on at
    RE: Unable to load the CRM Organizations

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

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans