Allowed value for the date format

Error FX-SCH-A-000554 Factur-X

Value of '@format' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The specified value of @format is not included in its designated code list.

What the rule means

The format indicator specifies how the value in udt:DateTimeString is to be interpreted as a date. An unlisted indicator is not allowed for this purpose.

Please use an allowed format for the invoice date

The format indicator on the invoice date is not included in the designated code list. You can use an allowed value or leave the attribute empty.

What to do
  1. Check @format on udt:DateTimeString within ram:IssueDateTime.
  2. Use only a value from the code list applicable to the attribute, or leave the attribute empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value present in the enumeration of code list ID 3 in FACTUR-X_EN16931_codedb.xml.

Where the rule applies

The rule applies to the @format attribute of udt:DateTimeString within ram:IssueDateTime in the document header.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IssueDateTime/udt:DateTimeString
Test expression (assert/@test)
string-length($codeValue3)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=3]/enumeration[@value=$codeValue3]