Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Apply-PnPProvisioningTemplate : Value cannot be null. Parameter name: stream #1010
[X ] Bug
[X ] Office 365 / SharePoint Online
If SharePoint on-premises, what's exact CU version:
Expected or Desired Behavior
export a publishing site and apply it to another publishing site
Observed Behavior & STEPS
Apply-PnPProvisioningTemplate : Value cannot be null.
I'm logging as some articles suggested and I see the issue is with the new default.aspx page I made in the Pages folder.
PowerShell.exe Information: 0 : 2017-01-27 17:14:52.9423 [Files]  [Debug] Uploading and overwriting existing file Pages\default.aspx 330ms 42068b57-c990-4b68-9022-f57aa31f9edb
If i remove that section from the .xml everything is fine. If I import and use " Apply-PnPProvisioningTemplate -Path template2.xml -ExcludeHandlers Files" then it works as well.
Thanks in advance!
@jansenbe I am facing this issue with PnP remote provisioning schema xml for file upload in SharePoint Online, can you please suggest which files I need to update to latest version? I am using CSOM code to apply template and have updated my NuGet Package to Microsoft.SharePointOnline.CSOM to 16.1.6216.1200 & SharePointPnPCoreOnline to 2.13.1703 and still facing the error.