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 :
Microsoft Dynamics CRM (Archived)

CRM 2016 On-Premise and SharePoint 2013 On-Premise: Enable OneDrive

(0) ShareShare
ReportReport
Posted on by

We have enabled Server to Server integration with SharePoint 2013 and it is creating folder and adding documents...etc. Trying to enable OneDrive results in the following when using our SharePoint Farm Admin user, and when using myself who is a site collection admin I get access denied.

Is On-Premise OneDrive for business supported with CRM On-Premise and SharePoint 2013 On-Premise?

Is there additional security setup for it?

BTW: My One drive web application is not a sitecollection of my Server to Server WebApplication used for integration but is wired up ain the UPS for SP as the default MySite.

Access denied (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault). , exception message : Access denied, callerId: {0B0885D1-4771-E611-80E9-0050569F7CAF}
[2016-09-29 11:25:09.397] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  230 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: a763b53c-e1b3-469d-aea3-9a8c02da7567 | CrmException..ctor  ilOffset = 0x9
 at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory)  ilOffset = 0x9
 at CrmException..ctor(String message, Int32 errorCode)  ilOffset = 0x6
 at SharePointDBHelper.SetStateForOneDrive(Boolean isOneDriveEnabled, ExecutionContext context)  ilOffset = 0x63
 at OrganizationServiceInternal`1.Update(IBusinessEntity organization, ExecutionContext context)  ilOffset = 0x663
 at EnableOneDriveForBusinessSettingsPage.ConfigureForm()  ilOffset = 0x133
 at AppUIPage.OnPreRender(EventArgs e)  ilOffset = 0x13
 at Control.PreRenderRecursiveInternal()  ilOffset = 0x54
 at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x6D3
 at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C
 at Page.ProcessRequest()  ilOffset = 0x14
 at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33
 at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D
 at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
 at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A
 at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
 at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A
 at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B
>Crm Exception: Message: Access denied, ErrorCode: -2147088639

Unexpected Error 

An error has occurred. 
 
Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

Exception occured while calling async server, exception : -2146233087 , Inner Exception : System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: An unexpected error occurred. (Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault). , exception message : An unexpected error occurred., callerId: {94EFD496-7086-E611-80EF-0050569F7CAF}
[2016-09-29 11:18:54.542] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:  226 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 5e02c592-6f73-401b-ae24-6614bfdb9996 | CrmException..ctor  ilOffset = 0x9
 at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory)  ilOffset = 0x9
 at CrmException..ctor(String message, Int32 errorCode)  ilOffset = 0x6
 at SharePointDBHelper.SetStateForOneDrive(Boolean isOneDriveEnabled, ExecutionContext context)  ilOffset = 0x63
 at OrganizationServiceInternal`1.Update(IBusinessEntity organization, ExecutionContext context)  ilOffset = 0x663
 at EnableOneDriveForBusinessSettingsPage.ConfigureForm()  ilOffset = 0x133
 at AppUIPage.OnPreRender(EventArgs e)  ilOffset = 0x13
 at Control.PreRenderRecursiveInternal()  ilOffset = 0x54
 at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x6D3
 at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C
 at Page.ProcessRequest()  ilOffset = 0x14
 at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33
 at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D
 at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
 at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A
 at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
 at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A
 at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B
>Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970

*This post is locked for comments

I have the same question (0)
  • Inogic Profile Picture
    756 on at

    Hi BobBreton,

    You want to enable the OneDrive for CRM On Premise ? You may refer this blog below which states that Enable for OneDrive is applicable for CRM 2016 Online.

    https://technet.microsoft.com/library/c3742b70-863a-488e-beb3-fb9d63c2e6e5 

    Please make sure you are meeting with the requirements.

    Hope this helps.

    Thanks!
    Sam

  • BobBreton Profile Picture
    on at

    I believe you are presuming CRM On Premise is only available with OneDrive Online or CRM Online? It is not very clear...

    See: technet.microsoft.com/.../mt622066.aspx

    RE: This topic applies to organizations deploying on-premises versions of OneDrive for Business and CRM or an online/on-premises mix of these products.

    It is very clear I have Dynamics 2016 On-Premise and the menu item to enable OneDrive is shown via On-Premise of CRM and the above TechNet states deploying on-premise version of OneDrive for Business (Which is SharePoint On-Premise) so by documentation this should work yet does not and states:

    Access denied, callerId: {0B0885D1-4771-E611-80E9-0050569F7CAF} *BTW: this callerid is myself and I verified I am sitecollection Admin in SharePoint and also have the enabled rights in CRM as documented, also CRM integration using s2s certificate is operational meeting or exceeding documented requirements.

    Anyone been able to accomplish this integration?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans