Design Manager Issue with Content Type SharePoint 2013 Office 365


Hi Everyone, Today I will be sharing some issues faced by design manager SharePoint 2013.

SharePoint 2013 has a new feature Design manager which allows us to move the master page, page layouts from one site collection to other site collection.

We are using PowerShell script with CSOM to create a content type, pages, and many more activities.

We had an issue while creating a content type with the script as it says duplicate content type or I can also say the content type is already available.

This was fresh site and we just moved the master pages, page layouts using design package but we were surprised by getting this error.
But after spending sometime against the error, finally came to the reason behind the issue :).

So when we move the master page, page layouts, css etc using design package it also includes the content type attached to the page layouts. Due to which we were not able to create same content type again using our script.

Now we are not using any code to create the content type. We are using code to add the content type to pages library and design package will take care of creating a content type for respective page layout.

If you want to delete the Content type and its says “It’s being used in the site”, you can deactivate the design package wsp file from solution gallery. This will remove the content type from your site as well.

Read some SharePoint Online Tutorials:

Hope this will be useful.


Thanks,
Sambita

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Sambita Rath

I have 9 years of exprience into SharePoint implementation, architecture, Administrator, development and Training.Designing Information Architecture in SharePoint 2007, 2010,2013 and Office 365.

View all posts by Sambita Rath →