Element 'ram:IndustryAssignedID' may occur at maximum 1 times.
ram:IndustryAssignedID occurs more than once in ram:IncludedReferencedProduct. This element may appear no more than once in this scope.
ram:IndustryAssignedID contains an industry-assigned identifier for the referenced product. The rule limits the number of these elements to one at most.
ram:IndustryAssignedID appears more than once in the referenced product. The element may appear no more than once in this section.
- Find
ram:IncludedReferencedProductin the invoice line’s product details. - Check the
ram:IndustryAssignedIDelements inside it and remove any occurrences beyond the first. - Generate the invoice again and validate it once more.
<ram:IncludedReferencedProduct> <ram:IndustryAssignedID>1</ram:IndustryAssignedID> <ram:IndustryAssignedID>2</ram:IndustryAssignedID> </ram:IncludedReferencedProduct>
<ram:IncludedReferencedProduct> <ram:IndustryAssignedID>1</ram:IndustryAssignedID> </ram:IncludedReferencedProduct>
Technical details
The test counts the direct ram:IndustryAssignedID elements in ram:IncludedReferencedProduct and requires no more than one.
The rule applies within ram:IncludedReferencedProduct, which appears in the product details of an invoice line.
rule/@context)assert/@test)