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.

CodeNameMessageDetails
SC1000SCE_CUSTOMTEMPLATE_INVALID_LAYOUTAn 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.
SC1001SCE_CUSTOMTEMPLATE_MISSING_CONTROLNAME_FOUNDThe 'ControlName' property is missing in the '[string name]' SizeDefinition element. When 'ControlNameMap' is specified, all 'ControlSizeDefinition' elements must specify the 'ControlName' property.See SizeDefinition.
SC1002SCE_CUSTOMTEMPLATE_WRONG_NUMBER_CONTROLSAll 'GroupSizeDefinition' elements in the '[string name]' SizeDefinition element must contain the same number of 'ControlSizeDefinition' elements.See SizeDefinition.
SC1003SCE_CUSTOMTEMPLATE_GENERAL_FAILUREUnable to process custom SizeDefinition.See SizeDefinition.
SC1004SCE_MINITOOLBAR_ERRORUnable to process MiniToolbar element.See MiniToolbar.
SC1005SCE_INVALID_CONTEXTUALUIUnable to process ContextPopup element.See ContextPopup.
SC1006SCE_CONTEXTUALUI_MISSING_CONTEXTMENUContextMap element references nonexistent ContextMenu element '[string name]'.See ContextMap.
SC1007SCE_CONTEXTUALUI_MISSING_MINITOOLBARContextMap element references nonexistent MiniToolbar element '[string name]'.See ContextMap.
SC1008SCE_INVALID_CUSTOMIZE_QAT_COMMANDNAMEQuickAccessToolbar.CustomizeCommandName property references unknown Command element.See QuickAccessToolbar.
SC1009SCE_APPLYING_TEMPLATE_FAILEDUnable to apply Group.SizeDefinition property '[string name]'.See Group, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1010SCE_UNKNOWN_TEMPLATEGroup.SizeDefinition property refers to unrecognized SizeDefinition '[string name]'.See Group, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1011SCE_INVALID_GROUP_SEQUENCE_NUMBERInvalid ControlGroup.SequenceNumber value.See ControlGroup.
SC1012SCE_ELEMENT_CREATION_FAILEDUnable to determine mapping of elements for Group to SizeDefinition '[string name]'.See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1013SCE_CUSTOMTEMPLATE_INVALID_GROUPSIZEDEFINITIONSSizeDefinition contains invalid GroupSizeDefinitions.See GroupSizeDefinition, Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1014SCE_BAD_MAXSIZEScale element references unknown Group '[string name]'.See Scale, Group.
SC1015SCE_INVALID_ELEMENT_MAXSIZEInvalid Scale.Size property '[string name]' specified. Must be one of 'Large', 'Medium', or 'Small'.See Scale.
SC1016SCE_INVALID_STARTING_VALUE_MAXSIZEScale.Size property specifies size '[string name]' for Group '[string name]', which is not supported by the SizeDefinition.See Scale, Group, SizeDefinition.
SC1017SCE_DUPLICATE_MAXSIZEThe ScalingPolicy.IdealSizes property contains duplicate Size tags for Group '[string name]'.See ScalingPolicy.IdealSizes, Group.
SC1018SCE_DUPLICATE_MINITOOLBAR_NAMEDuplicate MiniToolbar element name: '[string name]'.See MiniToolbar.
SC1019SCE_MINITOOLBAR_EXCEEDED_MAXToo many MiniToolbar element definitions.See MiniToolbar.
SC1020SCE_BAD_SCALE_SIZEInconsistent ScalingPolicy for Group '[string name]'. Sizes should be less than that specified in IdealSizes.See Scale, Group.
SC1021SCE_BAD_SIZE_SCALINGScaling for Group '[string name]' has an invalid Size value '[string name]'.See Scale, Group.
SC1022SCE_BAD_LAYOUT_SIZEGroup '[string name]' has a layout size '[string name]' that is not allowed by the SizeDefinition.See Group, SizeDefinition.
SC1023SCE_SCALING_NOT_DECREASINGInconsistent scaling policy for Group '[string name]'. Sizes should be specified in decreasing order.See ScalingPolicy, Group.
SC1024SCE_BAD_CHUNK_REFScalingPolicy property references undefined Group '[string name]'.See ScalingPolicy, Group.
SC1025SCE_MISSING_CONTROLGroup SizeDefinition '[string name]' is missing the required control '[string name]'.See Group, SizeDefinition.
SC1026SCE_MISSING_CONTROL_CONTENTControl '[string name]' is missing required content.See Controls.
SC1027SCE_NO_MATCHING_CONTENT_CONTROLREFGroup specifies too few controls for SizeDefinition '[string name]'.See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1028SCE_MISSING_ELEMENTMissing required element '[string name]'.See Markup Elements.
SC1029SCE_BAD_SEPERATOR_FOUNDSeparator not allowed.See ColumnBreak.
SC1030SCE_ELEMENT_CONTROLINFO_DONOT_MATCHGroup 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.
SC1031SCE_TOO_FEW_CONTROLSGroup contains too few controls for the chosen SizeDefinition.See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1032SCE_TOO_MANY_CONTROLSGroup contains too many controls for the chosen SizeDefinition.See Group, SizeDefinition, Customizing a Ribbon Through Size Definitions and Scaling Policies.
SC1033SCE_FONTCONTROLS_EXCEEDED_MAXToo many font control definitions.See FontControl.
SC1034SCE_FONT_CONTROL_ELEMENT_CREATION_FAILEDUnable to process FontControl element.See FontControl.
SC1035SCE_FONT_CONTROL_TEMPLATE_ATTRIBUTE_MISMATCHAn optional attribute value is inconsistent with the FontControl.Type property.See FontControl.
SC1036SCE_APPLICATIONMODE_PROCESSING_FAILUREFailed to parse ApplicationMode property.See Reconfiguring the Ribbon with Application Modes.
SC1037SCE_APPLICATIONMODE_RESTRICTEDApplicationMode 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.
SC1038SCE_XAML_SYNTAX_VALIDATION_FAILEDThe node does not have the correct Ribbon framework XAML syntax.See Markup Elements.
SC1039SCE_XAML_INCORRECT_COMMANDNAME_USAGECommandName '[string name]' referenced by two or more incompatible controls.See Command.Name.
SC1040SCE_XAML_SYNTAX_DUPLICATE_PROPERTYThe property '[string name]' is specified more than once.See Markup Elements.
SC1041SCE_XAML_SYNTAX_MANDATORY_PROPERTY_MISSINGMissing required property '[string name]'.See Markup Elements.
SC1042SCE_XAML_IMAGERESOURCESTRING_TOO_LONGImage source URI for [string name] resource is too long.

Recommended path length should be less than MAX_PATH/2.

See Image.
SC1043SCE_XAML_COMMANDSYMBOL_NOT_UNIQUEDuplicate definition of Command element with Symbol '[string name]'.See Command.Symbol.
SC1044SCE_XAML_COMMANDID_NOT_UNIQUEDuplicate definition of Command element with Id '[string name]'.See Command.Id.
SC1045SCE_UNSUPPORTED_CONTROLSTYLE_TYPEControl family '[string name]' does not support controls of type '[string name]'.See SizeDefinition.
SC1046SCE_WRONG_CONTROL_TYPEControls of type '[string name]' cannot be used at this location in group SizeDefinition '[string name]'.See SizeDefinition.
SC1047ERRU_MARKUP_PARSER_FAILEDMarkup parsing failed.See Compiling Ribbon Markup.
SC1048ERRU_RIBBON_TAG_NOT_FOUND'Ribbon' element not found.See Ribbon.
SC1049ERRU_UIELEMENT_ID_HEADER_FILE_CREATION_FAILEDUnable to create header file '[string name]'.See Compiling Ribbon Markup.
SC1050ERRU_APPLICATION_NAME_TOO_LONGInvalid application name (length greater than [string name] characters).See Compiling Ribbon Markup.
SC1051ERRU_RIBBON_RESOURCE_FILE_CREATION_FAILEDUnable to create resource file '[string name]'.See Compiling Ribbon Markup.
SC1052ERRU_RIBBON_BINARY_FILE_PATH_TOO_LONGThe output file name is too long.

Recommended path length should be less than MAX_PATH/2.

See Compiling Ribbon Markup.
SC1053ERRU_XML_VALIDATION_ERROR_DESCRIPTION[string name]See Markup Elements.
SC1054ERRU_ID_GENERATION_FAILEDAutomatic Id generation limit (1000) exceeded. Add a definition for the command '[string name]' inside 'Application.Commands'.See Application.Commands.
SC1055ERRU_COMMAND_NAME_GENERATION_FAILEDUnable 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.
SC1056ERRU_SYMBOL_NAME_TOO_LONGThe symbol name is too long.

The maximum length is 100 characters.

See Command.Symbol.
SC1057SCE_ONLY_ONE_FONT_CONTROL_ALLOWED_IN_FLOATIEThe minitoolbar can only contain one font control.See MiniToolbar.
SC1058ERRU_RIBBON_HEADER_FILE_PATH_TOO_LONGThe output header file name is too long.

Recommended path length should be less than MAX_PATH.

See Compiling Ribbon Markup.
SC1059ERRU_RIBBON_RESOURCE_FILE_PATH_TOO_LONGThe output resource file name is too long.

Recommended path length should be less than MAX_PATH.

See Compiling Ribbon Markup.
SC1060ERRU_COMMAND_ID_GENERATION_FAILEDUnable to generate a command Id for the Command. Specify the 'Id' property for the command definition inside 'Application.Commands'.See Command.Id.
SC1061ERRU_FILE_NOT_FOUNDFile not found: '[string name]'See Compiling Ribbon Markup.
SC1062ERRU_INVALID_NAMESPACEUnrecognized root element. Expected: <Application xmlns="http://schemas.microsoft.com/windows/2009/Ribbon">See Application.
SC1063ERRU_UNIQUE_ID_GENERATION_FAILEDUnable to automatically assign unique resource Id. Please specify resource Ids explicitly.See Command.
SC1064ERRU_NON_IMAGE_RESOURCE_CONTAIN_LISTDuplicate property definition. Properties can be set only once.See Command.
SC1065ERRU_SPLITBUTTON_BUTTONITEM_NOTFOUNDThe '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.
SC1066SCE_ONLY_ONE_FONT_CONTROL_ALLOWED_IN_FLOATIEThe MiniToolbar can only contain one font control.See MiniToolbar.
SC1067SCE_INRIBBONGALLERY_INVALID_LAYOUT_ATTRIBUTESInconsistent scaling policy for InRibbonGallery. Values for the Columns attributes should be specified in a decreasing order corresponding to 'MaxColumns' >= 'MinColumnsLarge' >= 'MaxColumnsMedium' >= 'MinColumnsMedium'.See InRibbonGallery.
SC1068SCE_FONTCONTROLS_FONT_SIZE_MIN_GREATER_THAN_MAXMaximumFontSize must be greater than MinimumFontSize.See FontControl.
SC1069SCE_FONTCONTROLS_FLOATIE_FONT_SIZE_LIMITS_MISMATCHMaximumFontSize and MinimumFontSize values must match for all instances of a font controls group.See FontControl.
SC1070SCE_FONTCONTROLS_SHOWTRUETYPEONLY_MISMATCHShowTrueTypeOnly must match for all instances of a font controls group.See FontControl.
SC1071SCE_FONTCONTROLS_SHOWVERTICALFONTS_MISMATCHShowVerticalFonts must match for all instances of a font controls group.See FontControl.
SC1100ERRU_INTERNAL_ERRORAn 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.

CodeNameDescriptionDetails
SC2001WARNING_COMMAND_NOT_DEFINEDUndefined Command on element.See Command.
SC2002WARNING_MISSING_RIBBON_PROPERTYUndefined property: '[string name]'. Using default value.See Markup Elements.
SC2003WARNING_DDCP_ATTRIBUTE_USED_IN_WRONG_TEMPLATEThe '[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.
SC2004WARNING_IMAGE_TYPE_NOT_MATCHING_HIGH_CONTRASTExpecting 4bpp image: '[string name]'.See Specifying Ribbon Image Resources, Command.LargeHighContrastImages, Command.SmallHighContrastImages.
SC2005WARNING_IMAGE_TYPE_NOT_MATCHINGExpecting 32bpp high contrast image: '[string name]'.See Specifying Ribbon Image Resources, Command.LargeHighContrastImages, Command.SmallHighContrastImages.
SC2006WARNING_XAML_RESID_NOT_UNIQUEDuplicate Id '[string name]' defined for a resource in Command '[string name]'.See Command.
SC2007WARNING_RC_STRING_TOO_LONGThe 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.

CodeNameDescriptionDetails
SC3004SCI_NO_TEMPLATE_SPECIFIEDGroup.SizeDefinition property not specified.See Group.
INFO_RIBBON_MARKUP_VALIDATION_SUCCESSRibbon markup file validation successful: '[string name]'.
INFO_UIELEMENT_HEADER_GENERATION_SUCCESSHeader file generation successful: '[string name]'.
INFO_RIBBON_RESOURCE_FILE_GENERATION_SUCCESSRibbon resource file generation successful: '[string name]'.

 

Related topics

Compiling Ribbon Markup
Declaring Commands and Controls with Ribbon Markup

 

 

Community Additions

ADD
Show:
© 2014 Microsoft