cvc-totaldigits-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-totalDigits-valid: Value ''{0}'' has {1} total digits, but the number of total digits has been limited to {2}.

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

Possible causes for this error:

  • Element value has too many digits.

An example

<XchgRateInf>
  <XchgRate>11113.1415926535</XchgRate>
</XchgRateInf>

Error message: Error cvc-totalDigits-valid: Value '11113.1415926535' has 15 total digits, but the number of total digits has been limited to 11.

How to fix: This issue can be fixed by limiting the number of digits to 11.

<XchgRateInf>
  <XchgRate>11113.141592</XchgRate>
</XchgRateInf>