Referenced document identifier

Error FX-SCH-A-000958 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 document is missing ram:IssuerAssignedID, or the element occurs more than once. It must occur exactly once in this context.

What the rule means

ram:IssuerAssignedID contains the identifier assigned to the referenced document by its issuer. It allows the advance payment to be associated with that document.

Please add the identifier of the referenced document

The advance payment is missing the identifier of the referenced document, or the identifier is included more than once. It can be recorded once in the document reference.

What to do
  1. Open ram:InvoiceSpecifiedReferencedDocument for the advance payment.
  2. Make sure ram:IssuerAssignedID occurs there exactly once.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:InvoiceSpecifiedReferencedDocument/>
✓ Correct
<ram:InvoiceSpecifiedReferencedDocument>
  <ram:IssuerAssignedID>REF-1</ram:IssuerAssignedID>
</ram:InvoiceSpecifiedReferencedDocument>
Technical details

The XPath test requires ram:IssuerAssignedID to occur exactly once directly under ram:InvoiceSpecifiedReferencedDocument.

Where the rule applies

The rule applies to ram:InvoiceSpecifiedReferencedDocument within an advance payment in the invoice settlement.

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