Provide exactly one issuer-assigned contract identifier

Error FX-SCH-A-000430 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 ContractReferencedDocument is missing IssuerAssignedID or contains it more than once. It must contain exactly one IssuerAssignedID element.

What the rule means

IssuerAssignedID contains the identifier assigned by the issuer to the referenced contract document. Exactly one element provides this identifier unambiguously.

Please provide exactly one issuer-assigned contract identifier

The referenced ContractReferencedDocument does not contain exactly one IssuerAssignedID element. You can resolve this by adjusting the number of these elements.

What to do
  1. Open the ContractReferencedDocument.
  2. Make sure it contains exactly one IssuerAssignedID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ContractReferencedDocument/>
✓ Correct
<ram:ContractReferencedDocument>
  <ram:IssuerAssignedID>...</ram:IssuerAssignedID>
</ram:ContractReferencedDocument>
Technical details

The test counts the direct IssuerAssignedID elements under ContractReferencedDocument and requires the count to equal one.

Where the rule applies

This rule applies to the referenced contract document in ContractReferencedDocument.

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