Home

PnP PowerShell2016 and ExecuteQueryRetry ERROR

Highlighted
Joseph Ackerman
Contributor

PnP PowerShell2016 and ExecuteQueryRetry ERROR

When I try to connect to my on premises SharePoint site using Connect-PnPOnline, I get an error from the CSOM:

 

Connect-PnPOnline : Method not found: 'Void Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(Microsoft.SharePoint.Client.ClientRuntimeContext, Int32, Int32)'.

 

I have triple-checked that the 2013 and Online versions of the PnP PS Modules are not loaded. Is the 2016 version of the PnP PS Module really trying to call a function in the CSOM that is not there?  This issue is preventing me from doing some critical path deployment work, so any response would be welcome at this point.

 

Erwin?  Or anyone?  My thanks in advance...

1 Reply

Re: PnP PowerShell2016 and ExecuteQueryRetry ERROR

Hi,

ExecuteQueryRetry is an extension method from OfficeDevPnP.Core.dl, so check that correct version of the library is loaded to PowerShell.

Br, Ivan
Related Conversations
Getting Office Group for a SPO Site
Dean Gross in SharePoint Developer on
5 Replies
PnP Retry behavior
Dean Gross in SharePoint Developer on
1 Replies
Escaping the content of a Rich Text Field
Nigel Price in SharePoint Developer on
1 Replies
Creating modern site with PnP powershell
Dean Gross in SharePoint Developer on
7 Replies
PnP templates lose colours
Pieter Veenstra in SharePoint Developer on
1 Replies