Scheme identifier for the item standard identifier

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

If GlobalID is provided, its non-empty schemeID attribute is missing.

What the rule means

The scheme identifier specifies which identification scheme the item standard identifier belongs to.

Affected fields BT-157
Please provide the scheme identifier for the item standard identifier

A GlobalID is provided without its schemeID scheme identifier. Add the attribute to the item standard identifier.

What to do
  1. Check the item standard identifier in TradeLineItem.GlobalID.
  2. Add a non-empty schemeID attribute to the XML element ram:GlobalID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeProduct>
  <ram:GlobalID>123</ram:GlobalID>
</ram:SpecifiedTradeProduct>
✓ Correct
<ram:SpecifiedTradeProduct>
  <ram:GlobalID schemeID="0160">123</ram:GlobalID>
</ram:SpecifiedTradeProduct>
Check in FactoorSharp
  • TradeLineItem.GlobalID (BT-157)
Technical details

The test passes if GlobalID/@schemeID is non-empty or if no GlobalID element is present.

Where the rule applies

The rule applies to the item standard identifier SpecifiedTradeProduct/GlobalID within an invoice line.

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