[BUG] #4103
Unanswered
GraemeHenderson
asked this question in
General
[BUG]
#4103
Replies: 2 comments
-
Please note that In general you should use Invoke-PnPQuery instead as it has a retry mechanism built to handle these cases of timeouts, where retries are needed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We replaced this in the script - at line 54 but it still timed out. Do we need to also do it at line 31? Or do we need to do it only at line 31? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Notice
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:
Invoke-PnPSiteTemplate
orGet-PnPSiteTemplate
? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/pnpframework/issues.Reporting an Issue or Missing Feature
Issue relating to running a Powershell script to remove versions of files in Sharepoint. The script times out after 40-60 minutes. We have multiple Sharepoint libraries and for example one library has 175,000 files and the script times out having done circa 10,000 files.
Expected behavior
That the script does not time out. We require it to fully complete.
Actual behavior
Please describe what you see instead. Please provide samples of output or screenshots.
The script times out with the error: Error Cleaning up Version History! Exception calling "ExecuteQuery" with "0" argument(s): "The operation has timed out."
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
#Config Parameters
$SiteURL = "https://abcdefg.sharepoint.com/sites/tuvwxyz"
$VersionsToKeep = 50
Try {
}
Catch {
}
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name "PnP.PowerShell" -ListAvailable
)Version 2.4.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions