Element 'ram:UnitQuantity' may occur at maximum 1 times.
ram:IncludedReferencedProduct contains more than one ram:UnitQuantity element. In this context, the element may occur at most once.
The quantity for the referenced product must not be repeated in this XML context.
ram:UnitQuantity is entered more than once for the referenced product. You can resolve this by removing the duplicate quantity entry.
- Locate
ram:IncludedReferencedProductin the invoice-line product. - Remove any extra
ram:UnitQuantityelements there. - Regenerate the invoice and validate it again.
<ram:IncludedReferencedProduct> <ram:UnitQuantity/> <ram:UnitQuantity/> </ram:IncludedReferencedProduct>
<ram:IncludedReferencedProduct> <ram:UnitQuantity/> </ram:IncludedReferencedProduct>
Technical details
The check counts the direct ram:UnitQuantity children of ram:IncludedReferencedProduct and passes when their number is at most one.
The rule applies to ram:IncludedReferencedProduct within an invoice-line product.
rule/@context)assert/@test)