cvc-maxlength-valid

Notice! This page describes the nature of the error using a hypothetical example and not the erroneous data of the input test file. You should however be able to apply this information to your error case.

General description of the error:

The format of the error message: cvc-maxLength-valid: Value ''{0}'' with length = ''{1}'' is not facet-valid with respect to maxLength ''{2}'' for type ''{3}''.

Error description in schema standard: http://www.w3.org/TR/2006/WD-xmlschema11-2-20060217/datatypes.html#cvc-maxLength-valid

Possible causes for this error:

  • Length of the element value exceeds the maximum length which is defined for the element.

An example

<MsgId>123456789012345678901234567890123456</MsgId>

Error message: Error cvc-maxLength-valid: Value '123456789012345678901234567890123456' with length = '36' is not facet-valid with respect to maxLength '35' for type 'Max35Text'.

How to fix: The reason for this error can be found out by examining the definition of 'Max35Text' from the schema definition and fixing the value of 'MsgId' to be valid against the definition. In this example the value of 'MsgId' must be defined with maximum of 35 characters:

<MsgId>12345678901234567890123456789012345</MsgId>