# RecordException type


A problem that a record was created with and that needs a user in MAX: what it is, where it is, and
how it was resolved.

## Fields

### code

`String!`

A fixed code, for example `PAYMENT_METHOD_UNKNOWN`. Read it as a string, because more codes may
be added.

### field

`String`

The input the exception concerns, for example `items[2].unit`. Null when none.

### message

`String!`

A description of the problem, for a person.

### data

[`JSON`](/chameleoon-max/type/json)

Details for machines, as a JSON object, for example `{"expected": "120.50", "actual": "120.49"}`.

### lineId

[`UUID`](/chameleoon-max/type/uuid)

The MAX id of the order line the exception is on. Null when it is on the order itself.

### origin

`String!`

What raised the exception: `API`, `CSV_IMPORT` or `SYSTEM`.

### createdAt

[`Time!`](/chameleoon-max/type/time)

When the exception was raised.

### resolvedAt

[`Time`](/chameleoon-max/type/time)

When the exception was resolved. Null while it is open.

### resolution

`String`

How the exception was resolved: `RESOLVED_BY_USER`, `RESOLVED_BY_SYSTEM` or `UNBLOCKED`. Null
while it is open.

## Used by

- [`RecordExceptionConnection`](/chameleoon-max/type/record-exception-connection)
- [`RecordExceptionEdge`](/chameleoon-max/type/record-exception-edge)
