Replies: 5 comments 4 replies
-
Same issue in C# .Net 6 with PnP.Framework 1.10.0: The JSON value could not be converted to System.Int32. Path: $.position.sectionIndex | LineNumber: 0 | BytePositionInLine: 107.
|
Beta Was this translation helpful? Give feedback.
-
I had the same problem. In my case it was related to a template I had created under "Site Pages\Templates". It wasn't something I needed so deleted the file and now it works. Didn't investigate any further. Could probably turn on some PnPTracelog to find the exact file causing the problem. |
Beta Was this translation helpful? Give feedback.
-
I had the same problem. The issue is in pnpcore while Deserializing the controlDataJson. The sample json for which the failure occurs in my case:
The parser is failing to read |
Beta Was this translation helpful? Give feedback.
-
Looks like a behavioral change in the Json Library: |
Beta Was this translation helpful? Give feedback.
-
This change worked for me -> stokuri/pnpcore@0954abc Submitted PR -> pnp/pnpcore#1058 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to extract the provisioning template from a site with Project Management template applied. We are using Connect-PnPOnline to connect to a site I am able to connect to the site but when trying to export the provisioning template using: Get-PnpProvisioningTemplate -out "template.xml" we are receiving the following error. This does not occur on sites with no project management template applied
Script failing when trying to run command with below error Get-PnPSiteTemplate -Out "PnP-Provisioning-File.xml" PS C:\Windows\system32] Get-PnPSiteTemplate -Out "PnP-Provisioning-File.xml" Get-PnPSiteTemplate : The JSON value could not be converted to System.Int32. Path: $.position.sectionIndex | LineNumber: 0 | BytePositionInLine: 107. At line:1 char:1 + Get-PnPSiteTemplate -Out "PnP-Provisioning-File.xml"
Beta Was this translation helpful? Give feedback.
All reactions