Element 'ram:IssuerAssignedID' must occur exactly 1 times.
In the relevant ram:AdditionalReferencedDocument, ram:IssuerAssignedID does not occur exactly once. The element is missing or occurs more than once.
ram:IssuerAssignedID contains the identifier assigned to the referenced document by its issuer. For a document with type code 50, this identifier must be provided exactly once.
The additional referenced document with type code 50 is missing ram:IssuerAssignedID, or the element occurs more than once. You can resolve this by including the issuer-assigned identifier exactly once.
- Open the relevant
ram:AdditionalReferencedDocument. - Make sure it contains
ram:IssuerAssignedIDexactly once. - Regenerate the invoice and validate it again.
<ram:AdditionalReferencedDocument> <ram:TypeCode>50</ram:TypeCode> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:IssuerAssignedID>REF-1</ram:IssuerAssignedID> <ram:TypeCode>50</ram:TypeCode> </ram:AdditionalReferencedDocument>
Technical details
The XPath context selects ram:AdditionalReferencedDocument based on ram:TypeCode having the value 50. The test requires exactly one child ram:IssuerAssignedID element.
The rule applies to an additional referenced document at document level with ram:TypeCode 50.
rule/@context)assert/@test)