Question

I have an content type in my feature, and sudenly when I tried to debug my feature, i got the following error:

Error occurred in deployment step 'Activate Features': 
The content type with Id 0x01005B614C2D37A841DE8D1739C2A6ECDF82 defined in feature {bla bla} was found in the current site collection or in a subsite.

The thing is that even if I manually retract and delete solution and try to redeploy, error is still present. I can't find my content type in gallery, nor activate feature containing it by hand from feature gallery. I found it in content database by hand (through SQL Server Studio), but I'm far from deleting it by hand from database because I don't want to mess up whole site collection and web application. What can be the cause and how do I eventually can get rid of that error?

I found one post on MSDN which suggested site collection deletion, but I'd like to avoid that.

Was it helpful?

Solution

This is a bug that comes up every now and then. Sometimes it will clean itself up when you redeploy. Try that before deleting the site collection.

OTHER TIPS

Try restarting Visual Studio. Sometimes it locks some stuff, I've seen it before.

I faced this issue before but did you to iterate through the Site Collection/Webs via PowerShell to see if something is missing?

Also, check the ULS log to find more specific information. Did you try setting the OVERWRITE attribute to TRUE because it overwrites the existing Content Type if any. If you don't find anything, (as Mike suggested) you may have to delete the Site Collection and recreate it.

The issue comes every now and then.. in the case try to retract the code with visual studio. rebuild it and again deploy. Or may be you can put activation status to "No Activation" and then deploy your solution.

Hope it works...

-- regards,

Deepak

I deployed a bunch of columns and deployed them using a feature. Afterwards I retracted that feature and created a new feature to deploy them with same ID (GUID) but different internal names. That caused me this error.

I had to change all my IDs to fix this issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top