End customer order identifier

Error FX-SCH-A-000783 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

IssuerAssignedID must occur exactly once in UltimateCustomerOrderReferencedDocument. The element is either missing or appears more than once.

What the rule means

IssuerAssignedID contains the identifier assigned by the issuer to the referenced end customer order document. A single occurrence identifies that document.

Please include the end customer order identifier exactly once

The referenced end customer order document is missing IssuerAssignedID, or the element appears more than once. Providing it once resolves the issue.

What to do
  1. Locate UltimateCustomerOrderReferencedDocument in the agreement between seller and buyer.
  2. Ensure that it contains exactly one IssuerAssignedID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:UltimateCustomerOrderReferencedDocument/>
✓ Correct
<ram:UltimateCustomerOrderReferencedDocument>
  <ram:IssuerAssignedID>ORDER-1</ram:IssuerAssignedID>
</ram:UltimateCustomerOrderReferencedDocument>
Technical details

The test checks whether UltimateCustomerOrderReferencedDocument contains exactly one direct IssuerAssignedID element.

Where the rule applies

The rule applies to the referenced end customer order document in the agreement between seller and buyer.

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