Element 'ram:ID' must occur exactly 1 times.
ram:ID is missing from SpecifiedLegalOrganization or occurs more than once. It must occur exactly once.
The ID identifies the buyer’s legal organization. Having exactly one ID gives this information an unambiguous structure.
The buyer’s legal organization has no ID or has more than one. You can resolve this by providing exactly one ram:ID element.
- Find
SpecifiedLegalOrganizationin the buyer details. - Check that it contains exactly one
ram:IDelement. - Generate the invoice again and validate it once more.
<ram:SpecifiedLegalOrganization/>
<ram:SpecifiedLegalOrganization> <ram:ID>ORG-123</ram:ID> </ram:SpecifiedLegalOrganization>
Technical details
The rule counts the direct ram:ID elements in SpecifiedLegalOrganization and requires a count of 1.
The rule applies to SpecifiedLegalOrganization within the buyer details.
rule/@context)assert/@test)