> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gobl.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Fault

Fault provides a more formal structure for describing with a specific code what has been unacceptable about the source document, including potentially references to the fields causing issues.

## Schema ID

`https://gobl.org/draft-0/bill/fault`

## Properties

| Title   | Property  | Type                          | Description                                                                                                                                                                        |
| ------- | --------- | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Code    | `code`    | [cbc.Code](/draft-0/cbc/code) | Code or business term provided by the system that raised the condition. These should be searchable in order to help users or systems understand what went wrong with the document. |
| Message | `message` | string                        | Message contains human readable details about the specific condition.                                                                                                              |
| Paths   | `paths`   | array of string               | Paths contains an array of JSON paths that maps the GOBL specific error to a field inside the envelope that the condition is applied to.                                           |

## Validation Rules

| Field  | Test                                                                  | Validation Code / Message                        |
| ------ | --------------------------------------------------------------------- | ------------------------------------------------ |
| `code` | <ul class="gobl-test"><li class="gobl-test-present">Present</li></ul> | `GOBL-BILL-FAULT-01`<br />Fault code is required |
