Issuer-assigned identifier exactly once

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

In the relevant ram:AdditionalReferencedDocument, ram:IssuerAssignedID does not occur exactly once. The element is missing or occurs more than once.

What the rule means

ram:IssuerAssignedID contains the identifier assigned to the referenced document by its issuer. For a document with type code 916, this identifier must be provided exactly once.

Please provide the referenced document’s issuer-assigned identifier

The additional referenced document with type code 916 is missing ram:IssuerAssignedID, or the element occurs more than once. You can resolve this by including the issuer-assigned identifier exactly once.

What to do
  1. Open the relevant ram:AdditionalReferencedDocument.
  2. Make sure it contains ram:IssuerAssignedID exactly once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
</ram:AdditionalReferencedDocument>
✓ Correct
<ram:AdditionalReferencedDocument>
  <ram:IssuerAssignedID>REF-1</ram:IssuerAssignedID>
  <ram:TypeCode>916</ram:TypeCode>
</ram:AdditionalReferencedDocument>
Technical details

The XPath context selects ram:AdditionalReferencedDocument based on ram:TypeCode having the value 916. The test requires exactly one child ram:IssuerAssignedID element.

Where the rule applies

The rule applies to an additional referenced document at document level with ram:TypeCode 916.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode="916"]
Test expression (assert/@test)
count(ram:IssuerAssignedID)=1