Provide schemeID for the buyer agent’s global identifier

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 buyer agent’s ram:GlobalID element has no schemeID attribute, although this attribute is required in this context.

What the rule means

schemeID identifies the scheme of the global identifier. Without this attribute, the scheme information required in this XML context is missing.

Please add schemeID to the buyer agent’s global identifier

The required schemeID attribute is missing from the buyer agent’s ram:GlobalID. Add it so the identifier specifies its scheme.

What to do
  1. Add the schemeID attribute to the buyer agent’s ram:GlobalID.
  2. Generate the invoice again and validate it once more.
Technical details

The rule checks whether the @schemeID attribute is present on ram:GlobalID; it does not check the value’s validity here.

Where the rule applies

The rule applies to the schemeID attribute of the ram:GlobalID element for the buyer agent.

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