Microsoft Graph API for SharePoint returns "UnknownError" when trying to get Shared link for file RRS feed

  • Question

  • Hi,

    I have been using  Microsoft Graph API for SharePoint to get Shared link for a particular file and to checkout a file. Below mentioned are the API documentation link that I was referring to.

    Checkout File->  https://docs.microsoft.com/en-us/graph/api/driveitem-checkout?view=graph-rest-1.0&tabs=http

    Get Shareable Link-> https://docs.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0&tabs=http

    The API was working fine till now  but recently the API returns error as "error":"UnknowError". Error object is mentioned below

        "error": {
            "code": "UnknownError",
            "message": "",
            "innerError": {
               "date": "2020-07-06T02:34:50",
                "request-id": "da2c7ba2-3cf1-4979-8c42-7db478e409bb"

    I've tried several different changes to my request, but keep getting the unknown error.

    Am I missing something here any help is greatly appreciated?


    Kuldeep K

    Thursday, July 9, 2020 9:59 AM

All replies

  • Hi Kuldeep Kushwah,

    This endpoint works well here on my SPO environment. Could you please try to re-grant the permission and test it in Graph ExplorerIf this doesn't work then we suggest you submit a ticket on admin center or raise this issue on the Graph API GitHub. The corresponding team could troubleshoot it further with the request-id. 

    Best Regards,

    Baker Kong

    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, July 10, 2020 2:12 AM