Monday, 16 August 2010

SharePoint 2010 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.

Problem: I can't redeploy Site columns using Visual studio 2010 to an SP2010 site collection.  I get the 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".
Resolution: Retract wsp, restart VS2010, open the project and deploy the solution.  VS2010 is caching data.
Microsoft kb

2 comments:

Shrek said...

There's one more Important thing!
If u have multiple server farm environment, than deployment will not work via VS2010.
The solution is to disconnect additional servers from the farm or manually deploy the wsp-packages.

I came across this trouble when where using Reporting Services integration (separate servers for MSSQL+RS and SharePoint).

Paul Beck said...

Thanks Shrek,

Are you saying that you can't deploy to multiple environments from within VS2010 once it's open? If you restart VS2010 it will flush your build cache and you can deploy to multiple servers but you would need to have clean build cache info.

paul

Post a Comment