You are here: Using ArcWeb Explorer JavaScript > AWX JavaScript error messages

ArcWeb Explorer JavaScript error messages

If ArcWeb Explorer JavaScript encounters a problem while processing your request, ArcWeb Explorer JavaScript API returns a message designed to help you understand the issue. You are not charged for this transaction.

The default error handling in ArcWeb Explorer JavaScript API shows end users all error messages. You can use “try-and-catch” syntax as an error handling method. See the Quick-Start Plus Guide for an example.

The insertMap method jsFaultHandler variable can be used to determine which error messages end users see and to customize those error messages.

With fault handling, you can:

NOTE: Error handling for the ArcWeb Explorer JavaScript API will increase in scope in forthcoming releases.

ArcWeb Explorer error messages

ArcWeb Explorer displays the following error messages. You can customize these errors using the insertMap method jsFaultHandler variable.

GENERAL_ERROR:String = "ArcWeb Explorer has encountered a problem. Please try again. If you continue to encounter this error, visit the ArcWeb user forum at http://forums.esri.com/Forums.asp?c=127.";

TOKEN_ERROR:String = "Cannot connect to ArcWeb server. Please reload the page.";

IND_NOMATCH:String = "No match was found.";

FIND_EMPTY_SEARCH = "Please enter a location to find.";

UPLOAD_BAD_FORMAT = "Cannot read XLS file. Please check its validity.";

UPLOAD_UNHANDLED_ERROR = "Unhandled FileIO response (.";

LEFT_PARENTHESIS = ").";

EXTENT_NONE_FOUND = "No valid coordinates were found.";

REPORT_MUST_BE_US = "Reports can only be used in the United States.";

APPLICATION_TOO_LARGE = "The height or width of your map cannot exceed 2000 pixels.";

COULD_NOT_LOAD_CONFIG_FILE = "ArcWeb Explorer could not start properly.";

ArcWeb Explorer JavaScript API error messages

ArcWeb Explorer JavaScript API returns the following error messages. They are listed in order of their error number.

AWS_1000:String = "Invalid data source name.";

AWX_1002:String = "Your report area is too large. Select a smaller area and try again.";

AWS_1004:String = "Could not get token.";

AWS_1005:String = "Could not get token.";

AWS_1013:String = "Invalid extent.";

AWS_1016:String = "Credit count is zero.";

AWS_1017:String = "Subscription expired.";

AWS_1021:String = "Token has expired.";

AWS_1029:String = "StartIndex should be a positive integer.";

AWS_1035:String = "Invalid start index.";

AWS_2011:String = "Unable to calculate directions between specified locations.";

AWS_3032:String = "Data Maps are currently limited to the United States. Please select an area within the U.S. and try again.";

AWS_3074:String = "Problem merging images.";

AWS_5004:String = "Invalid SQL where clause or invalid fields used in the where clause.";  

AWS_7004:String = "Drive time data not available for this region or interval. Choose a different location or interval.";

AWS_10000:String = "Invalid filter type.";

Method error messages

The following messages are returned when specific methods are called.

The error messages are listed alphabetically by method:

addGroupLayer

addPolylines

getScale

addMarker

centerAndScale

recenterOrpanToLatLon

NOTE: See SOAP error messages for a list of error messages returned from SOAP ArcWeb services, such as findRoute.

addGroupLayer

Invalid group layer name.

addMarker

Invalid latitude value.

Invalid longitude value.

addPolylines

Invalid latitude value.

Invalid Polyline ID.

centerAndScale

Invalid latitude value.

Invalid longitude value.

Scale value has to be greater than or equal to 1.

getScale

Scale value has to be greater than or equal to 1.

recenterOrpanToLatLon

Invalid latitude value.


Visit the Feedback page to give comments or suggestions about the ArcWeb Developer's Guide.

ArcWeb site | ArcWeb support | support.esri.com

Copyright © ESRI