Missing issuer identifier for the receiving advice

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

ram:IssuerAssignedID does not occur exactly once within ram:ReceivingAdviceReferencedDocument. The element must be present there exactly once.

What the rule means

ram:IssuerAssignedID contains the identifier assigned by the issuer to the referenced receiving advice. Without exactly one such element, the reference is structurally incomplete.

Please include exactly one issuer identifier for the receiving advice

ram:IssuerAssignedID is missing from the referenced receiving advice or appears more than once. The structure can be completed by including this element exactly once.

What to do
  1. Find ram:ReceivingAdviceReferencedDocument in the delivery section.
  2. Make sure ram:IssuerAssignedID occurs exactly once within it.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ReceivingAdviceReferencedDocument/>
✓ Correct
<ram:ReceivingAdviceReferencedDocument>
  <ram:IssuerAssignedID/>
</ram:ReceivingAdviceReferencedDocument>
Technical details

The XPath test counts the direct ram:IssuerAssignedID elements under ram:ReceivingAdviceReferencedDocument and requires the count to be 1.

Where the rule applies

The rule applies to ram:ReceivingAdviceReferencedDocument in the delivery section.

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