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\u003eThis document outlines the \u003ccode\u003eSpannerBatchNonQueryException\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpannerBatchNonQueryException\u003c/code\u003e class inherits from \u003ccode\u003eSpannerException\u003c/code\u003e and implements \u003ccode\u003eISerializable\u003c/code\u003e, providing detailed error information when communicating with Spanner for batch operations.\u003c/p\u003e\n"],["\u003cp\u003eSpanner 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSuccessfulCommandResults\u003c/code\u003e property of the exception object provides an \u003ccode\u003eIEnumerable\u003c/code\u003e containing a list of \u003ccode\u003eInt64\u003c/code\u003e objects, which represents the number of rows modified by each successful command.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"]]],[],null,[]]