# VF-1122

Source: https://xmlvalid.com/rules/VF-1122

> El campo CodigoPais indicado no coincide con los dos primeros dígitos del identificador (…, …).

- Level: error
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Test: `$otype != '02' or $ocountry = '' or substring($oid, 1, 2) = (if ($ocountry = 'GR') then 'EL' else if ($ocountry = 'GB') then ('GB', 'XI') else $ocountry)`

In English: CodigoPais doesn't match the first two characters of the EU VAT number (Greece is GR with the prefix EL; for Northern Ireland GB may go with XI).

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