Losing and Reestablishing Connection Between List Definition and Instance

After getting the latest version of a SharePoint project from TFS and deploying it a list had lost all it’s custom columns. Title, Comment, and Description were the only survivors.

Interestingly, the schema.xml file in …\15\TEMPLATE\FEATURES\MyProject_MyFeature contained the correct fields.

After some head scratching I changed the list definition’s generic Type ID of 10000 to a specific one:

  • …\MyProject\MyList\Elements.xml: Type=”10033″
  • …\MyProject\MyList\MyListInstance\Elements.xml: TemplateType=”10033″

Re-deployed, problem solved.

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s