Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
The value of ram:ReasonCode is not empty and is not allowed by the code list applicable when the element has no listID. An empty value passes this check.
The reason code describes why the charge is applied. Without a listID, its value must still match the code list intended for this context.
The charge’s reason code without a list identifier is not included in the code list allowed for this context. You can adjust the value or leave the element empty.
- Find the
ram:ReasonCodeelement withoutlistIDin the charge. - Compare its value with the codes allowed for this context.
- Adjust the value or leave
ram:ReasonCodeempty. - Generate the invoice again and validate it.
Technical details
The XPath allows an empty ram:ReasonCode or requires its value to occur in the code list identified by 46; the context restricts the rule to elements without listID.
The rule applies to ram:ReasonCode without a listID attribute within a document-level ram:SpecifiedTradeAllowanceCharge marked as a charge.
rule/@context)assert/@test)