Open chjohan opened 6 years ago
Hi @chjohan, It appears that you don't have scripting enabled in your site. When the scripting is not enabled the aspx files are not allowed and cannot be uploaded. For more information check this articles: https://support.office.com/en-us/article/security-considerations-of-allowing-custom-script-b0420ab0-aff2-4bbc-bf5e-03de9719627c https://support.office.com/en-us/article/types-of-files-that-cannot-be-added-to-a-list-or-library-30be234d-e551-4c2a-8de8-f8546ffbf5b3#ID0EAABAAA=Online
Category
[x] Bug [ ] Enhancement
Environment
[x] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013
Expected or Desired Behavior
I'm trying to provision an .aspx file to SitePages in a communication site using the 2018/01 schema version and 2.23.1802.0 PnP-Powershell version.
Observed Behavior
When running
Apply-PnPProvisioningTemplate -Path .\template.xml -Handlers Files
, the tracelog outputs:Applying the same template to a team site works fine.
Steps to Reproduce
Connect-PnPOnline -Url https://yourdomain.sharepoint.com/sites/yoursite
</pnp:Files>`
Apply-PnPProvisioningTemplate -Path .\template.xml -Handlers Files