Share via

SP Online PowerShell Timeout

Anonymous
2016-04-07T01:48:26+00:00

i'm running a powershell script to upload information to a sp list. it times out with the following error. how to increase the timeout?

![](http://fud.community.services.support.microsoft.com/Fud/FileDownloadHandler.ashx?fid=a974681a-9cc5-4e47-ab91-b0e9d034c054)

regards,

harish kumar

Microsoft 365 and Office
Microsoft 365 and Office

A comprehensive suite of productivity tools and cloud services that enhance collaboration, communication, and efficiency. Combining classic Office apps with advanced Microsoft 365 features, it supports both personal and business needs

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2016-04-07T19:54:38+00:00

    Thanks Ryan!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-04-07T04:40:01+00:00

    Hi Harish,

    The error usually occurs when we upload a large file to SharePoint Online or have a slow network connection speed. In the scope of SharePoint Online/PowerShell, it is not feasible to increase the timeout period when using ExecuteQuery().

    In this case, using SharePoint Client Side Object Model (CSOM) is the best practice to achieve your request. For further assistance, please post a thread in MSDN forum which is the dedicated to SharePoint CSOM related questions.

    Additionally, I find an article about SharePoint CSOM for your reference:

    https://msdn.microsoft.com/en-us/library/office/fp179912.aspx

    Regards,

    Ryan

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-04-07T04:38:25+00:00

    Hi Harish,

    The error usually occurs when we upload a large file to SharePoint Online or have a slow network connection speed. In the scope of PowerShell, it is not feasible to increase the timeout period when using ExecuteQuery().

    In this case, using SharePoint Client Side Object Model (CSOM) is the best practice to achieve your request. For further assistance, please post a thread in MSDN forum which is the dedicated to SharePoint CSOM related questions.

    Additionally, I find an article about SharePoint CSOM for your reference:

    https://msdn.microsoft.com/en-us/library/office/fp179912.aspx

    Regads,

    Ryan

    Was this answer helpful?

    0 comments No comments