Skip to content

Could not create new content type via SiteDesign #5743

@Arturiby

Description

@Arturiby

Category

  • Bug

Describe the bug

Could not create new content type via SiteDesign. The error 'Parameter parentId references a resource that could not be found.' was thrown. It was working before.

Снимок экрана 2020-05-15 в 01 17 59

Steps to reproduce

  1. Create json site script file with content:

{ "actions": [ { "verb": "createContentType", "name": "Test ct", "group": "Test group", "description": "", "parentId": "0x01", "hidden": false } ] }

  1. Add site script and site design

$siteScript = Get-Content 'test.json' -Raw | Add-SPOSiteScript -Title "Test content type"
Add-SPOSiteDesign -Title "Apply test content type" -WebTemplate "64" -SiteScripts $($siteScript.Id)

  1. Apply site design via UI or api

Expected behavior

Content type should be created without any errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:site-designCategory: Site Designs/Site Scriptstype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions