Submitting command to Operating System or Command not found

Last Published: April 25, 2020

Solution or Workaround


One of the following messages is returned while running an AML.

At the ARC level:

"Submitting command to Operating System"

Within modules (GRID, ARCPLOT, etc.):

"Command not found"


This is the result of using a TAB key to indent blocks of code. The Tab character is invalid to AML and thus AML will not understand the command following the indentation.

Do not use the TAB key to format AMLs. Use multiple space keys, configure your editor to insert spaces when TAB is used, or run a filter on your AML file that converts TAB characters to multiple space characters.


At Version 7.x, the TAB key can be used in an AML or from the command prompt to enter &TYPE directives and comment lines in an AML. In fact, it is permissible to precede any AML directive (starts with &) with a tab.

Commands and functions must be preceded by spaces.

Article ID:000001390

  • ArcMap 8 x
  • 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