# Google BigQuery v2 API - Class InsertOptions (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 InsertOptions

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

Options for `Insert` operations.

## Inheritance

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

## 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

## Properties

### AllowEmptyInsertIds

    public bool AllowEmptyInsertIds { get; set; }

When true allows [InsertId](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertRow#Google_Cloud_BigQuery_V2_BigQueryInsertRow_InsertId) to be
unspecified. This in turns allows for faster inserts, at the expense
of possible record duplication if the operation needs to be retried.
See <https://cloud.google.com/bigquery/quotas#streaming_inserts> for
more information.
The default value is false.

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

### AllowUnknownFields

    public bool? AllowUnknownFields { get; set; }

Whether or not to accept rows with fields that are not specified in the schema,
ignoring the extra fields.
If not set, this is effectively false.

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

### SkipInvalidRows

    public bool? SkipInvalidRows { get; set; }

Insert all valid rows of a request, even if invalid rows exist.
If false, the entire request will fail if any invalid rows exist.
If not set, this is effectively false. This property is unset by default.

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

### SuppressInsertErrors

    public bool SuppressInsertErrors { get; set; }

If true, insert errors don't lead to an exception.
This property has no effect on which rows are inserted and which are not.
The default value is false.

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

### TemplateSuffix

    public string TemplateSuffix { get; set; }

If specified, treats the destination table as a base template, and inserts the
rows into an instance table named "{destination}{templateSuffix}". BigQuery will
manage creation of the instance table, using the schema of the base template
table. See <https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables>
for considerations when working with templates tables.

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