Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Authorization Failure error when trying to upload document on SharePoint from CRM 2016

Posted on by 285

Hi All, We are using On-Prem Dynamics CRM 2016.

We are getting below error when trying to upload a document from CRM 2016 to SharePoint. 

It says authorization failure. But if I click on open location then it allows me to go to the SP site and upload there directly.

But not allowing through CRM. Attached is the error picture. 

Is it something related to the SSL certificate? Can anyone please help.

4331.SP-Error.PNG

  • nidnani Profile Picture
    nidnani 285 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Hi Tom,

    Thanks for your help. The issue got resolved last week.

  • Tom Jeffries Profile Picture
    Tom Jeffries 145 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Hi nidnani,

    I'm not sure then.  I think this is as far as we're going to get via the forums so in this case I'm going to recommend that you open a support case with us.  

    That way our support staff can work with you hands-on and in more detail.  We can also work with our colleagues from the PowerShell team if needed.

  • nidnani Profile Picture
    nidnani 285 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Yes.. running on CRM server computer.  It is domain-connected.

  • Tom Jeffries Profile Picture
    Tom Jeffries 145 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    This seems to be an error on the PowerShell side.  Using the search term "new-pssession" "winrm cannot process the request" I was able to find some posts of users who have had similar issues.

    Are you on a domain-joined machine?  I think you need to be to do a remote session.

  • nidnani Profile Picture
    nidnani 285 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Hi Tom, I tried running the PS commands but now I am getting stuck at below error.

    I get this when I try to run this command New-PSSession

    How to get rid of this? Is it related to SPN?

    1602.MicrosoftTeams_2D00_image-_2800_1_2900_.png

  • Verified answer
    Tom Jeffries Profile Picture
    Tom Jeffries 145 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Hi nidnani,

    Yes, even with SharePoint Online, you still need to re-run the PowerShell commands.  The documentation specific to Dynamics on-prem and SharePoint Online is here: docs.microsoft.com/.../on-prem-server-based-sharepoint-online

  • nidnani Profile Picture
    nidnani 285 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    I validated the SharePoint site in CRM and I am getting below error now.

    <exception>The request was aborted: The request was canceled.Access token could not be obtained from: accounts.accesscontrol.windows.net/.../2 for resource: 00000003-0000-0ff1-ce00-000000000000/constco.sharepoint.com@91b6bde9-1eb1-42d6-8375-b37d6a90df4c</exception>

      <errorcode>-2147088205</errorcode>

      <correlation>e608449f-10d1-b000-c6aa-6f11faef5662</correlation>

    </site>

    7416.Unexpected-SP-error.PNG

  • nidnani Profile Picture
    nidnani 285 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Hi Tom,

    I just came to know that the SharePoint site which we are using is not on-prem. It is cloud-based. 

    And the only different thing that we did was update CBA certificate on our CRM server.

    So do you think after updating the certificate we need to do the integration again?

    Following this doc will help? https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/admin/on-prem-server-based-sharepoint-online 

  • Suggested answer
    Tom Jeffries Profile Picture
    Tom Jeffries 145 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    Hi nadni,

    In that case, I would recommend carefully reviewing the following documentation, starting with the prerequisites: docs.microsoft.com/.../on-prem-server-based-sharepoint-on-prem

    At a minimum you'll need to make sure the CrmAppPool account has read access to the certificate, and run the CertificateReconfiguration PowerShell.

  • nidnani Profile Picture
    nidnani 285 on at
    RE: Authorization Failure error when trying to upload document on SharePoint from CRM 2016

    hi, it started happening after we updated claim based certificate on our CRM server.

    I did not perform the initial setup, I am taking over someone else's work 

    The Sharepoint setup in CRM is active and working fine if we open the file location.

    Where would I find the server integration wizard? 

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans