Geeks With Blogs
Annie Bougie

The fantastic 40 templates from Microsoft can cause issues with content deployment. The following error prevents content deployment with the templates installed:

1. The content type name cannot contain: \ / : * ? " # % < > { } | ~ &, two consecutive periods (..), or special characters such as a tab. at Microsoft.SharePoint.SPContentType.ValidateName(String name) at Microsoft.SharePoint.SPContentType.ValidateNameWithResource(String strVal, String& strLocalized) at Microsoft.SharePoint.SPContentType.set_Name(String value) at Microsoft.SharePoint.Deployment.ContentTypeSerializer.UpdateContentTypeMetaData(SPContentType sourceContentType, SPContentType targetContentType, String contentTypeXml) at Microsoft.SharePoint.Deployment.ContentTypeSerializer.UpdateContentType(SPContentType sourceContentType, SPContentType targetContentType, String contentTypeXml, ImportObjectManager importObjectManager) at Microsoft.SharePoint.Deployment.ContentTypeSerializer.ProcessContentType(SPContentType sourceContentType, String contentTypeXml, ImportObjectManager importObjectManager, Boolean IsParentSystemObject) at Microsoft.SharePoint.Deployment.ContentTypeSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector) at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject) at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope) at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream) at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream) at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader) at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects() at Microsoft.SharePoint.Deployment.SPImport.Run()

To fix this error, the Fields.xml file located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES\TSATypes\Fields.xml needs to be modified. This xml file contains many entries where the field id is set to a Guid. The problem is that this Guid contains curly braces in it: <Field ID="{38F29346-B895-4ece-9BD6-90C7D1E6DA95}". These braces need to be removed.

Make a copy of this file before making modifications in case you have problems after making this change. Then simply do a find and replace on "{ and }" and remove the braces.

Technorati Tags:
Posted on Friday, March 6, 2009 5:38 AM SharePoint | Back to top


Comments on this post: Another SharePoint Content Deployment Issue

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Annie Bougie | Powered by: GeeksWithBlogs.net