<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">Hi Carto Users,</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">&nbsp;</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">I&#39;m using the following code in the mapfile but it does not like the &#39;FID&#39; index in the shapefile which is set as:
</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">&nbsp;</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">LAYER<br>&nbsp; NAME &quot;lan&quot;<br>&nbsp; TYPE POLYGON<br>&nbsp; STATUS ON<br>&nbsp; TRANSPARENCY 50<br>&nbsp; DATA &quot;c:\wamp\www\cartoweb3\projects\Paul\server_conf\Paul\data\lan.shp&quot;
<br>&nbsp; TEMPLATE &quot;ttt&quot;<br>&nbsp; METADATA<br>&nbsp;&nbsp; &quot;id_attribute_string&quot; &quot;FID|string&quot;<br>&nbsp;&nbsp; &quot;query_returned_attributes&quot; &quot;FID applicatio&quot;<br>&nbsp; END<br>&nbsp; CLASS <br>&nbsp;&nbsp; NAME &quot;lan&quot;
<br>&nbsp;&nbsp; COLOR 27 163 255<br>&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>&nbsp; END<br>END</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">&nbsp;</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">Could something be incorrect in the .map file above. Below is the Carto error produced.</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">&nbsp;</div>
<div style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px">Class : SoapFaultWrapper<br>Message : Error [8, Undefined index:&nbsp; FID, C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php, 147]
</div>
Backtrace:
file: 147 - C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php
call: Common::cartowebErrorHandler(8, &quot;Undefined index:  FID&quot;, &quot;C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php&quot;, 147, Array(13))
file: 300 - C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php
call: ServerQuery-&gt;resultToTable(Array(9), &quot;lan&quot;, &quot;FID&quot;, Array(2), Object(TableFlags))
file: 429 - C:\wamp\www\cartoweb3\coreplugins\query\server\ServerQuery.php
call: ServerQuery-&gt;queryLayer(Object(Circle), Object(QuerySelection))
file: 74 - C:\wamp\www\cartoweb3\server\ServerPluginHelper.php
call: ServerQuery-&gt;handlePreDrawing(Object(QueryRequest))
file: 133 - C:\wamp\www\cartoweb3\server\ServerPluginHelper.php
call: ServerPluginHelper-&gt;callHandleFunction(Object(ServerQuery), &quot;handlePreDrawing&quot;)
file: UNKNOWN - UNKNOWN
call: ClientResponderHelper-&gt;handlePreDrawingHelper(Object(ServerQuery))
file: 267 - C:\wamp\www\cartoweb3\common\PluginManager.php
call: call_user_func_array(Array(2), Array(1))
file: 285 - C:\wamp\www\cartoweb3\common\PluginManager.php
call: PluginManager-&gt;callPluginImplementing(Object(ServerQuery), &quot;ClientResponder&quot;, &quot;handlePreDrawing&quot;, Array(0))
file: 301 - C:\wamp\www\cartoweb3\server\Cartoserver.php
call: PluginManager-&gt;callPluginsImplementing(&quot;ClientResponder&quot;, &quot;handlePreDrawing&quot;)
file: 349 - C:\wamp\www\cartoweb3\server\Cartoserver.php
call: Cartoserver-&gt;doGetMap(Object(MapRequest))
file: 370 - C:\wamp\www\cartoweb3\server\Cartoserver.php
call: Cartoserver-&gt;callWithExceptionCheck(&quot;doGetMap&quot;, Object(MapRequest))
file: 81 - C:\wamp\www\cartoweb3\server\MapResultCache.php
call: Cartoserver-&gt;cacheGetMap(Object(MapRequest))
file: 192 - C:\wamp\www\cartoweb3\server\MapResultCache.php
call: MapResultCache-&gt;getMapResultFromServer(Object(MapRequest))
file: 380 - C:\wamp\www\cartoweb3\server\Cartoserver.php
call: MapResultCache-&gt;getMap(Object(MapRequest))
file: 104 - C:\wamp\www\cartoweb3\client\CartoserverService.php
call: Cartoserver-&gt;getMap(Object(MapRequest))
file: 165 - C:\wamp\www\cartoweb3\client\CartoserverService.php
call: CartoserverService-&gt;callDirect(&quot;getMap&quot;, Object(MapRequest))
file: 233 - C:\wamp\www\cartoweb3\client\CartoserverService.php
call: CartoserverService-&gt;callFunction(&quot;getMap&quot;, Object(MapRequest))
file: 916 - C:\wamp\www\cartoweb3\client\Cartoclient.php
call: CartoserverService-&gt;getMap(Object(MapRequest))
file: 1045 - C:\wamp\www\cartoweb3\client\Cartoclient.php
call: Cartoclient-&gt;getMapResultFromRequest(Object(MapRequest))
file: 1220 - C:\wamp\www\cartoweb3\client\Cartoclient.php
call: Cartoclient-&gt;doMain()file: 38 - C:\wamp\www\cartoweb3\htdocs\client.php
call: Cartoclient-&gt;main()file: 3 - C:\wamp\www\cartoweb3\htdocs\Paul.php
call: require_once(&quot;C:\wamp\www\cartoweb3\htdocs\client.php&quot;)
<br clear="all"><br>-- <br>Paul J. Shapley