SPC015706: Deploy missing file in CommandUIHandler for CustomAction

If a CustomAction references a file in ribbon CommandUIHandler (e.g. a page) the file must be deployed.

TypeName: DeployMissingRibbonCommandUIHandlerOfCustomAction
CheckId: SPC015706
Severity: Error
Type: CustomActionDefinition
Resolution

Add the necessary file to the solution as TemplateFile. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <CustomAction Id="Ribbon.Library.Actions.ReplacementButton"
      Location="CommandUI.Ribbon"
      RegistrationId="101"
      RegistrationType="List"
      Title="Replace a Ribbon Button">
      <CommandUIExtension>
         <CommandUIDefinitions>
            <CommandUIDefinition Location="Ribbon.Library.Actions.ConnectToClient">
            ...
            </CommandUIDefinition>
         </CommandUIDefinitions>
         <CommandUIHandlers>
            <CommandUIHandler Command="CommandSettings" CommandAction="~site/_layouts/Action.aspx?List={ListId}" />
         </CommandUIHandlers>
         ...
      </CommandUIExtension>
   </CustomAction>
</Elements>

comments powered by Disqus