Developer Guide - Address Geocode - Canada Error Types



Error Codes

Error codes in DOTS Address Geocode – CA are the same for all operations. They are as follows: 

Error Code 1 – "Input cannot be less than zero length"


This error means the web service did not get any input. The connection to the service was made, and data was transferred, but no parameters were passed that the service could understand.
This error often happens when input is passed to the service with namespaces that the service does not understand. Applying a namespace to any of the parameters (Address or LicenseKey, in this service) will cause this error. 


Desc. Code

Description

1

You must enter a proper municipality/province combination or postal code.

1

Please provide a valid license key for this web service.


Important Note!
The namespace is not applied to the GetGeoLocation element, it is only present.


Error Code 2 – Various descriptions


This error code appears when various errors occur, but are of the expected nature. Oftentimes, maligned or incomplete input will cause an error 2. 

Desc. Code

Description

2

Please input a valid address.

2

Please input a valid postal code.

2

Location not found.

2

No Results Found.



Error Code 4 – Various descriptions


An error code 4 is a fatal error and it means something has seriously gone wrong. You will never see an error code 4 in a live production environment.