Value of '@unitCode' is not allowed.
The value of @unitCode on ram:PackageQuantity is not included in the code list allowed by this rule. A non-empty value must match an entry in that list.
The unit code identifies the unit of measure for the package quantity. A code that is not allowed may prevent the quantity from being interpreted as intended.
The unit code on ram:PackageQuantity is not recognized as an allowed value. Replace it with a value permitted by the code list.
- Check the value of
@unitCodeonram:PackageQuantity. - Replace any disallowed value with an entry from the applicable code list.
- Regenerate the invoice and validate it again.
<ram:PackageQuantity unitCode="INVALID">1</ram:PackageQuantity>
<ram:PackageQuantity unitCode="C62">1</ram:PackageQuantity>
Technical details
The test accepts an empty value or a value present as @value in the code list with id 15. The error occurs when a non-empty value has no matching entry.
The rule applies to the @unitCode attribute of ram:PackageQuantity in the delivery details of an invoice line.
rule/@context)assert/@test)