Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
The value of ram:ReasonCode without a listID attribute is neither empty nor included in the corresponding Factur-X code list. The specified reason code is therefore not allowed.
The reason code describes the reason for the allowance. An allowed code enables standardized transmission of this reason.
The allowance’s reason code is not recognized as an allowed value in the invoice. This check applies to ram:ReasonCode without listID.
- Locate
ram:ReasonCodeon the allowance that has nolistIDattribute. - Check whether its value is included in the applicable code list.
- Generate the invoice again and validate it once more.
Technical details
The test accepts an empty value or a value present in code list 46 in FACTUR-X_EXTENDED_codedb.xml. The context excludes ram:ReasonCode elements with listID.
The rule applies to ram:ReasonCode without a listID attribute on a document-level allowance.
rule/@context)assert/@test)