PnP.PowerShell Get-PnPList Error #858
Unanswered
XxDaShTixX
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Same issue for me. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We recently updated the SharePointPnPPowerShellOnline PowerShell module (as it is currency out of support according to Microsoft) to PnP.PowerShell v1.6.0. Ever since we updated, our runbooks intermittently / randomly fail on the cmdlet Get-PnPList with the following error: "The data is not available. The query may not have been executed." and I cannot pinpoint the reason to why this randomly fails.
$connection = Connect-PnPOnline -Credentials $creds -Url https://XXX.sharepoint.com/sites/YYY -ReturnConnection
$list = Get-PnPList -Identity 'Some List Name' -Connection $connection
Some additional information, this is running ion a schedule n Azure Automation on a hybrid worker. Note that the intermittent failures occur both when I run this in Azure Automation (hybrid worker) or run it locally (directly in ISE).
Anyone has this issue? Any suggestions? Thank you in advance for your help
Beta Was this translation helpful? Give feedback.
All reactions