# Google BigQuery v2 API - Enum BigQueryInsertStatus (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 enum BigQueryInsertStatus

Reference documentation and code samples for the Google BigQuery v2 API enum BigQueryInsertStatus.

Specifies the status of an insert attempt depending on the validity of the rows.
Note that the validity of a row is determined by whether [AllowUnknownFields](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions#Google_Cloud_BigQuery_V2_InsertOptions_AllowUnknownFields)
is set to true or not.
If [AllowUnknownFields](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions#Google_Cloud_BigQuery_V2_InsertOptions_AllowUnknownFields) is set to true, then rows containing fields
that do not match any on the destination table will, otherwise, be considered valid rows.
All matching fields in these rows will be inserted, while unmatching fields will be silently skipped.
If [AllowUnknownFields](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions#Google_Cloud_BigQuery_V2_InsertOptions_AllowUnknownFields) is not set to true, then rows containing fields
that do not match any on the destination table will be considered invalid and won't be inserted.

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

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `AllRowsInserted` | All rows were inserted successfully. This only happens if all rows are valid rows. |
| `NoRowsInserted` | No rows were inserted. In that case the [BigQueryInsertResults](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertResults) returned by the insert operation will contain error information about the invalid rows. This can happen when: - No rows are valid. - [SkipInvalidRows](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions#Google_Cloud_BigQuery_V2_InsertOptions_SkipInvalidRows) is not set to true and at least one row is invalid. |
| `SomeRowsInserted` | Some rows were inserted but not others. In that case the [BigQueryInsertResults](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryInsertResults) returned by the insert operation will contain error information about the rows that were not inserted. This happens only when [SkipInvalidRows](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.InsertOptions#Google_Cloud_BigQuery_V2_InsertOptions_SkipInvalidRows) is set to true and some, but not all of the rows, are invalid. |