Forum Discussion
Debayo Graham
Feb 03, 2017Brass Contributor
Apply-PnPProvisioningTemplate : Value cannot be null. Parameter name: stream
Good Day Guys, I get this error when trying to applying provisiioning template to a publishing site Scenario 1. Create a publishing site cllection 2. Added branding files (css, js, html fil...
paulpascha
Feb 06, 2017Bronze Contributor
The index.html file seems to be not saved together with your template as part of the -PersistBrandingFiles . I think this is a bug / missing feature in Office Dev PnP. As a quick fix you could manually make sure the file is in your template. If you have more time you could fix this in Office Dev PnP and submit a pull request :-)
- Luis MaƱezFeb 06, 2017MVPSeems weird. Object Handler is considering .html files, and the GetFiles method works recursively, as far as I see.
var sourceFiles = GetFiles(masterPageGalleryFolder).Where(
f => f.Name.EndsWith(".aspx", StringComparison.InvariantCultureIgnoreCase) ||
f.Name.EndsWith(".html", StringComparison.InvariantCultureIgnoreCase) ||
f.Name.EndsWith(".master", StringComparison.InvariantCultureIgnoreCase));
Are you using latest PnP Core dll version?