Share via

Content type created from template non-functionnal

Anonymous
2024-08-28T08:53:33+00:00

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.

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-08-28T09:23:09+00:00

    Dear CLAVIERE Benoît,

    Thank you for reaching out to the community with your inquiry regarding SharePoint On-Premises 2019. I understand that you're encountering a challenge where content creation is not functioning as expected in a specific folder after applying a provisioning template.

    While our team primarily focuses on SharePoint Online(Microsoft 365), so we may not have the most up-to-date expertise on SharePoint 2019. I can certainly point you in the right direction for troubleshooting your issue. The SharePoint server community is a valuable resource, and I encourage you to share your detailed scenario there. You can find active discussions and support from other SharePoint 2019 users in forums such as:

    When you reach out to the SharePoint 2019 community, be sure to include all the details you’ve gathered, including any error messages and the steps you’ve already taken to try to resolve the issue. This will help the community provide you with more targeted and effective solutions.

    We appreciate your understanding that our focus is on SharePoint Online, and we wish you the best of luck in resolving your issue with the help of the SharePoint 2019 community. If you have any questions or need assistance with SharePoint Online, feel free to reach out.

    Thank you for your understanding.

    Best regards,

    Sophia

    Was this answer helpful?

    0 comments No comments