Provide the product end user’s ram:Name

Error FX-SCH-A-000709 Factur-X

Element 'ram:Name' 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:Name is missing from ram:ProductEndUserTradeParty or occurs more than once. Exactly one ram:Name is required.

What the rule means

ram:Name identifies the product end user. This required entry allows the party to be named in the invoice structure.

Please provide the product end user’s name

ram:Name may be missing for the product end user, or the element may have been entered more than once. This party element requires exactly one name.

What to do
  1. Find the relevant ram:ProductEndUserTradeParty.
  2. Add one ram:Name there, or remove any extra ram:Name elements.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:ProductEndUserTradeParty/>
✓ Correct
<ram:ProductEndUserTradeParty>
  <ram:Name>Example</ram:Name>
</ram:ProductEndUserTradeParty>
Technical details

The test requires exactly one direct ram:Name element in the current ram:ProductEndUserTradeParty.

Where the rule applies

The rule applies to the name within ram:ProductEndUserTradeParty in the invoice agreement.

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