Seller order issuer 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:SellerOrderReferencedDocument must contain exactly one ram:IssuerAssignedID element. The element is either missing or occurs more than once.

What the rule means

ram:IssuerAssignedID contains the identifier assigned by the issuer to the referenced seller order. Exactly one value ensures that the reference is stated unambiguously.

Please provide exactly one identifier for the seller order

The seller order reference is missing ram:IssuerAssignedID, or the element occurs more than once. Exactly one such element states the order reference unambiguously.

What to do
  1. Check ram:SellerOrderReferencedDocument in the invoice header’s agreement information.
  2. Make sure it contains exactly one ram:IssuerAssignedID.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SellerOrderReferencedDocument/>
✓ Correct
<ram:SellerOrderReferencedDocument>
  <ram:IssuerAssignedID>PO-123</ram:IssuerAssignedID>
</ram:SellerOrderReferencedDocument>
Technical details

The Schematron check requires the number of direct ram:IssuerAssignedID child elements of ram:SellerOrderReferencedDocument to be exactly 1.

Where the rule applies

The rule applies to ram:SellerOrderReferencedDocument in the agreement information of the invoice header.

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