English

Error: Could not find layer in layerThemes array, check fmeDownload.htm

Error Message

When selecting the Data Delivery Extension (DDE) translation tool in the HTML Viewer, the following error may occur:

"Could not find layer [name] in layerThemes array, check fmeDownload.htm"

Cause

Clicking on the DDE translation tool engages a script that checks for layers in the table of contents of the viewer that are mapped to a theme in the FMEDownload.htm file. If a layer is not listed in the layerThemes array but is visible in HTML Viewer, this error message displays.

Solution or Workaround

Edit the fmeDownload.htm file for your Web site to map all layers for translation:

  1. Open the file FmeDownload.htm in a text editor. Find the file in the ArcIMS Web site directory for the viewer integrated with DDE. For example, C:\ArcIMS\Website\<mysite>\FME\fmeDownload.htm
  2. Inside the file FmeDownload.htm, edit the layer to theme mapping definitions at the start of the file so that it lists all the layers as seen in the HTML Viewer. For example, for parcels layer, add a line similar to one of the following:

    Code:
    layerThemes["streets"] = "streets^SHAPE_DATA"; // if shapefile
    layerThemes["Parcels"] = "TEST.TEST.PARCELS^SDE30_DATA"; //if SDE data

    Please see the DDE Reference Guide for more information.

    Note:
    To customize the layers shown in the layer list, refer to the article listed in Related Information, below.

  3. Save and close the file FMEDownload.htm.

Related Information