You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of migrating a script from an old server to a new one, but I've run into a problem with the Connect-PnPOnline command that maps a drive to a sharepoint site. The command is:
The only thing that has changed between the old server and the new one is the thumbprint of the cert I'm using to connect. If I remove the -CreateDrive option it connects ok, but with it in use I get the error:
Connect-PnPOnline: Input string was not in a correct format. Failure to parse near offset 25. Expected an ASCII digit.
I've tried using -DriveName but I get the same error. This looks like a duplicate of #4717 but as far as I can tell the fix for this is still in place.
PnP.Powershell module is 3.1.0 and Powershell is 7.5.2. I feel like 3.1.0 has been around for long enough for this to have been noticed if it were a bug, so I'm a bit stuck.
Not sure whether to open an issue, or whether anyone can make a suggestion please.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm in the process of migrating a script from an old server to a new one, but I've run into a problem with the Connect-PnPOnline command that maps a drive to a sharepoint site. The command is:
Connect-PnPOnline -Url $siteUrl -ClientId $clientId -Tenant $tenantId -Thumbprint $thumbPrint -CreateDrive
The only thing that has changed between the old server and the new one is the thumbprint of the cert I'm using to connect. If I remove the -CreateDrive option it connects ok, but with it in use I get the error:
Connect-PnPOnline: Input string was not in a correct format. Failure to parse near offset 25. Expected an ASCII digit.
I've tried using -DriveName but I get the same error. This looks like a duplicate of #4717 but as far as I can tell the fix for this is still in place.
PnP.Powershell module is 3.1.0 and Powershell is 7.5.2. I feel like 3.1.0 has been around for long enough for this to have been noticed if it were a bug, so I'm a bit stuck.
Not sure whether to open an issue, or whether anyone can make a suggestion please.
Best wishes,
Iain
Beta Was this translation helpful? Give feedback.
All reactions