Provide the receiving advice reference exactly once

Error FX-SCH-A-000584 Factur-X

Element 'ram:IssuerAssignedID' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:IssuerAssignedID does not occur exactly once in ram:ReceivingAdviceReferencedDocument. The element is either missing or occurs more than once.

What the rule means

The identifier assigned by the issuer identifies the referenced receiving document. Exactly one occurrence ensures that the reference is provided unambiguously.

Please provide the receiving document identifier exactly once

The identifier in ram:ReceivingAdviceReferencedDocument is missing or appears more than once. Providing exactly one ram:IssuerAssignedID will resolve the issue.

What to do
  1. Locate ram:ReceivingAdviceReferencedDocument in the delivery information.
  2. Check that it contains exactly one ram:IssuerAssignedID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ReceivingAdviceReferencedDocument/>
✓ Correct
<ram:ReceivingAdviceReferencedDocument>
  <ram:IssuerAssignedID/>
</ram:ReceivingAdviceReferencedDocument>
Technical details

The Schematron condition checks whether exactly one direct ram:IssuerAssignedID element occurs in the context.

Where the rule applies

The rule applies to the ram:ReceivingAdviceReferencedDocument document in the document-level delivery information.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:ReceivingAdviceReferencedDocument
Test expression (assert/@test)
count(ram:IssuerAssignedID)=1