Value of '@unitCode' is not allowed.
The value of the @unitCode attribute in ram:BasisQuantity is neither empty nor included in the applicable code list.
The unit code identifies the measurement unit of the quantity basis for the gross price. A code that is not allowed prevents this quantity from being interpreted unambiguously according to the applicable code list.
The quantity basis for the gross price contains a unit code that is not in the applicable code list. You can adjust this entry using an allowed unit code.
- Locate the
ram:BasisQuantityunder the line item'sram:GrossPriceProductTradePrice. - Check the
@unitCodeattribute and use only a code from the allowed code list. - Generate the invoice again and validate it once more.
<ram:BasisQuantity unitCode="INVALID">1</ram:BasisQuantity>
<ram:BasisQuantity unitCode="">1</ram:BasisQuantity>
Technical details
The XPath test accepts an empty value or a value included in code list 8.
The rule applies to the ram:BasisQuantity of a line item's ram:GrossPriceProductTradePrice.
rule/@context)assert/@test)