# ErrorReport type


An error report: the occurrences of one error, grouped by record, line, external system
and code.

## Fields

### id

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

The report's MAX id.

### subject

[`ErrorSubject!`](/chameleoon-max/type/error-subject)

The record that the report is on.

### lineId

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

The line that the report is about. Null for the record as a whole. A line that was later
removed from a completed or open document keeps its reports, so this can name a line that
the record no longer has.

### source

`String!`

The external system, as reported in `source`.

### code

`String!`

The error code, as reported in `code`.

### status

[`ErrorReportStatus!`](/chameleoon-max/type/error-report-status)

The report's state.

### mutedUntil

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

Until when a `MUTED` report stays muted. Null means that it stays muted until a user in
MAX unmutes it.

### regressed

`Boolean!`

Whether a new occurrence reopened the report after it was resolved.

### occurrenceCount

`Int!`

The number of occurrences reported.

### firstSeenAt

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

When MAX received the first occurrence.

### lastSeenAt

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

When MAX received the newest occurrence.

### lastStatusCode

`Int`

The newest occurrence's `statusCode`.

### lastMessage

`String!`

The newest occurrence's `message`.

## Used by

- [`ErrorReportConnection`](/chameleoon-max/type/error-report-connection)
- [`ErrorReportEdge`](/chameleoon-max/type/error-report-edge)
- [`ReportErrorResult`](/chameleoon-max/type/report-error-result)
