This is the case: We have an existing site collection with Feature A with 6 elements: E1, E2, E3, E4, E5, E6 (5 list instances and 1 web event receiver).
I want to create a feature which only exists of E1 and E2 (two list instances). So, my idea was: create new feature and add E1 and E2 to it. This results in the following error:
error SPT6: The Project Item ... is included in the following features.
Another option is removing E1 and E2 from Feature A and add them to the new feature. However, this will result in problems, because Feature A is already activated at one site, so activating the new feature there will result in an error, because those list instances are already there.
I think I can copy the elements E1 and E2 to new elements, but that results in duplicate code, something I want to avoid.
I am looking for the best option here. I found this post but that did not help me; it stated the error is actually a warning. That is not the case, I cannot package the solution.
Any help here?