<div dir="ltr">Does anyone know if ticket #3258 [1] went anywhere?  It appears I am running into the same problem (5 years later).<br><div><br>Specifically, I want to be able to call WMS GetFeatureInfo with QUERY_LAYERS='all' on a map file of the form:<br><br></div><div>MAP<br></div><div>  NAME 'all'<br>  ...<br></div><div>  LAYER<br></div><div>     NAME 'one_of_many_queryable_layers'<br></div><div>     DATA<br>     ...<br></div><div>     TEMPLATE foo<br></div><div>  END<br></div><div>  LAYER<br></div><div>     NAME 'i_am_not_queryable'<br></div><div>  END<br></div><div>END<br></div><div><br></div><div>Right now I am getting a WMS exception:<br><ServiceException code="LayerNotQueryable"><br>msWMSFeatureInfo(): WMS server error. Requested layer(s) are not queryable.<br></ServiceException><br><br></div><div>If I comment out the 'i_am_not_queryable' layer the query results other layers return as expected.<br><br></div><div>It looks like the patch in #3258 would at one time have allowed this use and that at the time the reaction to the patch was positive, however the current code in master is completely different.<br></div><div><br></div><div>It looks like msWMSFeatureInfo in mapwms.c:3843-3848 is selecting layers that aren't queryable, which then causes the WMS exception to be thrown on line 3919.  I suspect it has to do with how "isUsedInNestedGroup" is being set.<br><br>[1] <a href="https://trac.osgeo.org/mapserver/ticket/3258">https://trac.osgeo.org/mapserver/ticket/3258</a><br><br></div><div>Jim Klassen<br></div></div>