Exactly one ram:Name for ProductEndUserTradeParty

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. The element must appear there exactly once.

What the rule means

The name is a required part of the XML information for ProductEndUserTradeParty. An absent or repeated value does not meet the defined structure.

Please provide exactly one `ram:Name` for `ProductEndUserTradeParty`

The invoice is missing the name of ProductEndUserTradeParty, or it contains the name more than once. Providing exactly one ram:Name resolves this issue.

What to do
  1. Locate ram:Name within ram:ProductEndUserTradeParty.
  2. Ensure that this element occurs exactly once.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ProductEndUserTradeParty/>
✓ Correct
<ram:ProductEndUserTradeParty>
  <ram:Name>Beispiel</ram:Name>
</ram:ProductEndUserTradeParty>
Technical details

The check verifies that the number of direct ram:Name elements in the rule context is exactly one.

Where the rule applies

The rule applies to ram:Name within the header agreement’s ram:ProductEndUserTradeParty element.

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