imuepis

Map export with zero visible layers

Discussion created by imuepis on Sep 16, 2010
Latest reply on Sep 22, 2010 by a.schaefer-esri-de-esridist
Hi,
Today I noticed interesting behavior of ArcGISDynamicMapServiceLayer when working with my application that uses ArcGIS JavaScript API 2.0. The problem is that if I turn off my all layers I recieve an error from ArcGIS Server 10 that states that there was an error while exporting image. After bit of digging I found that the problem was in query string specifically with "layers" variable. When there is no visible layers this parameters has a value of "show:" or in encoded form "show%3A". It seems that ArcGIS Server 10 fails to handle this value correctly (I did not noticed this behavior with ArcGIS Server 9.4 b2) and just throws 404 exception. If I eliminate this parameter server returns image with by default visible layers. So is this a problem of ArcGIS Server 10 or JavaScript API 2.0?

P.S. Sorry if I missed and existing topic about this.

Outcomes