Geographical Area validation

The following validation is performed unconditionally when a Geographical Area for a Zone is created or updated, regardless of the setting of the Address Check flag in the User Profile:

  • Country must be specified and valid, as per the Country table. If Zone Country is specified, the values match.
  • If State/Province is specified it must be valid, as per the State/Province table and specified Country. If Zone State/Province is specified, the values match.
  • If a City is specified, a State/Province must also be specified.
  • If a City is specified and Zip/Postal Data Exists or City/State Data Exists (both as per Country table), City must refer to a valid City for the Zone's Country and the designated State/Province, as per the City table. For example: City name CORAL SPRINGS in Country USA is only valid if State/Province is FL.
  • If From Zip/Postal Code or To Zip/Postal Code is specified, both must conform to one of the postal masks defined for the country (for example, ##### or #####-#### for addresses in USA). From Zip/Postal Code and To Zip/Postal Code can only be provided for Zones where Postal Codes are required for applicable Country.
  • If To Zip/Postal Code is specified:
    • From Zip/Postal Code must also be supplied
    • From Zip/Postal Code value must be less than the To Zip/Postal Code.
    • Depending on the country, either the first character or the first two characters of the From Zip/Postal Code must be equal to the corresponding characters for the To Zip/Postal Code.
  • If a City is specified, a From Zip/Postal Code cannot be specified; and vice versa.
  • If Distance is specified, none of these values can be specified: City, From Zip/Postal Code, To Zip/Postal Code; also, the City Precise checkbox cannot be checked.
  • The City Precise checkbox can be checked only for Zones where the specified Country supports a hierarchical Zip/Postal Code (for example, USA which supports both short and long Zip Codes).

See Also