Understanding Markup Compiler Messages

The Windows Ribbon framework (Ribbon) markup compiler, UI Command Compiler (UICC.exe), validates the Ribbon markup against both the Ribbon schema and an additional set of rules defined by the Ribbon framework.

Validation Messages

The following validation messages are generated during compilation. See Compiling Ribbon Markup, for more information.

Note

The /W{0\1\2} command-line option can be specified to filter event messages based on severity.

Validation Errors

Error event messages indicate issues in the Ribbon markup severe enough for the compiler to discontinue the compilation process. These issues must be resolved for compilation to succeed.

Code Name Message Details
SC1000 SCE_CUSTOMTEMPLATE_INVALID_LAYOUT An invalid '[string name]' configuration has been found in the '[string name]' SizeDefinition element. A control in a smaller layout cannot have a size larger than that of the same control in a larger layout. See SizeDefinition.
SC1001 SCE_CUSTOMTEMPLATE_MISSING_CONTROLNAME_FOUND The 'ControlName' property is missing in the '[string name]' SizeDefinition element. When 'ControlNameMap' is specified, all 'ControlSizeDefinition' elements must specify the 'ControlName' property. See SizeDefinition.
SC1002 SCE_CUSTOMTEMPLATE_WRONG_NUMBER_CONTROLS All 'GroupSizeDefinition' elements in the '[string name]' SizeDefinition element must contain the same number of 'ControlSizeDefinition' elements. See SizeDefinition.
SC1003 SCE_CUSTOMTEMPLATE_GENERAL_FAILURE Unable to process custom SizeDefinition. See SizeDefinition.
SC1004 SCE_MINITOOLBAR_ERROR Unable to process MiniToolbar element. See MiniToolbar.
SC1005 SCE_INVALID_CONTEXTUALUI Unable to process ContextPopup element. See ContextPopup.
SC1006 SCE_CONTEXTUALUI_MISSING_CONTEXTMENU ContextMap element references nonexistent ContextMenu element '[string name]'. See ContextMap.
SC1007 SCE_CONTEXTUALUI_MISSING_MINITOOLBAR ContextMap element references nonexistent MiniToolbar element '[string name]'. See ContextMap.
SC1008 SCE_INVALID_CUSTOMIZE_QAT_COMMANDNAME QuickAccessToolbar.CustomizeCommandName property references unknown Command element. See QuickAccessToolbar.
SC1009 SCE_APPLYING_TEMPLATE_FAILED Unable to apply Group.SizeDefinition property '[string name]'. See Group, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1010 SCE_UNKNOWN_TEMPLATE Group.SizeDefinition property refers to unrecognized SizeDefinition '[string name]'. See Group, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1011 SCE_INVALID_GROUP_SEQUENCE_NUMBER Invalid ControlGroup.SequenceNumber value. See ControlGroup.
SC1012 SCE_ELEMENT_CREATION_FAILED Unable to determine mapping of elements for Group to SizeDefinition '[string name]'. See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1013 SCE_CUSTOMTEMPLATE_INVALID_GROUPSIZEDEFINITIONS SizeDefinition contains invalid GroupSizeDefinitions. See GroupSizeDefinition, Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1014 SCE_BAD_MAXSIZE Scale element references unknown Group '[string name]'. See Scale, Group.
SC1015 SCE_INVALID_ELEMENT_MAXSIZE Invalid Scale.Size property '[string name]' specified. Must be one of 'Large', 'Medium', or 'Small'. See Scale.
SC1016 SCE_INVALID_STARTING_VALUE_MAXSIZE Scale.Size property specifies size '[string name]' for Group '[string name]', which is not supported by the SizeDefinition. See Scale, Group, SizeDefinition.
SC1017 SCE_DUPLICATE_MAXSIZE The ScalingPolicy.IdealSizes property contains duplicate Size tags for Group '[string name]'. See ScalingPolicy.IdealSizes, Group.
SC1018 SCE_DUPLICATE_MINITOOLBAR_NAME Duplicate MiniToolbar element name: '[string name]'. See MiniToolbar.
SC1019 SCE_MINITOOLBAR_EXCEEDED_MAX Too many MiniToolbar element definitions. See MiniToolbar.
SC1020 SCE_BAD_SCALE_SIZE Inconsistent ScalingPolicy for Group '[string name]'. Sizes should be less than that specified in IdealSizes. See Scale, Group.
SC1021 SCE_BAD_SIZE_SCALING Scaling for Group '[string name]' has an invalid Size value '[string name]'. See Scale, Group.
SC1022 SCE_BAD_LAYOUT_SIZE Group '[string name]' has a layout size '[string name]' that is not allowed by the SizeDefinition. See Group, SizeDefinition.
SC1023 SCE_SCALING_NOT_DECREASING Inconsistent scaling policy for Group '[string name]'. Sizes should be specified in decreasing order. See ScalingPolicy, Group.
SC1024 SCE_BAD_CHUNK_REF ScalingPolicy property references undefined Group '[string name]'. See ScalingPolicy, Group.
SC1025 SCE_MISSING_CONTROL Group SizeDefinition '[string name]' is missing the required control '[string name]'. See Group, SizeDefinition.
SC1026 SCE_MISSING_CONTROL_CONTENT Control '[string name]' is missing required content. See Controls.
SC1027 SCE_NO_MATCHING_CONTENT_CONTROLREF Group specifies too few controls for SizeDefinition '[string name]'. See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1028 SCE_MISSING_ELEMENT Missing required element '[string name]'. See Markup Elements.
SC1029 SCE_BAD_SEPERATOR_FOUND Separator not allowed. See ColumnBreak.
SC1030 SCE_ELEMENT_CONTROLINFO_DONOT_MATCH Group child element '[string name]' does not match expected format for the SizeDefinition control '[string name]'. See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1031 SCE_TOO_FEW_CONTROLS Group contains too few controls for the chosen SizeDefinition. See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1032 SCE_TOO_MANY_CONTROLS Group contains too many controls for the chosen SizeDefinition. See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1033 SCE_FONTCONTROLS_EXCEEDED_MAX Too many font control definitions. See FontControl.
SC1034 SCE_FONT_CONTROL_ELEMENT_CREATION_FAILED Unable to process FontControl element. See FontControl.
SC1035 SCE_FONT_CONTROL_TEMPLATE_ATTRIBUTE_MISMATCH An optional attribute value is inconsistent with the FontControl.Type property. See FontControl.
SC1036 SCE_APPLICATIONMODE_PROCESSING_FAILURE Failed to parse ApplicationMode property. See Reconfiguring the Ribbon with Application Modes.
SC1037 SCE_APPLICATIONMODE_RESTRICTED ApplicationMode property can only be specified on Tab or Group, or on the left side of the ApplicationMenu, on Button, SplitButton, or DropDownButton. See Reconfiguring the Ribbon with Application Modes.
SC1038 SCE_XAML_SYNTAX_VALIDATION_FAILED The node does not have the correct Ribbon framework XAML syntax. See Markup Elements.
SC1039 SCE_XAML_INCORRECT_COMMANDNAME_USAGE CommandName '[string name]' referenced by two or more incompatible controls. See Command.Name.
SC1040 SCE_XAML_SYNTAX_DUPLICATE_PROPERTY The property '[string name]' is specified more than once. See Markup Elements.
SC1041 SCE_XAML_SYNTAX_MANDATORY_PROPERTY_MISSING Missing required property '[string name]'. See Markup Elements.
SC1042 SCE_XAML_IMAGERESOURCESTRING_TOO_LONG Image source URI for [string name] resource is too long. Recommended path length should be less than MAX_PATH/2.
See Image.
SC1043 SCE_XAML_COMMANDSYMBOL_NOT_UNIQUE Duplicate definition of Command element with Symbol '[string name]'. See Command.Symbol.
SC1044 SCE_XAML_COMMANDID_NOT_UNIQUE Duplicate definition of Command element with Id '[string name]'. See Command.Id.
SC1045 SCE_UNSUPPORTED_CONTROLSTYLE_TYPE Control family '[string name]' does not support controls of type '[string name]'. See SizeDefinition.
SC1046 SCE_WRONG_CONTROL_TYPE Controls of type '[string name]' cannot be used at this location in group SizeDefinition '[string name]'. See SizeDefinition.
SC1047 ERRU_MARKUP_PARSER_FAILED Markup parsing failed. See Compiling Ribbon Markup.
SC1048 ERRU_RIBBON_TAG_NOT_FOUND 'Ribbon' element not found. See Ribbon.
SC1049 ERRU_UIELEMENT_ID_HEADER_FILE_CREATION_FAILED Unable to create header file '[string name]'. See Compiling Ribbon Markup.
SC1050 ERRU_APPLICATION_NAME_TOO_LONG Invalid application name (length greater than [string name] characters). See Compiling Ribbon Markup.
SC1051 ERRU_RIBBON_RESOURCE_FILE_CREATION_FAILED Unable to create resource file '[string name]'. See Compiling Ribbon Markup.
SC1052 ERRU_RIBBON_BINARY_FILE_PATH_TOO_LONG The output file name is too long. Recommended path length should be less than MAX_PATH/2.
See Compiling Ribbon Markup.
SC1053 ERRU_XML_VALIDATION_ERROR_DESCRIPTION [string name] See Markup Elements.
SC1054 ERRU_ID_GENERATION_FAILED Automatic Id generation limit (1000) exceeded. Add a definition for the command '[string name]' inside 'Application.Commands'. See Application.Commands.
SC1055 ERRU_COMMAND_NAME_GENERATION_FAILED Unable to generate a command name for the control. Specify the 'CommandName' property for the control and add a definition for the command inside 'Application.Commands'. See Application.Commands.
SC1056 ERRU_SYMBOL_NAME_TOO_LONG The symbol name is too long. The maximum length is 100 characters.
See Command.Symbol.
SC1057 SCE_ONLY_ONE_FONT_CONTROL_ALLOWED_IN_FLOATIE The minitoolbar can only contain one font control. See MiniToolbar.
SC1058 ERRU_RIBBON_HEADER_FILE_PATH_TOO_LONG The output header file name is too long. Recommended path length should be less than MAX_PATH.
See Compiling Ribbon Markup.
SC1059 ERRU_RIBBON_RESOURCE_FILE_PATH_TOO_LONG The output resource file name is too long. Recommended path length should be less than MAX_PATH.
See Compiling Ribbon Markup.
SC1060 ERRU_COMMAND_ID_GENERATION_FAILED Unable to generate a command Id for the Command. Specify the 'Id' property for the command definition inside 'Application.Commands'. See Command.Id.
SC1061 ERRU_FILE_NOT_FOUND File not found: '[string name]' See Compiling Ribbon Markup.
SC1062 ERRU_INVALID_NAMESPACE Unrecognized root element. Expected: See Application.
SC1063 ERRU_UNIQUE_ID_GENERATION_FAILED Unable to automatically assign unique resource Id. Please specify resource Ids explicitly. See Command.
SC1064 ERRU_NON_IMAGE_RESOURCE_CONTAIN_LIST Duplicate property definition. Properties can be set only once. See Command.
SC1065 ERRU_SPLITBUTTON_BUTTONITEM_NOTFOUND The 'SplitButton' control must contain at least one child control of type 'Button', 'ToggleButton', or 'CheckBox'. The child control may be assigned to the 'ButtonItem' property, or specified as content in a 'MenuGroup' element. See SplitButton, MenuGroup.
SC1066 SCE_ONLY_ONE_FONT_CONTROL_ALLOWED_IN_FLOATIE The MiniToolbar can only contain one font control. See MiniToolbar.
SC1067 SCE_INRIBBONGALLERY_INVALID_LAYOUT_ATTRIBUTES Inconsistent scaling policy for InRibbonGallery. Values for the Columns attributes should be specified in a decreasing order corresponding to 'MaxColumns' >= 'MinColumnsLarge' >= 'MaxColumnsMedium' >= 'MinColumnsMedium'. See InRibbonGallery.
SC1068 SCE_FONTCONTROLS_FONT_SIZE_MIN_GREATER_THAN_MAX MaximumFontSize must be greater than MinimumFontSize. See FontControl.
SC1069 SCE_FONTCONTROLS_FLOATIE_FONT_SIZE_LIMITS_MISMATCH MaximumFontSize and MinimumFontSize values must match for all instances of a font controls group. See FontControl.
SC1070 SCE_FONTCONTROLS_SHOWTRUETYPEONLY_MISMATCH ShowTrueTypeOnly must match for all instances of a font controls group. See FontControl.
SC1071 SCE_FONTCONTROLS_SHOWVERTICALFONTS_MISMATCH ShowVerticalFonts must match for all instances of a font controls group. See FontControl.
SC1100 ERRU_INTERNAL_ERROR An internal error occurred while processing the markup. See Compiling Ribbon Markup.

Validation Warnings

Warning event messages indicate issues in the Ribbon markup may cause the Ribbon to render or function incorrectly.

Code Name Description Details
SC2001 WARNING_COMMAND_NOT_DEFINED Undefined Command on element. See Command.
SC2002 WARNING_MISSING_RIBBON_PROPERTY Undefined property: '[string name]'. Using default value. See Markup Elements.
SC2003 WARNING_DDCP_ATTRIBUTE_USED_IN_WRONG_TEMPLATE The '[string name]' attribute should not be used in the '[string name]' SizeDefinition of the DropDownColorPicker. The attribute is ignored. See DropDownColorPicker, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC2004 WARNING_IMAGE_TYPE_NOT_MATCHING_HIGH_CONTRAST Expecting 4bpp image: '[string name]'. See Specifying Ribbon Image Resources, Command.LargeHighContrastImages, Command.SmallHighContrastImages.
SC2005 WARNING_IMAGE_TYPE_NOT_MATCHING Expecting 32bpp high contrast image: '[string name]'. See Specifying Ribbon Image Resources, Command.LargeHighContrastImages, Command.SmallHighContrastImages.
SC2006 WARNING_XAML_RESID_NOT_UNIQUE Duplicate Id '[string name]' defined for a resource in Command '[string name]'. See Command.
SC2007 WARNING_RC_STRING_TOO_LONG The string for resource '[string name]' is too long to put in the rc file. Strings must be no longer than 4097 characters after substitution of escape sequences. The Maximum allowed length of a stringtable entry in an .rc file.
See Command, Compiling Ribbon Markup.

Information Messages

Information event messages indicate compilation status or issues in the Ribbon markup that do not affect Ribbon functionality.

Code Name Description Details
SC3004 SCI_NO_TEMPLATE_SPECIFIED Group.SizeDefinition property not specified. See Group.
INFO_RIBBON_MARKUP_VALIDATION_SUCCESS Ribbon markup file validation successful: '[string name]'.
INFO_UIELEMENT_HEADER_GENERATION_SUCCESS Header file generation successful: '[string name]'.
INFO_RIBBON_RESOURCE_FILE_GENERATION_SUCCESS Ribbon resource file generation successful: '[string name]'.

Compiling Ribbon Markup

Declaring Commands and Controls with Ribbon Markup