ERROR

Librarian DROPLIBRARY command fails with 'Invalid function SHOW line 78 of aml'

Last Published: April 25, 2020

Error Message

When executing the Librarian DROPLIBRARY command, the following error may occur:

"AML ERROR - Arguments -1 environment tiles
invalid function SHOW
line 78 file C:\arcgis\arcexe83\atool\librarian\droplibrary.aml"

Cause

The [show environment tiles] function in the DROPLIBRARYR atool AML is returning a list of tiles that exceeds the AML 1024 character limit. The comma delimited string of all the library tile names must be less than 1024 characters long or the DROPLIBRARY AML will fail.

Solution or Workaround

The library can be manually deleted using the following sequence of steps. The following example describes how to delete a library called PARCELLIB.

  1. Determine the location of the library database directory for the map library PARCELLIB.

    Code:
    Arc: librarian parcellib

    Librarian: show location library parcellib
    d:\libraries\parcellib\database

    Librarian: quit

  2. Navigate to the library database directory and list the tile workspace locations.
    The library's INDEX coverage is located in the PARCELLIB database directory. The name and location of each PARCELLIB tile workspace is stored in the PARCELLIB INDEX.PAT.

    Code:
    Arc: workspace D:\libraries\parcellib\database

    Arc: list index.pat tile-name location
    1
    tile-name =
    location =
    2
    tile-name = TILE1
    location = d:\libraries\parcellib\tile1
    3
    tile-name = TILE2
    location = d:\libraries\parcellib\tile2

  3. Use the operating system file manager or an operating system command to delete to the tile workspaces.

  4. Delete the record for the library from the LIBRARIES INFO file located in %ARCHOME%\tables.

    Code:
    C:>cd C:\arcgis\arcexe83\tables> info

    Enter Username: ARC

    Enter Command: SELECT LIBRARIES

    Enter Command: RESEL LIBRARY EQ "PARCELLIB"

    Enter Command: PURGE

    Enter Command: QUIT

    Enter Username: STOP

Article ID:000002462

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic