The operation was aborted due to transient issue such as competing transaction
resources. A SpannerTransaction should be retried if this error
is encountered.
AlreadyExists
The given resource could be not created because it already exists.
Cancelled
The operation was cancelled.
DataLoss
Unrecoverable data loss or corruption.
DeadlineExceeded
A timeout has occurred. A SpannerTransaction should be
retried if this error is encountered.
FailedPrecondition
Operation was rejected because the system is not in a state required for the
operation's execution.
Internal
Internal error.
InvalidArgument
A bad SQL statement or other invalid input was sent to Spanner.
NotFound
The given resource (Spanner Instance, Database, Table) was not
found.
OutOfRange
The operation attempted to read past the valid range.
PermissionDenied
The supplied credential from CredentialFile
or from default application credentials does not have sufficient permission for the request.
ResourceExhausted
A resource associated with Spanner has been exhausted. This may occur due to a server-side
failure, or due to the local maximum number of sessions being reached.
Unauthenticated
There is no supplied credential either through default application credentials or
directly through CredentialFile
Unavailable
The service is currently unavailable. This is a most likely a transient condition
and may be corrected by retrying. A SpannerTransaction should be
retried if this error is encountered.
Unimplemented
Operation is not implemented or not supported/enabled in this service.
Unknown
Unknown error. This may happen if an internal error occured or
not enough information was obtained to produce a useful message.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e package is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, as indicated in the provided list of versions.\u003c/p\u003e\n"],["\u003cp\u003eThis document provides the reference and code samples for the \u003ccode\u003eErrorCode\u003c/code\u003e enum within the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eErrorCode\u003c/code\u003e enum provides specific details when errors occur, such as \u003ccode\u003eAborted\u003c/code\u003e, \u003ccode\u003eAlreadyExists\u003c/code\u003e, \u003ccode\u003eCancelled\u003c/code\u003e, \u003ccode\u003eDataLoss\u003c/code\u003e, and more.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eErrorCode\u003c/code\u003e field has a corresponding description that explains the error's nature, as in the case of the \u003ccode\u003ePermissionDenied\u003c/code\u003e error, which relates to insufficient permissions of the provided credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides hyperlinks to related \u003ccode\u003eSpannerTransaction\u003c/code\u003e, \u003ccode\u003eCredentialFile\u003c/code\u003e and other files for more details on error handling and setup.\u003c/p\u003e\n"]]],[],null,["# Google.Cloud.Spanner.Data - Enum ErrorCode (5.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.ErrorCode)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/5.0.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.6.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.5.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.4.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.3.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.2.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.1.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/4.0.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.15.1](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.15.1/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.14.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.13.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.12.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.11.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.10.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.9.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.8.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.7.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.6.0/Google.Cloud.Spanner.Data.ErrorCode)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Spanner.Data/3.5.0/Google.Cloud.Spanner.Data.ErrorCode) \n\n public enum ErrorCode\n\nReference documentation and code samples for the Google.Cloud.Spanner.Data enum ErrorCode.\n\nA detailed code supplied via [ErrorCode](/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data.SpannerException#Google_Cloud_Spanner_Data_SpannerException_ErrorCode) when an error\noccurs.\n\nNamespace\n---------\n\n[Google.Cloud.Spanner.Data](/dotnet/docs/reference/Google.Cloud.Spanner.Data/latest/Google.Cloud.Spanner.Data)\n\nAssembly\n--------\n\nGoogle.Cloud.Spanner.Data.dll"]]