Today I tried to upload a document to SharePoint Online using the Add-SPOFile command from the PnP PowerShell. Add-SPOFile -Path $path/DocumentTemplates/MyTemplate.docx -Folder DocumentTemplates -Web $web -Values @{Title=”MyTemplate”;FileLeafRef=”MyTemplate.docx”} This resulted into format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be … Continue reading Office 365 – PnP – SharePoint – Add-SPOFile – format-default : The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
