Exactly one issuer-assigned quotation reference

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

The referenced quotation document does not contain exactly one ram:IssuerAssignedID element. The issuer-assigned reference is either missing or occurs more than once.

What the rule means

The issuer-assigned reference identifies the referenced quotation. Exactly one element ensures that the reference is provided unambiguously.

Please provide exactly one issuer-assigned reference for the quotation

The referenced quotation document is missing ram:IssuerAssignedID, or the element occurs more than once. The reference can be stated unambiguously with exactly one such element.

What to do
  1. Locate ram:QuotationReferencedDocument.
  2. Check the ram:IssuerAssignedID elements it contains.
  3. Ensure that exactly one ram:IssuerAssignedID element is present.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:QuotationReferencedDocument>
  <ram:IssuerAssignedID>Q-123</ram:IssuerAssignedID>
  <ram:IssuerAssignedID>Q-456</ram:IssuerAssignedID>
</ram:QuotationReferencedDocument>
✓ Correct
<ram:QuotationReferencedDocument>
  <ram:IssuerAssignedID>Q-123</ram:IssuerAssignedID>
</ram:QuotationReferencedDocument>
Technical details

The rule counts the direct ram:IssuerAssignedID elements in ram:QuotationReferencedDocument and requires the count to be 1.

Where the rule applies

The rule applies to ram:IssuerAssignedID in the quotation document referenced by the agreement.

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