Provide exactly one order reference identifier

Error FX-SCH-A-000572 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 is missing from ram:SellerOrderReferencedDocument or occurs more than once. The element must occur exactly once.

What the rule means

The seller’s order reference contains exactly one identifier assigned by the issuer of the referenced document.

Please provide exactly one identifier for the seller’s order reference

The seller’s order reference is missing the identifier for the referenced document or has it entered more than once. Exactly one ram:IssuerAssignedID element must appear here.

What to do
  1. Find the ram:SellerOrderReferencedDocument element.
  2. Make sure it contains exactly one ram:IssuerAssignedID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SellerOrderReferencedDocument/>
✓ Correct
<ram:SellerOrderReferencedDocument>
  <ram:IssuerAssignedID>PO-123</ram:IssuerAssignedID>
</ram:SellerOrderReferencedDocument>
Technical details

The test counts the direct ram:IssuerAssignedID elements in ram:SellerOrderReferencedDocument and requires exactly one.

Where the rule applies

The rule applies to ram:SellerOrderReferencedDocument in the agreement details of the seller section.

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