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 outlines the `SpannerBatchNonQueryException` class, which signals errors during batch non-query operations in the Spanner database, as part of version 3.9.0 of the Google Cloud Spanner .NET library."],["The `SpannerBatchNonQueryException` class inherits from `SpannerException` and implements `ISerializable`, providing detailed error information when communicating with Spanner for batch operations."],["Spanner executes batch commands sequentially; if one command fails, subsequent commands are not executed, and the exception details the failed command's error and the number of rows modified by successful commands."],["The `SuccessfulCommandResults` property of the exception object provides an `IEnumerable` containing a list of `Int64` objects, which represents the number of rows modified by each successful command."],["The document also lists the different versions of the Spanner .NET library, ranging from 3.5.0 up to the latest beta version 5.0.0-beta05, offering links to access specific documentation for each version."]]],[]]