Share via

CSOM - ClientContext timeout

Sanjay Chauhan 61 Reputation points
2021-02-25T06:10:18.547+00:00

I have more than 100000 lists in a website. I have to read all the lists. When i load all the lists in ListCollection using ClientContext.Load() method. It gives times out exception.
Please let me know, how can i resolve the issue.

Regards

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

Amos Wu-MSFT 4,131 Reputation points Moderator
2021-02-25T06:43:14.147+00:00

You could try to increase the ClientContext.RequestTimeout .

clientContext.RequestTimeout = -1;  

If the response is helpful, please click "Accept Answer" and upvote it.
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.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.