<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Find Task on XY Event in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44577#M3838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hmm...is your endpoint publicly accessible? I'm not sure how helpful I can be w/o access to test for myself. If it's not available publicly, I would say it's time to talk to tech support.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, this particular service is internal.&amp;nbsp; I submitted the issue to tech support this morning.&amp;nbsp; Hopefully they'll be able to figure out what's going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 14:20:39 GMT</pubDate>
    <dc:creator>StephanieWidas</dc:creator>
    <dc:date>2011-05-03T14:20:39Z</dc:date>
    <item>
      <title>Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44567#M3828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have XY data in SQL that I have added as an event layer to a map document.&amp;nbsp; That .mxd was then used to create a map service.&amp;nbsp; I can sucessfully use the Find Task in the REST services directory to find a specific record, but when I try to execute the find task using the Javascript API, it fails.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I exported my data to a personal geodatabase and created a map service off of the new feature class.&amp;nbsp; The Find Task worked perfectly.&amp;nbsp; It works if the source data of the map service is a feature class, but fails if it is an XY event layer.&amp;nbsp; Can the Find Task be used on XY events or that a limitation of the task?&amp;nbsp; Perhaps it is just a syntax error when defining my find parameters? &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams = new esri.arcgis.gmaps.FindParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.layerIds = [0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchFields = ["REQUESTID"];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchText = requestID;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.contains = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findTask.execute(findParams, zoomToRecord);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44567#M3828</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-04-28T16:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44568#M3829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have XY data in SQL that I have added as an event layer to a map document.&amp;nbsp; That .mxd was then used to create a map service.&amp;nbsp; I can sucessfully use the Find Task in the REST services directory to find a specific record, but when I try to execute the find task using the Javascript API, it fails.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I exported my data to a personal geodatabase and created a map service off of the new feature class.&amp;nbsp; The Find Task worked perfectly.&amp;nbsp; It works if the source data of the map service is a feature class, but fails if it is an XY event layer.&amp;nbsp; Can the Find Task be used on XY events or that a limitation of the task?&amp;nbsp; Perhaps it is just a syntax error when defining my find parameters? &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams = new esri.arcgis.gmaps.FindParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.layerIds = [0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchFields = ["REQUESTID"];

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchText = requestID;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.contains = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findTask.execute(findParams, zoomToRecord);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated.&lt;BR /&gt;Thanks!&lt;BR /&gt;~Stephanie&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;XY Event layer is a temorary feature layer stored in memory or system "temp" folder. It is not persisent. Most likely your none local ArcGIS accounts (SOM, SOC, ArcGISWebServices) has no access to it and no surprise that you failed in getting findTask.&amp;nbsp; Exported as permanent feature class is the right thing to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44568#M3829</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-10T21:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44569#M3830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There may be a way around this.&amp;nbsp; I believe I have used it in the past but it has been a while.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the Make Query Table tool on your table before you create your Event Layer.&amp;nbsp; This will add an ObjectID field, which is required for selections, and just may be required for the find task as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006r000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006r000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 21:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44569#M3830</guid>
      <dc:creator>MikeLong</dc:creator>
      <dc:date>2011-04-28T21:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44570#M3831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your suggestions.&amp;nbsp; I will look into the Make Query Table tool.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know why the find task will work on the XY layer when it is executed through the REST services directory but not through the Javascript API?&amp;nbsp; I'm a little lost as to why the find task works in one but not the other.&amp;nbsp; Since it works in REST, wouldn't that mean that the ArcGIS accounts have access to it?&amp;nbsp; Or are they unrelated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 11:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44570#M3831</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-04-29T11:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44571#M3832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Stess if it works via the REST endpoint, but not with JS, then there's either a bug in the JS API or a problem with your code. Can you post a more complete code sample?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 15:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44571#M3832</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-04-29T15:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44572#M3833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;swingley - I'm guessing it is probably something with my code! Here are a few more lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function searchRequestID(requestID) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gmap.closeInfoWindow();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapExtension.removeFromMap(gOverlays);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gmap.setCenter(new GLatLng(34.8370,-82.3658),12);
&amp;nbsp; //Clear layer definitions
&amp;nbsp; var layerDefinitions = [];
&amp;nbsp; layerDefinitions[0] = "";
&amp;nbsp; layer.setLayerDefinitions(layerDefinitions);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gmap.closeInfoWindow();
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var findTask, findParams;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findTask = new esri.arcgis.gmaps.FindTask("&lt;SPAN style="font-style:italic;"&gt;my map service url&lt;/SPAN&gt;");
&amp;nbsp; findParams = new esri.arcgis.gmaps.FindParameters();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.returnGeometry = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.layerIds = [0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchFields = ["REQUESTID"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.searchText = requestID;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findParams.contains = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; findTask.execute(findParams, zoomToRecord);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapExtension.removeFromMap(gOverlays);
 }

&amp;nbsp;&amp;nbsp; function zoomToRecord(results){

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result, attribs, feature;
&amp;nbsp; if (results == null){
&amp;nbsp;&amp;nbsp; alert("nothing here");
&amp;nbsp; }
&amp;nbsp; if (results.findResults.length &amp;gt;0){
&amp;nbsp;&amp;nbsp; var identifyContent = "Put content here &amp;lt;/br&amp;gt;";
&amp;nbsp;&amp;nbsp; var infoWindowOptions = {
&amp;nbsp;&amp;nbsp; content:identifyContent};
&amp;nbsp;&amp;nbsp; var overlayOptions = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strokeColor:"#FF0000",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strokeWeight:4,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strokeOpacity:0.75,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fillColor:"#FF0000",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fillOpacity:0.0};
&amp;nbsp;&amp;nbsp; gOverlays = mapExtension.addToMap(results, overlayOptions, infoWindowOptions);

&amp;nbsp;&amp;nbsp; for (i=0, il=results.findResults.length; i&amp;lt;il; i++){
&amp;nbsp;&amp;nbsp;&amp;nbsp; result = results.findResults&lt;I&gt;;
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature = result.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp; attribs = feature.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (attribs["Shape"] == "Polygon" || attribs["Shape"] == "Polyline"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureGeometry = result.feature.geometry[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureBounds = featureGeometry.getBounds();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var zoomLevel = gmap.getBoundsZoomLevel(featureBounds);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureCenter = featureBounds.getCenter();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gmap.setCenter(featureCenter, zoomLevel);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(attribs["Shape"] == "Point"){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureGeometry = result.feature.geometry[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gmap.setCenter(featureGeometry.getLatLng(), 15);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; if (results.findResults.length &amp;gt; 1){
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("There are " + results.findResults.length + " locations throughout the city.");
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&amp;nbsp; else if (results.findResults.length == 0){
&amp;nbsp;&amp;nbsp; alert("This project does not have a map location. For a project description, click on the information button in the table.");
&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As part of my troubleshooting, I added a line in there that checks if any results are returned and alerts me if nothing is found.&amp;nbsp; It's not returning any results...I get the "nothing here" message.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached a screenshot that shows that I get results when running the find task from REST.&amp;nbsp; I see that it has a FeatureID of -1.&amp;nbsp; Would that cause a problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:42:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44572#M3833</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2021-12-10T21:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44573#M3834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was hoping that a fresh mind after the weekend would help, but I'm still stumped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used map services based on XY events in Flex without a hitch.&amp;nbsp; I can query, etc. in my Flex apps and I can execute the Find Task just fine from the REST endpoint.&amp;nbsp; This leads me to believe that it is a problem related to the javascript API or something along those lines.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used Fiddler and I get the following when I try to execute the Find Task from my app:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.arcgis.gmaps._RestRequest._requestQueue.ArcGISJson_40631967163708915._callback({"error":{"code":500,"message":"Object reference not set to an instance of an object.","details":[]}});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps that is a clue to the problem, but I don't know what to do with it.&amp;nbsp; Is this problem something that can be fixed (an error in my code, etc.)?&amp;nbsp; Or is a Find just not going to work in Javascript (in other words I just need to scrap the find or switch to Flex)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 12:53:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44573#M3834</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-02T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44574#M3835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which version of the Flex API were you using? And which version of ArcGIS Server?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 15:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44574#M3835</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-02T15:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44575#M3836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are running ArcGIS Server 9.3.1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a couple different Flex apps using versions 1.2 and 1.3 of the ArcGIS for Flex API.&amp;nbsp; We have used map services built on XY event layers in the past without any problems.&amp;nbsp; For example, we use the Live Layer widget on XY layers -- that widget runs a query task and returns results just fine.&amp;nbsp; Just to make sure there wasn't something wrong with the map service that I'm using in this Javascript project, I used it in a Live Layer widget in a test Flex app.&amp;nbsp; It worked fine, so there shouldn't be anything wrong with the map service itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;~Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 17:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44575#M3836</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-02T17:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44576#M3837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm...is your endpoint publicly accessible? I'm not sure how helpful I can be w/o access to test for myself. If it's not available publicly, I would say it's time to talk to tech support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 19:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44576#M3837</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-02T19:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44577#M3838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hmm...is your endpoint publicly accessible? I'm not sure how helpful I can be w/o access to test for myself. If it's not available publicly, I would say it's time to talk to tech support.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, this particular service is internal.&amp;nbsp; I submitted the issue to tech support this morning.&amp;nbsp; Hopefully they'll be able to figure out what's going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 14:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44577#M3838</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-03T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44578#M3839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 18:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44578#M3839</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-03T18:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44579#M3840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I worked with ESRI tech support and they concluded that the issue with the Find Task was related to the JSON output.&amp;nbsp; The find task executed from within the ArcGIS Services Directory (REST) worked because the results are returned as html by default.&amp;nbsp; The format can be changed to JSON by appending f=json to the end of the text in the address bar.&amp;nbsp; When this was appended, the JSON output failed.&amp;nbsp; The JavaScript API requires the JSON format, so that is why the find task was failing in my application.&amp;nbsp; Why this fails is still not known.&amp;nbsp; Tech support said that it looks like it is probably a bug in 9.3/9.3.1.&amp;nbsp; The problem could not be replicated in an ArcGIS Server 10 environment.&amp;nbsp; They will do further investigating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some of my own troubleshooting on the find task during this past week.&amp;nbsp; I tried 3 different data sources for my XY event layer in my map service (directly from SQL Server, a .dbf, and a personal geodatabase table).&amp;nbsp; It appears that the find task works OK as long as the XY Event layer is not directly hitting a table in SQL Server.&amp;nbsp; If the SQL table is exported to a .dbf or pgdb table and that exported table is then used to create the event layer, the find task worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, tech support has helped me get the Query Task to work properly.&amp;nbsp; I am able to use that instead of the Find Task in my application.&amp;nbsp; The problem I was running into with the Query Task (from the query task example in the resource center - &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/EN/webapi/javascript/gmaps/samples/querytask/query_point.html"&gt;http://help.arcgis.com/EN/webapi/javascript/gmaps/samples/querytask/query_point.html&lt;/A&gt;&lt;SPAN&gt;) was incorrect locations of my results on the Google map.&amp;nbsp; The results were being lined up across the top (see attachment).&amp;nbsp; There is a line of code in the example that needed to be commented out. &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;query.queryGeometry = bounds;&lt;/PRE&gt;&lt;SPAN&gt; Once I took out that line, my results displayed in the correct location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If/when I learn anything more about the Find Task from ESRI tech support, I will be sure to post an update.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 17:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44579#M3840</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-11T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44580#M3841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the follow-up and update! Glad you're making some progress.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 18:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44580#M3841</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-05-11T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44581#M3842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tech support was able to reproduce the problem and it has been logged as a bug - NIM068764.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 17:39:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44581#M3842</guid>
      <dc:creator>StephanieWidas</dc:creator>
      <dc:date>2011-05-31T17:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find Task on XY Event</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44582#M3843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tech support was able to reproduce the problem and it has been logged as a bug - NIM068764.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AAAArrrggghhhh - all afternoon I've struggled with this, just about to give up when I cam e to the conclusion the FIND didn't play nice with event layers, then I found it was a bug.&amp;nbsp; Doh!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 15:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-task-on-xy-event/m-p/44582#M3843</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2011-11-18T15:27:04Z</dc:date>
    </item>
  </channel>
</rss>

