ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

GetIDMessage

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

Get the string of the error or warning ID message.

Discussion

GetIDMessage allows you to access geoprocessing tool message codes for use in Python.

Syntax

GetIDMessage (message_ID)
ParameterExplanationData Type
message_ID

The geoprocessing message ID.

Integer

Return Value

Data TypeExplanation
String

The message string associated with the message ID.

Code sample

GetIDMessage example

Access a message string using GetIDMessage and add to the tool messages using AddMessage.

import arcpy

message = arcpy.GetIDMessage(84001)

# The returned value should be: u'Reading Data....'
arcpy.AddMessage(message)

Related topics

  • AddError
  • AddIDMessage
  • AddMessage
  • AddReturnMessage
  • AddWarning
  • GetMessage
  • GetMessageCount
  • GetMessages
  • GetReturnCode
  • Writing messages in script tools
  • Understanding message types and severity
  • Understanding messages in script tools

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2017 Esri. | Privacy | Legal