Item identifier requires a scheme

Error BR-64 EN 16931

The Item standard identifier (BT-157) shall have a Scheme identifier.

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

When ram:GlobalID is present in the item, it has no non-empty schemeID. This error does not occur when ram:GlobalID is absent.

What the rule means

The item’s standard identifier needs a scheme identifier so that its value can be associated with an identification scheme.

Affected fields BT-157
Please add the scheme to the item identifier

The global item identifier is present, but its scheme identifier is missing or empty. You can resolve this by providing a non-empty schemeID for the identifier.

What to do
  1. Check the item identifier GlobalID.
  2. Provide a non-empty schemeID for it.
  3. Check the mapping in TradeLineItem.GlobalID.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeProduct>
  <ram:GlobalID>12345</ram:GlobalID>
</ram:SpecifiedTradeProduct>
✓ Correct
<ram:SpecifiedTradeProduct>
  <ram:GlobalID schemeID="X">12345</ram:GlobalID>
</ram:SpecifiedTradeProduct>
Check in FactoorSharp
  • TradeLineItem.GlobalID (BT-157)
Technical details

The test allows ram:GlobalID to be absent or requires the element to have a non-empty schemeID attribute.

Where the rule applies

The rule applies to the global item identifier ram:GlobalID within the item in the invoice line ram:IncludedSupplyChainTradeLineItem.

Context (rule/@context)
//ram:IncludedSupplyChainTradeLineItem
Test expression (assert/@test)
ram:SpecifiedTradeProduct/ram:GlobalID/@schemeID!='' or not (ram:SpecifiedTradeProduct/ram:GlobalID)