.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Error occurred in deployment of step 'Activate Features': the field with ID defined in feature was f

Posted By:Dhiraj Ranka       Posted Date: March 05, 2011    Points: 150    Category: SharePoint    URL: http://www.dotnetspark.com  

This article describes how to handle error like this "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.

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend