Forum Discussion
sunnypasrija
Jun 21, 2021Copper Contributor
Connect-PnpOnline: Getting error Length can not be zero. Parameter:Length
While connecting to SharePoint Online inside azure queue function I am getting error "Length can not be zero. Parameter:Length". I am using self signed certificate, key and Client ID to connect to s...
Phildo25
Aug 15, 2022Copper Contributor
I had the same problem and it was because I was using the older SharePointPnPPowerShellOnline Module. Where as pnp.powershell is the newer one that should be used
Then I had this error
Index was out of range. Must be non-negative and less than the size of | the collection. (Parameter 'startIndex')
But the above one was fixed by switching from the powershell 7.1 runtime to powershell 5.1