<div>Hello guys...</div>
<div>I´m got this error when trying to execute a Nquery :</div>
<div><a href="http://localhost/cgi-bin-54/mapserv.exe?map=Map.map&amp;mode=nquery&amp;LAYERS=TEST&amp;mapext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875&amp;imgext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875&amp;map_size=1221+762&amp;imgxy=1221+762&amp;imgbox=0+0+1221+762">http://localhost/cgi-bin-54/mapserv.exe?map=Map.map&amp;mode=nquery&amp;LAYERS=TEST&amp;mapext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875&amp;imgext=-58.358076171875+-11.42570625+-57.193525390625+-10.37101875&amp;map_size=1221+762&amp;imgxy=1221+762&amp;imgbox=0+0+1221+762</a></div>

<div> </div>
<div>msDrawMap(): Image handling error. Failed to draw layer named &#39;TEST&#39;.<br> <br>But, If I execute the same url with &quot;mode=map&quot;, the image is generated fine... What this error means?<br> </div>
<div> </div>
<div>TEST Layer</div>
<div> </div>
<div> LAYER<br>  NAME TEST<br>  GROUP &quot;TE&quot;<br>  TYPE polygon<br>  STATUS ON<br>  CONNECTIONTYPE PLUGIN <br>  PLUGIN &quot;msplugin_mssql2008.dll&quot;  <br>  CONNECTION &quot;server=X;Integrated Security=false;database=X;uid=X;pwd=X&quot;  <br>
  DATA &quot;the_geom from viw USING UNIQUE oid USING SRID=0&quot;<br>  CLASS<br>   TEMPLATE &quot;template.html&quot;<br>   NAME &quot;X&quot;   <br>   STYLE<br>    OUTLINECOLOR 150 150 150<br>    WIDTH 1<br>   END<br>  END<br>
 END</div>
<div><br>Thanks<br> <br>Paul</div>