Value of '@unitCode' is not allowed.
The non-empty value of unitCode on ram:UnitQuantity is not included in the code list used by this rule. An empty value or a value included in the code list passes this check.
The code list limits the permitted units of measure to recognized values; the check also permits an empty attribute value.
The value entered for unitCode on ram:UnitQuantity is not in the permitted code list. Use a value listed there or leave the value empty.
- Locate
ram:UnitQuantityfor the referenced product. - Check the
unitCodeattribute value against the permitted code list. - Replace it with a listed value or clear it.
- Regenerate the invoice and validate it again.
Technical details
The XPath passes when unitCode is empty or its value matches an entry in code list 15.
The rule checks the value of the unitCode attribute on ram:UnitQuantity of a referenced product within an invoice line.
rule/@context)assert/@test)