Forum Discussion

John Seto's avatar
John Seto
Brass Contributor
Oct 03, 2018

Receiving error with Office Graph querying a site collection with large number of document libraries

I have a test site collection with 2500 document libraries (I created them using PnP). 

 

I just tried returning a list of them via Office Graph Explorer but I get an error.

 

GET: https://graph.microsoft.com/v1.0/sites/<tenant>.sharepoint.com,<site_id>/Lists?$top=10

 

Failure - Status Code 504, 20312ms


{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "c1752b49-6dc1-4a18-a3db-d29e4107aca4",
"date": "2018-10-02T21:16:09"
}
}
}

 

The above GET works on site collection with a smaller number of document libraries.

 

Thanks for your help in advance.

 

 

8 Replies

  • Anonymous's avatar
    Anonymous

    Did you test this query using the graph explorer? https://developer.microsoft.com/en-us/graph/graph-explorer

    • John Seto's avatar
      John Seto
      Brass Contributor

      yes, it was in Office Explorer I received this message. I normally use the explorer first before diving into code. thanks

       

Resources