# DT-CIUS-PT-047.2

Source: https://xmlvalid.com/rules/DT-CIUS-PT-047.2

> The BT-49 identification scheme identifier does not meet the defined format: alphanumeric with size between 1 and 20.

- Level: error
- Rule sets: CIUS-PT rules (Portugal, UBL) 2.1.1
- Context: `//ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID | //cn:CreditNote/cac:AccountingCustomerParty/cac:Party/cbc:EndpointID`
- Test: `(exists(@schemeID) and not(matches(@schemeID,'^(.{1,20})$')))`

Validate a document against these rules: https://xmlvalid.com/validate
