SharePoint Deployment Error – Activate Features / Invalid Field Name

Just a quick tip – if you ever get an error message like this while attempting to deploy your SharePoint solution:

Error occurred in deployment step ‘Activate Features’: Invalid field name. {a41610db-0111-461c-8280-da6d0e28709d}

One thing to check is that you’ve actually specified the Name property for your Field References – I had

[sourcecode language="xml"]
<FieldRef ID="{A41610DB-0111-461C-8280-DA6D0E28709D}" DisplayName="Is Current Delegation" ShowInNewForm="FALSE" ShowInEditForm="FALSE"/>
[/sourcecode]
whereas I should have had:

[sourcecode language="xml"]
<FieldRef ID="{A41610DB-0111-461C-8280-DA6D0E28709D}" Name="IsCurrentDelegation" DisplayName="Is Current Delegation" ShowInNewForm="FALSE" ShowInEditForm="FALSE"/>
[/sourcecode]

6 thoughts on “SharePoint Deployment Error – Activate Features / Invalid Field Name

  1. Mohamed Hachem

    Hello
    This error arises when you forget to add “Name” property to the FieldRef In the content type definition file. Make sure that Field Reference looks like the following:

    Thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>