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...
mmr104
Mar 21, 2022Copper Contributor
sunnypasrija Did you figure out a solution for this? I am getting the same error when connecting to SharePoint Online with Azure Automation.
LHoffmannUdS
Jul 27, 2022Copper Contributor
Is there a solution jet? I have the same problem now too. I got the base64 encoded certificate and I can connect to pnpOnline via cloud-shell but not within a automation runbook. I get the same error:
Line | 30 | Connect-PnPOnline -Url $baseSite -ClientId $appId -CertificateBase64E … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Length cannot be less than zero. (Parameter 'length')