ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core.Geoprocessing Namespace / IGPResult Interface / ErrorCode Property
Version

ErrorCode Property (IGPResult)
Error code for tool execution result:
  • 0 : Success (tool executed without any error)
  • not 0 : Tool failed or was canceled.
Syntax
int ErrorCode {get;}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also