I'm trying to retrieve data from SharePoint Online list using rest api (via power automate). I'm using multiple filter conditions on the same column (around 80 filter queries). When I try to execute the rest API in power automate in fails with below error message:

enter image description here

When I try the query in browser, I get the below error:

enter image description here

How can I handle this scenario?

Thanks, Robin


1 Answer 1


When you have a large number of filter conditions in a REST API call, it can cause the query to become very long and potentially exceed the maximum URL length allowed by the server. This can result in a "site can't be reached" error.

To handle this scenario, you can try following solutions:

  • Split the filter conditions into multiple REST API calls. Instead of including all 80 filter conditions in a single query, you can split them into smaller groups and execute multiple REST API calls to retrieve the data.

  • Use indexing on the SharePoint list. If your list has a large number of items, using indexing on the column you are filtering on can improve query performance and potentially prevent the "site can't be reached" error.

  • Consider using the SharePoint Search API as an alternative to the REST API, especially when dealing with complex queries with a large number of filter conditions. The SharePoint Search API can deliver more precise results than the REST API in certain scenarios. However, the implementation of the SharePoint Search API using Power Automate may require further exploration

  • 1
    Hi @pradip, thank you for the suggestions. Will try the first one and let you know how it turns out. Thanks.
    – Robin Roy
    Commented May 12, 2023 at 5:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.