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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eSpannerBatchNonQueryException\u003c/code\u003e represents an error during batch non-query operations with the Spanner database.\u003c/p\u003e\n"],["\u003cp\u003eThis exception is raised when a command within a batch fails, preventing subsequent commands from executing.\u003c/p\u003e\n"],["\u003cp\u003eThe exception includes the error code and message of the failed command, as well as the number of rows modified by successful commands.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eSpannerException\u003c/code\u003e and implements \u003ccode\u003eISerializable\u003c/code\u003e, and is included in various versions, with the latest version being 5.0.0-beta05, which are each linked in the docs.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSuccessfulCommandResults\u003c/code\u003e property returns the number of affected rows for each successfully executed command in the batch, as well as a \u003ccode\u003eTransientFaultDetector.IsTransientSpannerFault\u003c/code\u003e extension method.\u003c/p\u003e\n"]]],[],null,[]]