Select to view content in your preferred language

layer failed to load: Fault info: E0011E: Invalid feature layer:

389
0
11-12-2013 02:16 PM
GeorgeHaskett
Deactivated User
For the web app in question I am using the Viewer for Flex 3.2 and ArcGIS for Server 10.1.

I am using a python script to publish my mapservices.  Previously I was using a unique mxd doc for each service (18 in total).  Publishing the services individually worked fine.  My current script combines what use to be 18 mxds into (1) mxd and publishes it.

Based upon the Rest services, it appears that everything published correctly:

[INDENT]http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_pythonTest/basemap/MapServer[/INDENT]

I changed my xml file to import each service as a feature layer instead of a dynamic one.

Original code when using individaul services:
<layer url="http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_PonyFire/evc/MapServer" label="Existing Vegetation Cover (EVC)" visible="false" type="dynamic" imageformat="png8"/>

New code when all services are combined:
<layer url="http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_pythonTest/basemap/MapServer/2" label="Existing Vegetation Cover (EVC)" visible="false" type="feature" mode="onDemand"/>

If I change the type to dynamic, get rid of the mode and set the imageformat = png8, then I don't get an error, the layer label appears, however the layer is not visible even with the visiblity set to true.  Even the zoom to option is not active.

The data being used in the mxds are .tif files.

If I use the following code I can bring everything in together, however I want to be able to pick and choose layers and control the order they appear, etc.
<layer url="http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_pythonTest/basemap/MapServer" label="BASEMAP" visible="true" type="dynamic"/>

I'm sure this is something simple.  I'm just not seeing it.  Again, I want to be able to pull in and control each layer in my map and not as one big service.

Thanks
Tags (2)
0 Kudos
0 Replies