Hi,
I’m trying to activate the Actions Pack feature after a site was created from template.
Used feature-ID is {d7891031-e7f5-4734-8077-9189dd35551c}.
The returned message from the workflow is: “Exception: Feature with Id ‘d7891031-e7f5-4734-8077-9189dd35551c’ is not installed in this farm, and cannot be added to this scope.”
I also used this to get more detailed error:
[code](function(featureId, enable) {
var clientContext = new SP.ClientContext.get_current();
var featureGuid = new SP.Guid(’{’ + featureId + ‘}’);
var webFeatures = clientContext.get_site().get_features();
if (enable) {
webFeatures.add(featureGuid, true, SP.FeatureDefinitionScope.site);
} else {
webFeatures.remove(featureGuid, false);
}
clientContext.executeQueryAsync(
function() { alert('Success!'); }
, function(sender, args) {
console.log('Fail: ' + args.get_message() + '\n' + args.get_stackTrace());
});
})((function(featureId, enable) {
var clientContext = new SP.ClientContext.get_current();
var featureGuid = new SP.Guid(’{’ + featureId + ‘}’);
var webFeatures = clientContext.get_web().get_features();
if (enable) {
webFeatures.add(featureGuid, true, SP.FeatureDefinitionScope.site);
} else {
webFeatures.remove(featureGuid, false);
}
clientContext.executeQueryAsync(
function() { alert('Success!'); }
, function(sender, args) {
console.log('Fail: ' + args.get_message() + '\n' + args.get_stackTrace());
});
})(‘d7891031-e7f5-4734-8077-9189dd35551c’, true), true);[/code]
The return was:
Fail: Dependency feature 'Plumsail.ActionsPack_Plumsail.ConfigPage' (id: 9a5d1295-65c0-4c8e-a926-968da90d2ef9) for feature 'Plumsail.ActionsPack_Plumsail.ActionsPack' (id: d7891031-e7f5-4734-8077-9189dd35551c) is not activated at this scope.
undefined
What could be wrong? The solution “Plumsail.ActionsPack_Plumsail.ConfigPage” seems to be hidden…
br, Alex