The buyer agent’s global identifier requires schemeID

Error FX-SCH-A-000656 Factur-X

Attribute '@schemeID' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The schemeID attribute is missing from the buyer agent’s GlobalID element.

What the rule means

The schemeID attribute is required in this context so that the global identifier is provided together with its identification scheme.

Please provide schemeID for the buyer agent’s global identifier

The buyer agent’s global identifier is missing the schemeID attribute. Add this attribute so the identifier includes the required identification scheme.

What to do
  1. Find GlobalID in BuyerAgentTradeParty.
  2. Add the schemeID attribute to the GlobalID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerAgentTradeParty>
  <ram:GlobalID>12345</ram:GlobalID>
</ram:BuyerAgentTradeParty>
✓ Correct
<ram:BuyerAgentTradeParty>
  <ram:GlobalID schemeID="ABC">12345</ram:GlobalID>
</ram:BuyerAgentTradeParty>
Technical details

The test checks whether the schemeID attribute is present on the current element.

Where the rule applies

The rule applies to the GlobalID element of BuyerAgentTradeParty and its schemeID attribute.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:BuyerAgentTradeParty/ram:GlobalID
Test expression (assert/@test)
@schemeID