Geoprocessing service GetJobMessages method

Gets verbose messages representing the current state of a submitted geoprocessing job.

GetJobMessages(string JobID)

Parameter

Description

JobID

The unique id of the geoprocessing job from which messages should be retrieved.

Return Value

An array of JobMessage objects (JobMessage[]).

Remarks

The set of messages grows as a job is executing. A message has a type and a description. The message types can be Informative, Warning, Abort, Error, or Empty. To get the job status (for example, Success) use GetJobStatus.

Examples

C#

//to ensure job has completed see GetJobStatus

//to get the job id see SubmitJob

JobMessage[] msgs = gpserver.GetJobMessages(jobID);

System.Console.WriteLine("Number of JobMessages = " + msgs.Length.ToString());

foreach (JobMessage msg in msgs)

{

      System.Console.WriteLine(msg.MessageDesc);

}

2/28/2020