Open kannan-balasubramanian opened 6 years ago
Guys, can some one please look into this issue.
Hi, did you ever get a response or find a workaround for this? We have the same problem - so are now looking at manually editing the templates. Thanks :)
This is still broken. It's pulling spcolor and spfont files, but it does not pull down any other files (ex: master pges). Thus apply-pnpprovisioningtemplate fails when it cannot find any of these files.
I did some reading around - and apparently it's not meant to get those items. In my experience, it only gets the home.aspx page, it doesnt get anything in the site assetts folder. Theres also a problem with sharepoint online at the moment that is messing up app provisioning
Can you share any links, Will? get-pnpprovisioningtemplate makes references to files that it doesn't pull down, and breaks when it can't find them. This makes me think it should be pulling those files.
Should an entry be added to https://office365.uservoice.com/ with a link to this issue ? If so we could all vote for this specific issue.....not sure if that would help or not.
Category
[x] Bug [ ] Enhancement
Environment
[x] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013
Note: I believe this is an issue with the PNP-Sites-Core rather then PNP-PowerShell.
Site Setup:
Issue:
Expected Behavior
When using Get-PnPProvisioningTemplate using XML based template file, I expect the "SiteAssets" files to get downloaded to the folder where the power shell script is being executed.
Observed Behavior
The template xml file get's created with web-part and it's references URL within the XML file. But the files within "SiteAssets" are not getting downloaded.
Same is the case if I use pnp file, the file doesn't have any "SiteAssets" artifacts.
Code:
Connect-PnPOnline -Url $sourceSiteUrl -RequestTimeout 30000 Get-PnPProvisioningTemplate -Out SourceTemplate.xml -Force Connect-PnPOnline -Url $newSiteURL -RequestTimeout 30000 Apply-PnPProvisioningTemplate -Path SourceTemplate.xml
PS; Unfortunately I cannot share the template file as it has confidential URLs.