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."],[[["The latest version of the `Google.Cloud.Spanner.Data` library available is `5.0.0-beta05`, with a history of versions going back to `3.5.0` available to view."],["`SpannerBatchNonQueryException` represents an error that occurs during batch non-query operations with the Spanner database."],["This exception type inherits from `SpannerException` and implements the `ISerializable` interface, providing information about the error."],["The `SpannerBatchNonQueryException` includes a `SuccessfulCommandResults` property, which offers a list of the affected rows for each successfully executed command within a batch."],["When a command in a Spanner batch fails, subsequent commands are not executed, and this exception will contain the specific error details."]]],[]]