Finding codes¶
Every problem pyxaf notices is reported as a Finding with a stable code
XAF<nnnn>. The first digit groups the codes; the validation layer that produces
them is noted per group (see Validation). The severity
shown is the default: the validator may adjust it for the detected version (for
example, unknown elements are only a warning for the derived XAF 3.0/3.1
catalogues), and severity_overrides= changes or silences any code.
Codes of the official XAF 4.0 consistency rules end in the rule number: rule [0009] is
XAF5009. The same list is available offline with pyxaf codes or pyxaf.CODES.
88 codes: 43 ERROR, 35 WARNING, 10 INFO.
1xxx — Input container and character encoding¶
Layer: L1.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF1001 |
INFO | Byte-order mark present | |
XAF1002 |
WARNING | No XML declaration; encoding assumed to be UTF-8 | |
XAF1003 |
ERROR | Encoding not allowed by the specification | |
XAF1004 |
INFO | Encoding overridden by the caller | |
XAF1005 |
WARNING | Declared ISO-8859-1 but contains windows-1252 characters | |
XAF1006 |
WARNING | Undecodable bytes replaced | |
XAF1010 |
WARNING | Repair: XML-illegal control characters removed | |
XAF1011 |
WARNING | Repair: ISO-8859-1 decoded as windows-1252 | |
XAF1012 |
WARNING | Repair: bare ampersands escaped | |
XAF1013 |
WARNING | Repair: trailing garbage after the document removed | |
XAF1020 |
INFO | Compressed container | |
XAF1021 |
ERROR | Corrupt or truncated compressed container |
2xxx — XML well-formedness and security¶
Layer: L2.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF2001 |
ERROR | XML is not well-formed | |
XAF2002 |
ERROR | Forbidden construct (DOCTYPE/ENTITY) | |
XAF2003 |
ERROR | Safety limit exceeded |
3xxx — Version, namespace and structure¶
Layer: L3, L4, L4x.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF3001 |
INFO | Version detected | |
XAF3002 |
WARNING | Namespace is a documented variant, not the XSD target namespace | |
XAF3003 |
WARNING | Namespace does not officially exist | |
XAF3004 |
WARNING | Unknown namespace | |
XAF3005 |
WARNING | Version signals contradict each other | |
XAF3006 |
INFO | Continuation file of a split auditfile | |
XAF3007 |
WARNING | Version could not be determined with certainty | |
XAF3008 |
WARNING | Files of a multi-file set have different versions | |
XAF3009 |
WARNING | Continuation files are numbered inconsistently | |
XAF3010 |
ERROR | Required element missing | |
XAF3011 |
ERROR | Element not defined for this version | |
XAF3012 |
ERROR | Element occurs more often than allowed | |
XAF3013 |
ERROR | Element out of order | |
XAF3014 |
ERROR | Value length outside the allowed range | |
XAF3015 |
ERROR | Value not in the allowed code list | |
XAF3016 |
ERROR | Value does not match the required pattern | |
XAF3017 |
ERROR | Invalid date | |
XAF3018 |
ERROR | Invalid decimal number | |
XAF3019 |
ERROR | Invalid integer | |
XAF3020 |
ERROR | Value differs from the fixed value | |
XAF3021 |
ERROR | Value outside the allowed range | |
XAF3030 |
WARNING | Master data after transactions | |
XAF3040 |
ERROR | XSD validation error | |
XAF3050 |
ERROR | Invalid fixed-width (ADF) record |
4xxx — References between records¶
Layer: L5.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF4001 |
ERROR | Account not defined | |
XAF4002 |
ERROR | Customer/supplier not defined | |
XAF4003 |
ERROR | VAT code not defined | |
XAF4004 |
ERROR | Period not defined | |
XAF4005 |
WARNING | Journal offset account not defined | |
XAF4006 |
WARNING | VAT code account not defined | |
XAF4007 |
ERROR | Opening balance account not defined | |
XAF4008 |
WARNING | References not checked: the master data section is missing |
5xxx — Control totals and balance¶
Layer: L6.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF5004 |
ERROR | Opening balance totalDebit differs from the sum of debit lines | [0004] |
XAF5005 |
ERROR | Opening balance totalCredit differs from the sum of credit lines | [0005] |
XAF5006 |
ERROR | Opening balance totalDebit differs from totalCredit | [0006] |
XAF5007 |
ERROR | Transactions totalDebit differs from the sum of debit lines | [0007] |
XAF5008 |
ERROR | Transactions totalCredit differs from the sum of credit lines | [0008] |
XAF5009 |
ERROR | Transactions totalDebit differs from totalCredit | [0009] |
XAF5010 |
ERROR | Transaction does not balance | [0010] |
XAF5011 |
ERROR | Opening balance linesCount differs from the number of lines | |
XAF5012 |
ERROR | Transactions linesCount differs from the number of lines | |
XAF5013 |
WARNING | Opening balance does not balance |
6xxx — Uniqueness¶
Layer: L7.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF6001 |
ERROR | Duplicate customer/supplier ID | [0001] |
XAF6002 |
ERROR | Duplicate account ID | [0002] |
XAF6003 |
WARNING | Duplicate RGS code | [0003] |
XAF6004 |
ERROR | Duplicate transaction number within a journal | |
XAF6005 |
ERROR | Duplicate line number within a transaction | |
XAF6006 |
ERROR | Duplicate opening balance line number | |
XAF6007 |
WARNING | Duplicate journal ID | |
XAF6008 |
ERROR | Duplicate VAT code | |
XAF6009 |
ERROR | Duplicate period number | |
XAF6010 |
WARNING | Conflicting master data across files | |
XAF6011 |
ERROR | Files of a multi-file set belong to different administrations |
7xxx — Data quality and conventions¶
Layer: L8.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF7001 |
INFO | Negative amount | |
XAF7002 |
WARNING | Transaction date outside the fiscal year | |
XAF7003 |
WARNING | Transaction date outside its period | |
XAF7004 |
WARNING | Opening balance present both as element and as transactions | |
XAF7005 |
ERROR | Opening balance as transactions is not allowed in XAF 4.0 | |
XAF7006 |
WARNING | No opening balance | |
XAF7007 |
WARNING | Fiscal year inconsistent with start and end date | |
XAF7008 |
INFO | Time-zone suffix removed from date | |
XAF7009 |
WARNING | Identifier has leading or trailing whitespace | |
XAF7010 |
INFO | Effective date outside the fiscal year | |
XAF7011 |
WARNING | Transaction without lines | |
XAF7012 |
WARNING | Unusual code value | |
XAF7013 |
WARNING | Line has both a debit and a credit amount | |
XAF7014 |
WARNING | Period number not numeric |
8xxx — RGS (Referentie Grootboekschema)¶
Layer: L8.
| Code | Default severity | Title | Official rule |
|---|---|---|---|
XAF8001 |
WARNING | Placeholder RGS code | |
XAF8002 |
WARNING | RGS code does not look like an RGS reference code | |
XAF8003 |
ERROR | RGS code not in the RGS version | |
XAF8004 |
WARNING | RGS code was renamed in a later RGS version | |
XAF8005 |
INFO | RGS version not recognised | |
XAF8006 |
INFO | Account mapped to an RGS level other than 4 or 5 |