Error Creating a new Custom Action

May 8, 2013 at 1:07 PM
I received the following error from the current release (as of 05/08/2013) creating a custom action

Steps:
1) SPSF Artefacts -> Custom Actions and Ribbons -> Custom Action Group

2) Provide Name for CA GROUP -> Press OK

3) New Parent Feature, Used Defaults for Name/Title/Description, Scope = Farm and selected Create Feature Receiver

4) Used Default Title,Description, Ensured Sequence was 100, Set Location to Microsoft.SharePoint.Administration.ApplicationManagement (Microsoft.SharePoint.Administration.ApplicationManagement)

5) Pressed Finish

Error:

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe CustomActionGroup. Error was: Action CreateElementsXml failed to execute:
Feature CTP_FBA_ADLDSConfiguration not found. Could not add feature to package..
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.Exception: Feature CTP_FBA_ADLDSConfiguration not found. Could not add feature to package.
at SPALM.SPSF.Library.Helpers2.AddVSElementToVSFeature(DTE dte, Project project, ProjectItem elementFolder, String evaluatedParentFeatureName)
at SPALM.SPSF.Library.Actions.AddElementsDefinitionAction.AddElementsDefinitionToVSTemplate(DTE dte, Project project, String evaluatedParentFeatureName, String evaluatedSPDataTemplate, String evaluatedElementsTemplate, String evaluatedElementsCategory, String evaluatedElementsName, String evaluatedTargetFileName)
at SPALM.SPSF.Library.Actions.AddElementsDefinitionAction.Execute()
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary2 inputValues)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName)
at SPALM.SPSF.Library.Coordinators.ConditionalCoordinator.Run(Dictionary
2 declaredActions, XmlElement coordinationData)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
--- End of inner exception stack trace ---
at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.GuidancePackage.ExecuteFromTemplate(String recipe, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.ExecuteRecipe(Boolean executeActions)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunFinished()
May 8, 2013 at 1:23 PM
The list of custom actions is also not updated for 2010/2013. It defaults to adding the CA to Microsoft.SharePoint.Administration.ApplicationManagement.
Coordinator
May 9, 2013 at 9:30 PM
Thx for reporting the issue and the detailed steps to reproduce.
I will look into it to fix it in the next release.
BTW, don't hesitate to add such issues directly to the issue tracker.

Best Regards

Matthias
Coordinator
May 9, 2013 at 9:31 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
May 27, 2013 at 9:44 AM
See temporay fix in the associated work item.
Will be fixed in the next version.