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 page provides documentation for the `SpannerBatchNonQueryException` class, which handles errors during batch non-query operations in the Spanner database."],["The `SpannerBatchNonQueryException` class inherits from `SpannerException` and implements `ISerializable`, indicating it's a specialized type of exception that can be serialized."],["The class includes a `SuccessfulCommandResults` property, which provides a list of the number of rows modified by each command that executed successfully within a batch operation."],["The page also lists various versions of the `Google.Cloud.Spanner.Data` package, from version `3.5.0` to the latest beta version `5.0.0-beta05`, allowing users to navigate to the documentation for different releases."],["The exception is designed to handle scenarios where batched commands are executed sequentially, and a failure in one command halts subsequent commands."]]],[]]