Element 'ram:ClassName' may occur at maximum 1 times.
ram:ClassName occurs more than once in DesignatedProductClassification. The element may occur no more than once.
The rule limits the classification name to one element per DesignatedProductClassification. It prevents repeated name entries within the same classification.
The classification name appears more than once for the product. You can remove the duplicates; the name is optional.
- Locate the affected
DesignatedProductClassification. - Remove duplicate
ram:ClassNameelements so that no more than one remains. - Regenerate the invoice and validate it again.
<ram:DesignatedProductClassification> <ram:ClassName>Nom A</ram:ClassName> <ram:ClassName>Nom B</ram:ClassName> </ram:DesignatedProductClassification>
<ram:DesignatedProductClassification> <ram:ClassName>Nom</ram:ClassName> </ram:DesignatedProductClassification>
Technical details
The test counts the direct ram:ClassName elements of DesignatedProductClassification and permits a count of 0 or 1.
The rule applies to DesignatedProductClassification within the product of an invoice line.
rule/@context)assert/@test)