The field with Id [GUID] defined in feature [GUID] was found in the current site collection or in a subsite
-
16-10-2019 - |
문제
I have a farm solution with a single feature that has a bunch of site columns and a content type.
The content type does inherit from Enterprise Wiki Page, but the feature has an activation dependency on the Publishing Site Collection Feature.
I'm getting the error in the title upon activating the site-scoped Feature.
At first I thought this was a Visual Studio 2010 problem, not retracting the solution from a previous build error I had or something.
But this will not deploy even to a new site collection, giving the error:
The field with Id [GUID] defined in feature [GUID] was found in the current site collection or in a subsite.
I've manually removed it from Farm Solutions in CA, added it manually, deployed it manually, but still getting the error when trying to activate my Site Collection Feature.
Here's the field it's actually complaining about:
<Field ID="{522D25C2-2826-46A2-BCAE-A8B0A6BFE476}"
Name="Tab1Link"
DisplayName="Tab 1 URL"
Type="URL"
Group="A Group"
/>
Am I missing something?
EDIT:
I'm adding to the content type like so:
<FieldRef ID="{522D25C2-2826-46A2-BCAE-A8B0A6BFE476}" DisplayName="Tab 1 URL" Name="Tab1Link"/>
해결책
There must be an existing field with that Guid in your content database. Have you tried it with a different Guid? Or possibly there is a field with the name Tab1Link but a different display name, or hidden. You might try a different name also.