Error occurred in deployment of step ‘Activate Features’: the field with ID defined in feature was found in the current site collection or in a sub site.

While doing SharePoint deployment I came across this weird error

Error occurred in deployment of step ‘Activate Features’: the field with ID defined in feature was found in the current site collection or in a sub site.

Background

I tried troubleshoot the same in all possible ways, but no luck. Finally I came across this Microsoft KB article and workaround for the same

http://support.microsoft.com/kb/2022443

All the steps are provided by Microsoft in this KB title, but still just in case the link is not available then here are the steps for the same.

Cause

The root cause of this issue is that Field elements are not properly retracted after their ID (GUID) is changed between deployments. This is also caused if you forgot to enclose the Field ID (GUID) in braces.

Resolution

Note: Make sure that your Field IDs (GUIDs) are always enclosed in braces.

First resolution:

· Retract the Solution/WSP in VS.

· Close VS.

· Reopen VS and deploy the Project.

Second resolution:

If closing VS after retraction doesn’t solve the problem then a larger workaround is:

· Redeploy the project -> This will show an error during feature activation.

· Go to SharePoint UI and Activate and then Deactivate the deployed feature that was showing activation error in VS.

· Retract the Solution/WSP in VS.

· Close VS.

· Reopen VS and deploy the Project.

Tagged with: ,
  • Excellent blog you have got here.. It’s hard to find high quality writing like yours
    these days. I seriously appreciate people like you!
    Take care!!