# `invalid_record_kept`

> A record is not valid (code), but stored so already - kept, not refused. Tell the user; it should be repaired or removed.

- Warning - never blocks the call.
- Page: /errors/invalid_record_kept/

## Params

- `line` (integer) - The line of the text sent; 0: not tied to a line.
- `owner` (string | null) - The name of the record, absolute.
- `rr_type` (string | null) - The record type.
- `code` (string) - invalid_record_kept: the error found in the record.
- `value` (string | integer) - The value found.
- `min` (integer)
- `max` (integer)
- `target` (string) - The target named.
- `address` (string) - The address named.
- `record` (string) - The record, as written.
- `type` (string) - The record type named.
- `suggested_target` (string) - What to name instead.

## Declared by

The operations that may answer it.

- [Add DNS record](/reference/domain/dns/zone/record/add.md)
- [Set DNS records of a name](/reference/domain/dns/zone/record/set.md)
- [Change DNS zone of a domain](/reference/domain/dns/zone/set.md)
