Hi:<br>
Please help!<br>
<br>
We have set up Cartoweb 3.2.0 on our server, which retrieve data from
out database (PostgreSQL) and display many dots in a the layer
(mytest). It looks great! <br>
<br>
Now we want to query the layer (mytest) and encounter problems. We are
able to query the layer and display the data in a query result table.
But when we do it the second time without clicking on
"query_clear" button, we got errors:<br>
<br>
<pre style="border: 0pt none ;">Class : SoapFaultWrapper<br>Message : Attribute query returned no results. Layer: mytest, idAttribute: taxon_id, query: taxon_id in ('NCERO0100','NCOCO0090','NCOCO0100','NCOCO0330','NCYCC0050','NCYCC0100','NCYCC0130','NDISC0030','NDISC0035','NDISC0080','NDISC0090','NDISC0100','NDISC0155','NDISC0165','NDISC0225','NDISC0300','NDISC0310','NDISC0350','NDISC0360','NDISC0465','NDISC0505','NDISC0525','NHELI0100','NHELI0140','NHELI0160','NRETI0180','NSPHN0120','NSPHN0140','NSPHN0190','NTRIQ0040')
<br>Backtrace:<br><br>file: 254 - /mnt/md0/apache2/htdocs/cartoweb3/coreplugins/mapquery/server/ServerMapquery.php<br>call: ServerMapquery->queryLayerByAttributes(Object(ServerContext), "mytest", "taxon_id", "taxon_id in ('NCERO0100','NCOCO0090','NCOCO0100','NCOCO0330','NC...", False)
<br><br>file: 280 - /mnt/md0/apache2/htdocs/cartoweb3/coreplugins/query/server/ServerQuery.php<br>call: ServerMapquery->queryByIdSelection(Object(QuerySelection))<br>...<br>...<br>...<br><br>and more stack error information.
<span style="font-family: arial,sans-serif;"><br><br></span></pre>
At the same time, we did a test on another layer which is generated
from a shape file, and we are able to do queries on that layer.<br>
<br>
Here is the definition of "mytest" layer:<br>
<br>
LAYER<br>
CONNECTIONTYPE postgis<br>
NAME "mytest"<br>
CONNECTION "user=xxx password=xxx dbname=xxx host=xxx"<br>
DATA "geom from (select distinct a.geom,d.oid as oid, d.* from
neptune_hole_spatial a, neptune_hole_summary b, neptune_hole_taxa c,
neptune_taxonomy d where a.hole_id = b.hole_id and b.site_hole =
c.site_hole and c.taxon_id = d.taxon_id and fossil_group = 'N') as
nanno_hole_taxa using unique oid using SRID=4326"<br>
STATUS default<br>
TYPE POINT<br>
DEBUG ON<br>
#FILTER "taxon_id !=null"<br>
PROJECTION<br>
"init=epsg:4326"<br>
END<br>
CLASS<br>
NAME "nanno_hole_taxa"<br>
STYLE<br>
SYMBOL "circle"<br>
SIZE 10<br>
COLOR 90 27 191<br>
END<br>
END<br>
TOLERANCE 100<br>
TEMPLATE "tt"<br>
METADATA<br>
"id_attribute_string" "taxon_id|string"<br>
"query_returned_attributes" "taxon_id taxon_status genus species" <br>
## taxon_status, genus, species are column name in database<br>
END<br>
END<br>
<br>
Thank you for your help,<br>
-- <br>Xiaoyun Tang<br>