Error: Librarian DROPLIBRARY command fails with 'Invalid function SHOW line 78 of aml'
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"
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.
- Determine the location of the library database directory for the map library PARCELLIB.
Arc: librarian parcellib
Librarian: show location library parcellib
- 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.
Arc: workspace D:\libraries\parcellib\database
Arc: list index.pat tile-name location
tile-name = TILE1
location = d:\libraries\parcellib\tile1
tile-name = TILE2
location = d:\libraries\parcellib\tile2
- Use the operating system file manager or an operating system command to delete to the tile workspaces.
- Delete the record for the library from the LIBRARIES INFO file located in %ARCHOME%\tables.
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