High CPU Usage When Deploying Content Types Using SharePoint Feature

I am creating a SharePoint function that will be used to deploy some types of content (and their own columns / fields) to a new SharePoint site.

I used an external tool to create CAML for content types ( user commands STSADM Andrew Connell ), but when I put them into a function and run it, I got into a problem.

The function is activated as I expect, but when I try to view the content types of the site (/_settings/mngctypes.aspx), the processor starts up to 100% use (w3wp) and stays there.

Has anyone seen this and knows how to solve it?

+4
source share
2 answers

I have seen this before, the generated XML does not contain an XML namespace: Also note that this tool does not create XML, which is 100% correct for use in Feature.

Bad XML:

<XmlDocument> <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <Display>ListForm</Display> <Edit>ListForm</Edit> <New>ListForm</New> </FormTemplates> </XmlDocument> 

Good-XML:

 <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms"> <Display>ListForm</Display> <Edit>ListForm</Edit> <New>ListForm</New> </FormTemplates> </XmlDocument> 
+7
source

With custom columns, do you mean custom fields? What content type page are you trying to view? A list of all types of site content or a page for information about your content type? If its the last, could your custom columns cause an error?

0
source

All Articles