pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

Get-PnPProvisioningTemplate is failing - Page Home.aspx is not a "modern" client side page #1700

Open NPrice99 opened 6 years ago

NPrice99 commented 6 years ago

Category

[ X] Bug [ ] Enhancement

Environment

[X ] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

If SharePoint on-premises, what's exact CU version:

Expected or Desired Behavior

I expect Get-ProvisioningTemplate to extract Client Side Pages

The Page has the modern UI and is in the SitePages Directory.

Observed Behavior

powershell.exe Information: 0 : 2018-03-29 18:29:38.0298    [Extraction]    [9] [Debug] Code execution scope started    0ms 88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:38.0659    [Extraction]    [9] [Debug] Base template available: STS0template   35ms    88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:38.0659    [Extraction]    [9] [Debug] ProgressDelegate registered 36ms    88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:38.0668    [Extraction]    [9] [Debug] MessagesDelegate registered 36ms    88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:38.0668    [Extraction]    [9] [Debug] IncludeAllTermGroups is set to true 36ms    88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:38.0668    [Extraction]    [9] [Debug] PersistBrandingFiles is set to true 37ms    88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:38.1393    [Page Contents] [9] [Debug] Code execution scope started    15ms    88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:41.8565    [Page Contents] [9] [Debug] Code execution scope ended  3732ms  88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:41.8940    [Client Side Page Contents] [9] [Debug] Code execution scope started    0ms 88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Warning: 0 : 2018-03-29 18:29:42.5756    [Client Side Page Contents] [9] [Information]   This page is not a valid client side page and can't be extracted. Underlying error = Page Home.aspx is not a "modern" client side page. 681ms   88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:42.5756    [Client Side Page Contents] [9] [Debug] Code execution scope ended  681ms   88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:42.5761    [Retrieve Template Info]    [9] [Debug] Code execution scope started    0ms 88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:42.9827    [Retrieve Template Info]    [9] [Debug] Code execution scope ended  406ms   88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:42.9827    [Extraction]    [9] [Debug] Code execution scope ended  4952ms  88ddfc74-76e6-4918-8ec6-127e40d7e846
powershell.exe Information: 0 : 2018-03-29 18:29:43.3770    [OfficeDevPnP.Core] [0] [Information]   File C:\Documents\PowerShell Scripts\SharePointOnline\Tenant Migration\Templates\Home\Dev\template.xml saved to folder  0ms 

Steps to Reproduce

Connect_PnPOnline -Url Get-ProvisioningTemplatre -Out Template.xml

Thanks for your contribution! Sharing is caring.

henryarphillips commented 6 years ago

I too am experiencing this