Element 'ram:Name' must occur exactly 1 times.
ram:Name is missing from SpecifiedTradeProduct or occurs more than once. Exactly one ram:Name must be present.
The product name identifies the product described by the invoice line. The rule requires exactly one name for each SpecifiedTradeProduct.
The invoice-line product is missing its name, or the name appears more than once. Having exactly one name resolves this issue.
- Open the affected
SpecifiedTradeProduct. - Make sure it contains exactly one
ram:Name. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeProduct/>
<ram:SpecifiedTradeProduct> <ram:Name>Produit</ram:Name> </ram:SpecifiedTradeProduct>
Technical details
The test counts the direct ram:Name elements of SpecifiedTradeProduct and requires the count to be exactly 1.
The rule applies to the invoice-line product SpecifiedTradeProduct.
rule/@context)assert/@test)