Error occurred in deployment step ‘Activate Features’: The field with Id {xxx} defined in feature {xxx} was found in the current site collection or in a subsite.

Workaround 1:
• Right click on Project node in Solution explorer and click “Retract“. This will retract the Field.
• Close VS. This will flush the stale cache.
• Open the project in a new instance of VS and re-deploy the solution.

Workaround 2:
If closing VS after retract doesn’t solve the problem then a longer workaround is:

• Redeploy the project -> This will show an error during feature activation.
• Go to “Manage Site Features” under “Site Settings” in SharePoint UI in the browser.
• Activate and then Deactivate the deployed feature which contains the Field.
• Retract the Solution in VS i.e. right click on the Project node and click “Retract”.
• Close VS. This will flush the stale cache.
• Open the project in a new instance of VS and re-deploy the solution. This should work.

This entry was posted in Error Solving, Share Point 2010.

3 Responses to Error occurred in deployment step ‘Activate Features’: The field with Id {xxx} defined in feature {xxx} was found in the current site collection or in a subsite.

  1. Supun says:

    Workaround 2: works fine for me. Thanks
    Do you know what exactly happen there? If you can share it, then it would be more great.
    Thanks and regards

  2. Nathan says:

    If that doesn’t solve it then you can step through the code for the feature event receiver by debugging it with F5. It will say that it errored so choose to continue. Then finally activate the feature in SharePoint and it should step into your feature event receiver in Visual Studio. That way you can actually find where the code is failing.

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>