Nick Grattan’s SharePoint Blog

About Microsoft SharePoint and some .NET

Amnesia Problem: Multiple Content Types on Libraries

with 2 comments

Update Oct 30 2009: Here’s a solution to this problem.

There are many cases where you may want to have multiple content types associated with libraries. For example, a document library may be created for all documents do with a project. You may have different content types for project specifications, project plans etc. This can be easily done and is well documents. This results in multiple items displaying on the “New” menu, each of which can have different document templates and different meta data columns:

ct1.PNG

Now, when the user selects New + Content Type 2 the document template for Content Type 2 will be downloaded. So far, so good. Remember, though, that the document has not yet been created in the document library.

Once the document has been authored, the user will now save the document back to the document library, say with the name “document1.docx”. This is the point at which SharePoint suffers from amnesia. It has no idea that this document was created by the user selecting New + Content Type 2, and so when the document is saved SharePoint will use the default content type, which is “Content Type 1″ in this case.

ct2.PNG

In many situations, this does not matter. However, when the content types have different meta data associated with them, or different workflows or policies, the document will have the wrong processing applied. This can have serious problems, especially when documents are passed to records management.

This problem can be mitigated to an extent by having required meta data fields – in this case the user will be prompted by the client application to provide values, and at this stage the user will have an opportunity to select the content type. Alternatively, separate document libraries will be required for each of the different content types – but this compromises your taxonomy.

 

Written by Nick Grattan

September 3, 2009 at 2:49 pm

2 Responses

Subscribe to comments with RSS.

  1. [...] a comment » In this blog post I describe a problem whereby document libraries having multiple content types use the default [...]

  2. I suspected that this was the case, thanks for confirming this problem.

    It’s a bit rubbish that SharePoint doesn’t pass info to the client application telling it what content type it should be saving back to the library.

    Andy

    January 29, 2010 at 12:45 pm


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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.