<?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 Unique Value Error - Esearch in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741027#M564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this may be a bug in the widget but when I try and access the unique values for a data layer that has many unique values present (i.e. over 100), in the 'Add Expression' dialogue the window just seems to spin on the 'Retrieving unique values' (see attached print screen). Have you encountered any other problems with this or is the number of unique values present a problem? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ConsoleCapture.JPG" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/133431_ConsoleCapture.JPG" style="width: 620px; height: 208px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="133430" alt="SearchCapture.JPG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/133430_SearchCapture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 20:39:54 GMT</pubDate>
    <dc:creator>MelissaMeneghetti</dc:creator>
    <dc:date>2015-10-26T20:39:54Z</dc:date>
    <item>
      <title>Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741027#M564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this may be a bug in the widget but when I try and access the unique values for a data layer that has many unique values present (i.e. over 100), in the 'Add Expression' dialogue the window just seems to spin on the 'Retrieving unique values' (see attached print screen). Have you encountered any other problems with this or is the number of unique values present a problem? Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ConsoleCapture.JPG" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/133431_ConsoleCapture.JPG" style="width: 620px; height: 208px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="133430" alt="SearchCapture.JPG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/133430_SearchCapture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 20:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741027#M564</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-26T20:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741028#M565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you post again with the developer tools on the console tab (instead of the network tab)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 20:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741028#M565</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T20:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741029#M566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok just reposted with a different screen shot:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 20:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741029#M566</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-26T20:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741030#M567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;BR /&gt; that helps. Can you attach your config_Enhanced Search.json file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 20:57:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741030#M567</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T20:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741031#M568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok done..but for some reason, when I access the config.json under the server apps (i.e. C:\WAB\arcgis-web-appbuilder-1.2\arcgis-web-appbuilder-1.2\server\apps\2\widgets\eSearch), the config file seems to show only the layers that were downloaded with the esearch zip file...it doesn't seem to be updated with my data layers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741031#M568</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-26T21:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741032#M569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; That is because that file is not the one that is updated and used by the widget you will find the one that I need is located here: C:\WAB\arcgis-web-appbuilder-1.2\arcgis-web-appbuilder-1.2\server\apps\2\configs\eSearch\config_Enhanced Search.json&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741032#M569</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T21:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741033#M570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert that makes better sense...I have attached the file!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:21:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741033#M570</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-26T21:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741034#M571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Have updated my help documentation to help people understand that using "definitionexpression": "1=1", is not necessary and will cause issues. Remove 1=1 from the definition expression field in the widgets UI for all your layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.calhouncounty.org/WAB/V1.2/widgets/eSearch/help/eSearch_Help.htm#ESRI_STEP_6" title="http://gis.calhouncounty.org/WAB/V1.2/widgets/eSearch/help/eSearch_Help.htm#ESRI_STEP_6"&gt;Web AppBuilder for ArcGIS | Help - Enhanced Search widget | Definition Expression&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741034#M571</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T21:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741035#M572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I removed it (see attached) but it still spins with the 'Retrieving Unique Values'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741035#M572</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-26T21:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741036#M573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This is the query that is being sent to your service and it is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.mapservices.ca:6080/arcgis/rest/services/Fairwinds/Base_Data/MapServer/3/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=Unique&amp;amp;returnGeometry=false&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=Unique&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=true&amp;amp;f=pjson" title="http://www.mapservices.ca:6080/arcgis/rest/services/Fairwinds/Base_Data/MapServer/3/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=Unique&amp;amp;returnGeometry=false&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=Unique&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;returnDistinctValues=true&amp;amp;f=pjson"&gt;http://www.mapservices.ca:6080/arcgis/rest/services/Fairwinds/Base_Data/MapServer/3/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;t…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I did some testing using a small integer field with one of my map services and it work fine with almost identical query parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am concerned about the use of "Unique" as a field name in your data (as that would seem to be a reserved keyword in many databases). I would suggest a test by renaming or recreating the field in your data with a underscore (i.e. _unique) or some other more meaningful name and re-testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 22:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741036#M573</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-26T22:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741037#M574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert for the suggestion. I did what you suggested and called the field 'Pipe_ID'. I tested again and unfortunately it is still getting hung up on the unique values (just spins repeatedly). I tried this on another computer using another dataset with more than 100 records and get the same thing. I am using esearch version 1.2.0.3. Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 16:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741037#M574</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-27T16:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741038#M575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; OK, now I see the issue is you are still using ArcGIS Server 10.11. My code is using orderByFields parameter in the query and there is a bug in ArcGIS Server 10.11 with this.&amp;nbsp; I would have to re-code some to check for old versions of server like this and if found not use the orderByFields parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 16:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741038#M575</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-27T16:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741039#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It is actually a one line fix in the code. If you open your apps [install dir]\\server\apps\[app #]\widgets\eSearch\PaginingQueryTask.js file and find these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.version &amp;gt;= 10.1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.query.orderByFields = [this.fieldName];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And change it to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.version &amp;gt; 10.11) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.query.orderByFields = [this.fieldName];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be in business&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 16:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741039#M576</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-10-27T16:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Value Error - Esearch</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741040#M577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert you are a wizard...this worked like a charm!! Thank you so much for working this out for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 16:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/unique-value-error-esearch/m-p/741040#M577</guid>
      <dc:creator>MelissaMeneghetti</dc:creator>
      <dc:date>2015-10-27T16:55:34Z</dc:date>
    </item>
  </channel>
</rss>

