Error occurred in deployment step Add Solution: Value does not fall within the expected range

A SharePoint 2010 solution I was working on contained several different types projects (MasterPage, ContentTypes, EventReceivers).  At one point, I started getting this error:  “Error occurred in deployment step Add Solution: Value does not fall within the expected range.” 

By unloading projects I narrowed it down to my ContentType feature.  The ID of the content type had a typo (I left a closed brace sign at the end of the ID).  While googling for this error, there wasn’t an exact match for my typo, rather it was the method to isolate the problem, which is to unload projects and features until I found the culprit.

<ContentType ID="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2006748130EC3DB064584E219954237AF3900F7AEFF
AB848C45AE85AC577F52131053}"
               Name="Three Columns Main"
               Group="My Pages"
               Description="Main Page with three columns"
               Version="0"
               Inherits="TRUE"
               Overwrite="TRUE">
    <FieldRefs>
      <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" Required="TRUE" />
      <FieldRef ID="{888D470D-BF80-4DF2-A2D6-72EBDFF90DE1}" Name="PortalHeaderText" />
    </FieldRefs>
  </ContentType>

  1. #1 by Ed Payne on September 7, 2010 - 8:54 pm

    Hey Jake,
    I found you on linked in. I have a need for a Sharepoint contractor for a project. Are you available for work? I am scoping out the work now, so we need to get going quickly.

  2. #2 by Dan Cooper on November 1, 2010 - 3:43 pm

    Thanks, I left in a curly brace too!

  3. #3 by Steve Mushkat on September 5, 2011 - 2:58 pm

    I left in the dashes from the guid from Guidgen – pulled out the braces but those dashes also result in the same error. Thanks for the tip!

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: