An invalid character, such as a space or leading number, exists in one or more of the following field names in the field_mapping, alternate_field_mapping, or custom_output_fields parameters of the Create Locator tool:
- Locator role field name
- Primary data field name
- Locator role alternate field name
- Alternate data table field name
Review the locator role and data field names in the script and make sure they adhere to the following conventions:
- Field names should only contain characters a-z, 0-9, and underscores.
- Do not use spaces, hyphens, parentheses, brackets, and other special characters, such as $, %, and #.