Hi @Monika V
Thanks for letting us know your user experience. According to your case description, I do understand how frustrated you are now.
When I received the case, I searched a lot of documents did a lot of researches. And I feel regretful to inform you that it turns out to be a by-design one.
This is a known issue with the SharePoint REST API.
It will throw an error if the query (or the first part of the filter query) returns more than 5000 items, even if you only use and return one item. $filter $top
This doesn't work even if you are indexing the column. If possible, try reducing the number of items returned in the first part of the query.
Here is a link on how to get by recursively calling:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards
Cheng Feng