In Spanner batched commands are executed sequentially in the order they are received.
If one command fails then the following commands won't be executed.
This exception contains the error code and error message corresponding to the command that failed.
It also contains the number of rows modified by each of the commands that executed successfully.
Properties
SuccessfulCommandResults
public IEnumerable<long> SuccessfulCommandResults { get; }
Returns the affected rows for each of the batch commands that executed succesfully.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This document provides reference information for the `SpannerBatchNonQueryException` class within the Google.Cloud.Spanner.Data namespace, detailing its role in handling errors during batch non-query operations in Spanner databases."],["The `SpannerBatchNonQueryException` class inherits from `SpannerException` and implements `ISerializable`, indicating its capability to represent errors in Spanner and support serialization."],["The class includes the `SuccessfulCommandResults` property, which provides a collection of the number of rows affected by each successfully executed command within a batch."],["The document details that batched commands in Spanner execute sequentially and that if one command fails, subsequent commands are not executed, with the exception capturing details about the failure."],["The available versions for the relevant component, which are included in this document, range from 3.5.0 to 5.0.0-beta05."]]],[]]