Accessing cursor data returns: Parser error: syntax error

Last Published: April 25, 2020

Solution or Workaround

When attempting to access data using a cursor, the following messages appear:

Parser error: syntax error
Program variable parse syntax error
AML ERROR - Undefined variable: :cursorname.itemname


The cursor name starts with a number or special character.


Change the name of your cursor so that it starts with an alphabetic character.

Article ID:000001462

  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options