Expand Minimize

SPC017413: Do not add cross-scope ActivationDependency to a hidden Feature

A Feature cannot have an cross-scope ActivationDependency to a hidden Feature. For example, a Web site-scoped feature cannot be dependent on a site collection–scoped Feature that is not visible in the user interface.

CheckId SPC017413
TypeName DoNotAddCrossScopeActivationDependencyToHiddenFeature
Severity CriticalError
Type FeatureActivationDependency

Remove the ActivationDependency or make the target Feature visible. MSDN: 'Feature activation dependencies are not supported across scopes if the Feature that is depended upon is not visible. In other words, a Web site-scoped feature cannot be dependent on a site collection–scoped Feature that is not visible in the user interface.'

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC017413:DoNotAddCrossScopeActivationDependencyToHiddenFeature","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.