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 `SpannerBatchNonQueryException` class represents errors that occur during batch non-query operations in the Spanner database."],["This exception inherits from `SpannerException` and implements `ISerializable`, offering standard exception handling features."],["The `SpannerBatchNonQueryException` indicates that commands are executed sequentially in Spanner, and a failure in one command halts subsequent command executions."],["The `SuccessfulCommandResults` property provides a list of row counts modified by successfully executed batch commands prior to any failure."],["The page displays various versions of the Spanner Batch Non Query Exception dating back to version 3.5.0, with the most recent stable version being 4.6.0, and a beta version 5.0.0-beta05 available."]]],[]]