pnp/blog

Input string '1.0' is not a valid integer. Path 'position.sectionIndex', line 1, position 62.

Opened this issue · 0 comments

Reporting an Issue or Missing Feature

Error calling Apply-PnPProvisioningTemplate to Sharepoint online site.

Expected behavior

Should apply template without any errors.

Actual behavior

Returns a message saying "Apply-PnPProvisioningTemplate : Input string '1.0' is not a valid integer. Path 'position.sectionIndex', line 1, position 62."

Steps to reproduce behavior

  1. Install Module in Powershell using Install-Module SharePointPnPPowerShellOnline -AllowClobber
  2. Connect to the source Sharepoint site using Connect-PnPOnline -Url "{insert url here}" -UseWebLogin
  3. Export the site template and content to a PnP Provisioning Template XML file using Get-PnPProvisioningTemplate -Out "siteTemplate.xml" -IncludeAllClientSidePages -Handlers All
  4. Connect to the target site using Connect-PnPOnline -Url "{insert url here}" -UseWebLogin
  5. Apply the Site Template using Apply-PnPProvisioningTemplate -Path "siteTemplate.xml"

Which version of the PnP-PowerShell Cmdlets are you using?

3.29.21 SharePointPnPPowerShellOnline