<?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 Find.find works with local Map Service but not with Hosted Feature Service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-find-works-with-local-map-service-but-not/m-p/1371254#M83371</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a strange problem. We are moving all the services located on our local arcgis server to arcgis online. I'm trying to update an in-house form application that uses these services. When I publish the same data to arcgis online, the find.find comes back with an error shown in the attached RejectedPromise.png image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// The find() performs a LIKE SQL query based on the provided text value
// showResults() is called once the promise returned here resolves
find.find(findUrl, params).then(showResults).catch(rejectedPromise);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app was running in 4.7 for several years, until we started moving to agol. When I called tech support this morning, they told me to update it to 4.28 and see what happens. Anyway, i took their find sample on the sdk site: &lt;A title="Developers Find Sample" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=find" target="_blank" rel="noopener"&gt;Developers Find Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I edited it to use local services and hosted services by commenting out a line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Create a URL pointing to a map service
const findUrl = "https://services1.arcgis.com/*********/arcgis/rest/services/Partest/FeatureServer";
//const findUrl = "https://***********/rest/services/RealEstate/Parcels/MapServer";

// Set parameters to only query the Counties layer by name
const params = new FindParameters({
  layerIds: [0],
  searchFields: ["PARCELID"]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exact same data in a local service works while the hosted service bombs. I tried it with other services we are moving like addresses and it's the same thing. I even modified the find example to work with our garbage collection hosted service that has always been hosted published right from Pro and it's the same thing.&lt;/P&gt;&lt;P&gt;The only difference is the type of service, Feature Server or Map Server. Their find example uses a Map Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I will call support tomorrow and show them the testing app I made and see what happens. Does anyone have any information that might help me find a resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2024 20:58:31 GMT</pubDate>
    <dc:creator>MichaelKohler</dc:creator>
    <dc:date>2024-01-17T20:58:31Z</dc:date>
    <item>
      <title>Find.find works with local Map Service but not with Hosted Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-find-works-with-local-map-service-but-not/m-p/1371254#M83371</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a strange problem. We are moving all the services located on our local arcgis server to arcgis online. I'm trying to update an in-house form application that uses these services. When I publish the same data to arcgis online, the find.find comes back with an error shown in the attached RejectedPromise.png image.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// The find() performs a LIKE SQL query based on the provided text value
// showResults() is called once the promise returned here resolves
find.find(findUrl, params).then(showResults).catch(rejectedPromise);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app was running in 4.7 for several years, until we started moving to agol. When I called tech support this morning, they told me to update it to 4.28 and see what happens. Anyway, i took their find sample on the sdk site: &lt;A title="Developers Find Sample" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=find" target="_blank" rel="noopener"&gt;Developers Find Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I edited it to use local services and hosted services by commenting out a line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Create a URL pointing to a map service
const findUrl = "https://services1.arcgis.com/*********/arcgis/rest/services/Partest/FeatureServer";
//const findUrl = "https://***********/rest/services/RealEstate/Parcels/MapServer";

// Set parameters to only query the Counties layer by name
const params = new FindParameters({
  layerIds: [0],
  searchFields: ["PARCELID"]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exact same data in a local service works while the hosted service bombs. I tried it with other services we are moving like addresses and it's the same thing. I even modified the find example to work with our garbage collection hosted service that has always been hosted published right from Pro and it's the same thing.&lt;/P&gt;&lt;P&gt;The only difference is the type of service, Feature Server or Map Server. Their find example uses a Map Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I will call support tomorrow and show them the testing app I made and see what happens. Does anyone have any information that might help me find a resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 20:58:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-find-works-with-local-map-service-but-not/m-p/1371254#M83371</guid>
      <dc:creator>MichaelKohler</dc:creator>
      <dc:date>2024-01-17T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find.find works with local Map Service but not with Hosted Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-find-works-with-local-map-service-but-not/m-p/1371732#M83382</link>
      <description>&lt;P&gt;FeatureServer services don't have a /find endpoint.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;find works for MapServer endpoints&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 16:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-find-works-with-local-map-service-but-not/m-p/1371732#M83382</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2024-01-18T16:45:27Z</dc:date>
    </item>
  </channel>
</rss>

