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

# InsertError

> InsertError — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[bulk\_inserter](https://docs.kinetica.com/content/api/rust/bulk_inserter/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L761-L780)&#x20;

<pre>`pub struct InsertError<T> {    pub worker_url: String,    pub url: Option<Url>,    pub record_count: usize,    pub records: Vec<Arc<T>>,    pub message: String,    pub timestamp: Instant,}`</pre>

An error that occurred during batch insertion. These are collected in the error queue for async error handling.

Fields
`worker_url: String`

Worker URL where the error occurred

`url: Option<Url>`

The head node URL in use when the error occurred. `None` only where the connection had no URL.

`record_count: usize`

Number of records in the failed batch

`records: Vec<Arc<T>>`

The records that were not inserted, for a caller to retry or report: a failed batch’s records, or the one record a per-record error names. Empty where the server named a record the batch does not hold, and where the records were lost with an encoding task that panicked; `record_count` still counts them.

`message: String`

Error message: the message of the error underneath, without its kind (as `KineticaError::message` gives it)

`timestamp: Instant`

Timestamp when the error occurred

## Trait Implementations

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L782-L793)
impl\<T> [Clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html) for [InsertError](https://docs.kinetica.com/content/api/rust/bulk_inserter/struct.InsertError.md)\<T>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L783-L792)
fn [clone](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)(\&self) -> Self

Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#tymethod.clone)

1.0.0 (const: [unstable](https://github.com/rust-lang/rust/issues/142757)) · [Source](https://doc.rust-lang.org/1.98.1/src/core/clone.rs.html#245-247)
fn [clone\_from](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)(\&mut self, source: \&Self)

Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html#method.clone_from)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L797-L807)
impl\<T> [Debug](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html) for [InsertError](https://docs.kinetica.com/content/api/rust/bulk_inserter/struct.InsertError.md)\<T>

The records are summarized by their number, so no `Debug` is needed of `T`.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L798-L806)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L809-L814)
impl\<T> [Display](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Display.html) for [InsertError](https://docs.kinetica.com/content/api/rust/bulk_inserter/struct.InsertError.md)\<T>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L810-L813)
fn [fmt](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Display.html#tymethod.fmt)(\&self, f: \&mut [Formatter](https://doc.rust-lang.org/1.98.1/core/fmt/struct.Formatter.html)\<'\_>) -> [Result](https://doc.rust-lang.org/1.98.1/core/fmt/type.Result.html)

Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Display.html#tymethod.fmt)

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/bulk_inserter.rs#L816)
impl\<T> [Error](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html) for [InsertError](https://docs.kinetica.com/content/api/rust/bulk_inserter/struct.InsertError.md)\<T>

1.30.0 · [Source](https://doc.rust-lang.org/1.98.1/src/core/error.rs.html#111)
fn [source](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.source)(\&self) -> [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<&(dyn [Error](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html) + 'static)>

Returns the lower-level source of this error, if any. [Read more](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.source)

1.0.0 · [Source](https://doc.rust-lang.org/1.98.1/src/core/error.rs.html#137)
fn [description](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.description)(\&self) -> &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html)

👎Deprecated since 1.42.0: use the Display impl or to\_string()&#x20;
&#x20;[Read more](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.description)

1.0.0 · [Source](https://doc.rust-lang.org/1.98.1/src/core/error.rs.html#147)
fn [cause](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.cause)(\&self) -> [Option](https://doc.rust-lang.org/1.98.1/core/option/enum.Option.html)\<\&dyn [Error](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html)>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting&#x20;

[Source](https://doc.rust-lang.org/1.98.1/src/core/error.rs.html#260)
fn [provide](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.provide)\<'a>(&'a self, request: \&mut [Request](https://doc.rust-lang.org/1.98.1/core/error/struct.Request.html)\<'a>)

🔬This is a nightly-only experimental API. (`error_generic_member_access`)
Provides type-based access to context intended for error reports. [Read more](https://doc.rust-lang.org/1.98.1/core/error/trait.Error.html#method.provide)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.