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."],[[["`SpannerBatchNonQueryException` represents an error during batch non-query operations with the Spanner database."],["This exception is raised when a command within a batch fails, preventing subsequent commands from executing."],["The exception includes the error code and message of the failed command, as well as the number of rows modified by successful commands."],["The class inherits from `SpannerException` and implements `ISerializable`, and is included in various versions, with the latest version being 5.0.0-beta05, which are each linked in the docs."],["`SuccessfulCommandResults` property returns the number of affected rows for each successfully executed command in the batch, as well as a `TransientFaultDetector.IsTransientSpannerFault` extension method."]]],[]]