March 2009 Entries

Part 2: Copy a SharePoint List Programmatically

I started this series to show how to copy different kinds of lists in SharePoint. Each type of list has its own challenges. In this article I will also demonstrate how to copy custom fields and keep the same internal name. It’s kind of annoying that you can’t create a field with the internal name you specify, but I found a pretty easy workaround. You create the field using AddFieldAsXml on the list Fields collection, and you use the internal name as the display name. This creates the field with the...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Another SharePoint Content Deployment Issue

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.SPCont... name) at Microsoft.SharePoint.SPCont... strVal, String& strLocalized) at Microsoft.SharePoint.SPCont...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SharePoint Content Deployment Issue

The following error can occur during content deployment: The changeToken refers to a time before the start of the current change log. The changeToken refers to a time before the start of the current change log. at Microsoft.SharePoint.Deploy... minChangeTime, Int32 minChangeNumber) at Microsoft.SharePoint.Deploy... at Microsoft.SharePoint.Deploy... at Microsoft.SharePoint.Deploy...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati