Exactly one IssuerAssignedID for the referenced document

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

QuotationReferencedDocument does not contain exactly one IssuerAssignedID element. The element is either missing or occurs more than once.

What the rule means

IssuerAssignedID contains the identifier assigned by the issuer to the referenced quotation document.

Please provide exactly one issuer ID for the referenced quotation

QuotationReferencedDocument is missing an IssuerAssignedID or contains it more than once. You can adjust the entries so that exactly one IssuerAssignedID element is present.

What to do
  1. Find QuotationReferencedDocument under ApplicableHeaderTradeAgreement.
  2. Ensure that it contains exactly one IssuerAssignedID element.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:QuotationReferencedDocument/>
✓ Correct
<ram:QuotationReferencedDocument>
  <ram:IssuerAssignedID>Q-123</ram:IssuerAssignedID>
</ram:QuotationReferencedDocument>
Technical details

The Schematron test counts the direct ram:IssuerAssignedID child elements of ram:QuotationReferencedDocument and requires exactly one.

Where the rule applies

The rule applies to QuotationReferencedDocument in the end user's agreement under ApplicableHeaderTradeAgreement.

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