The 'CityNm' element is invalid.
The full error is here:
The 'CityNm' element is invalid - The value is invalid according to its datatype 'CityType'"
Our Explanation: City name is a required field. Common errors are:
- The city name is missing. Its a required field and can not be left empty.
- The maximum city name length is 22 characters. If the name is more than 22 characters, you will get the above error along with 'The actual length is greater than the MaxLength value'. There exists the cities 'Little Harbor on the Hillsboro' in Florida and 'West Virginia Central Junction' in West Virginia which are 30 characters in length. You can print and mail the full city name but have to reduce the name to 22 characters before generating the XML.
- The city name 'Mt. Pleasant' is an invalid name because the period is an illegal character. The city name 'Winston-Salem' is invalid because the hyphen is not allowed. Just use alpha characters to describe the city. The city name '29 Palms' which is an actual city in California but you numbers 0-9 can not be used in a city name.