# Google BigQuery v2 API - Class BigQueryInsertRowErrors (3.12.0)

3.12.0 (latest) 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    public sealed class BigQueryInsertRowErrors : IEnumerable<SingleError>, IEnumerable

Reference documentation and code samples for the Google BigQuery v2 API class BigQueryInsertRowErrors.

Represents insert errors related to one row.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> BigQueryInsertRowErrors

## Implements

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[SingleError](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.SingleError.html), [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2)

## Assembly

Google.Cloud.BigQuery.V2.dll

## Constructors

### BigQueryInsertRowErrors(BigQueryInsertRow, IReadOnlyList\<InsertErrorsData\>)

    public BigQueryInsertRowErrors(BigQueryInsertRow originalRow, IReadOnlyList<TableDataInsertAllResponse.InsertErrorsData> errors)

Constructs a new set of insert errors related to one insert row.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `originalRow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` The original row to which these errors are related to if known. May be null. |
| `errors` | `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableDataInsertAllResponse.htmlhttps://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.TableDataInsertAllResponse.InsertErrorsData.html` The errors information. |

## Properties

### OriginalRow

    public BigQueryInsertRow OriginalRow { get; }

The original row to which these errors are related to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow` |   |

**Remarks** Some errors obtained after an insert request might not contain enough
information so as to associate them with one row.
In such cases this may be null.

### OriginalRowIndex

    public long? OriginalRowIndex { get; }

The index of the row these errors relate to in the original
inser request. Might be unknown.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |

## Methods

### GetEnumerator()

    public IEnumerator<SingleError> GetEnumerator()

Returns an interator over the insert errors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.SingleError.html` | An iterator over the insert errors. |