Forum Discussion
Content type created from template non-functionnal
Hello everyone,
I have a problem with SharePoint Onprem 2019.
I have created a communication site on my development environment, with lists, site columns, and content types...
I exported this site as an XML template in PowerShell using the PNP command: Get-PnPProvisioningTemplate.
Then, i imported the template into our recipe environment, again using PowerShell and the Apply-PnPProvisioningTemplate command. Everything's working, with one exception.
In a folder where site content is authorised and defined, I can't create new content, whereas in dev, I can.
I get a 500 error on the url ‘_api/web/GetList(@listUrl)/RenderListDataAsStream?=&@listUrl=’/sites/mySite/myFolder‘’.
I've checked the parameters between the two sites and can't find any differences.
However, if I create a new type of content now, I can create it in my folder without any problem.
Do you have any idea what is causing this malfunction and how to fix it (knowing that to deploy in production, it's all in PowerShell script).
Thank you very much for your help.