Error occurred in deployment step 'Activate Feature': A duplicate field name "ABC" was found.

Leave a Comment
While we create a Site Columns Programatically we may get an exception while activating the Feature.

The problem may occur due to the duplicate field name which we have specified in Elements.XML.

Check whether duplicates columns are there or not.

Some time even though we have rectified the duplicates the resolved them .we may get the same exception.If you deploy through VS
The problem is that VS on it's 1st build and deployment caches SharePoint information,
This was done by MicroSoft to speed up deployments of code.  However, the cached VS SP information is now wrong so restart VS 2010 and deploy again.
-> Retract the Solution
->Close the VS
->Open the VS and deploy the Solution.

Related Post

0 comments:

Post a Comment