Scheme identifier required for the seller’s electronic address

Error BR-62 EN 16931

The Seller electronic address (BT-34) 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 ram:URIUniversalCommunication is present for the seller, the first ram:URIID has no non-empty schemeID identifier.

What the rule means

The scheme identifier specifies the identification scheme used for the seller’s electronic address.

Affected fields BT-34
Please add the scheme identifier for the seller’s electronic address

The seller’s electronic address is provided, but its scheme identifier is missing or empty. Add the identifier so the address is associated with a scheme.

What to do
  1. Review ElectronicAddress.ElectronicAddressSchemeID for SellerTradeParty.
  2. Alternatively, review the arguments of SetSellerElectronicAddress(...) and provide the scheme identifier.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SellerTradeParty>
  <ram:URIUniversalCommunication>
    <ram:URIID>seller@example.com</ram:URIID>
  </ram:URIUniversalCommunication>
</ram:SellerTradeParty>
✓ Correct
<ram:SellerTradeParty>
  <ram:URIUniversalCommunication>
    <ram:URIID schemeID="EM">seller@example.com</ram:URIID>
  </ram:URIUniversalCommunication>
</ram:SellerTradeParty>
Check in FactoorSharp
  • ElectronicAddress.ElectronicAddressSchemeID (SellerTradeParty: BT-34)
  • FacturXInvoice.SetSellerElectronicAddress(address, electronicAddressSchemeID) (BT-34)
  • Party.ElectronicAddress (SellerTradeParty: BT-34)
Technical details

The test accepts either a non-empty schemeID on the first ram:URIID or the absence of the seller’s ram:URIUniversalCommunication.

Where the rule applies

The rule applies to the seller’s electronic address in ram:SellerTradeParty/ram:URIUniversalCommunication.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:URIUniversalCommunication[1]/ram:URIID/@schemeID) != '' or not (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTradeParty/ram:URIUniversalCommunication)