<?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: Filter Issue with Underlying Query CHAR_LENGTH in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334882#M8561</link>
    <description>&lt;P&gt;I have seen an issue where the filter widget will not load values after a change to the database schema. I think I cleared the error by deleting and re-adding the filter.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2023 12:34:04 GMT</pubDate>
    <dc:creator>JeffreyThompson2</dc:creator>
    <dc:date>2023-10-04T12:34:04Z</dc:date>
    <item>
      <title>Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334796#M8554</link>
      <description>&lt;P&gt;Hi, we are running an 11.1 Portal and no issues with the built in ExB 1.10. But using the latest 1.12 external from the Portal with an app registration and having troubles.&lt;/P&gt;&lt;P&gt;The Filter widget is not loading the unique value list and seeing a handful of errors in the console. The main one being it cannot execute a query against the AGS endpoint.&lt;/P&gt;&lt;P data-unlink="true"&gt;Example Endpoint:&amp;nbsp;https://x.domain.com/arcgis/rest/services/Global/Task/MapServer/0/query&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example WHERE:&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(FIELD_NAME IS NOT NULL AND CHAR_LENGTH(FIELD_NAME) &amp;gt; 0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;With some trial and error testing, see the issue is with the CHAR_LENGTH function. The error in Server Manager is: "&lt;SPAN&gt;'CHAR_LENGTH' is not a recognized built-in function name.]". The underlying geodatabase is on SQL Server 2016.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Any way&lt;SPAN&gt;&amp;nbsp;to bypass this CHAR_LENGTH() check? Or have it use LEN() instead? The seems to be a bug depending on the underlying database that was introduced between 1.10 and 1.12.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks for any help!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 23:06:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334796#M8554</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2023-10-03T23:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334882#M8561</link>
      <description>&lt;P&gt;I have seen an issue where the filter widget will not load values after a change to the database schema. I think I cleared the error by deleting and re-adding the filter.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 12:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334882#M8561</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2023-10-04T12:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334946#M8566</link>
      <description>&lt;P&gt;Thanks for the tip&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp;, I tried re-adding the filter, tried a brand new ExB app, and tried connecting to a completely different geodatabase (Oracle instead of SQL Server). They all unfortunately error on the filter query. Seemingly because they try to use the CHAR_LENGTH() function. Only option that works for me currently is with the Portal built in 1.10 ExB filter.&lt;/P&gt;&lt;P&gt;Thanks again though for the idea to try!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 15:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1334946#M8566</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2023-10-04T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1335190#M8587</link>
      <description>&lt;P&gt;I am no ExB expert and also new to the standalone version but found a fix. In the file "\ArcGISExperienceBuilder\client\dist\jimu-core\index.js", search for "&lt;SPAN&gt;CHAR_LENGTH" and replace with "LEN".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not sure what the ramifications are for this change when deploying, but for the Builder and Published Item it seems to work. It likely&amp;nbsp;will break when using other flavors of databases though. Hopefully this gets a proper fix in an update.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2023 21:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1335190#M8587</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2023-10-04T21:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1342535#M9010</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3137"&gt;@RyanCoodey&lt;/a&gt;&amp;nbsp;Glad that you've found a workaround, and we will log this in for the details. Thanks for catching this.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 08:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1342535#M9010</guid>
      <dc:creator>TonghuiMing</dc:creator>
      <dc:date>2023-10-27T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1557857#M15897</link>
      <description>&lt;P&gt;We are using ArcGIS Online. We have the same issue with Experience Builder query and filter widgets. The services are provided by a SQL server 2017 instance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are unable to implement the suggested solution and have not found any workarounds.&lt;/P&gt;&lt;P&gt;Will this issue be fixed?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4655"&gt;@TonghuiMing&lt;/a&gt;&amp;nbsp;any suggestions? Should I&amp;nbsp;contact Esri Technical Support?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 04:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1557857#M15897</guid>
      <dc:creator>GiuseppeBaiamonte</dc:creator>
      <dc:date>2024-11-13T04:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Issue with Underlying Query CHAR_LENGTH</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1684731#M22484</link>
      <description>&lt;P&gt;Current Experience Builder in ArcGIS Online (February 2026) has the same issue.&amp;nbsp;&lt;SPAN&gt;CHAR_LENGTH its only valid in service that use&amp;nbsp;ArcGIS SQL syntax. According to the following article, if all layers in the service come from the same datasource location and this location is a Enterprise Database, the service use RBDMS Sintax for layer queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/es/pro-app/latest/help/mapping/navigation/sql-reference-for-elements-used-in-query-expressions.htm" target="_self"&gt;SQL reference for query expressions used in ArcGIS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Other possibility is that ArcGIS Server has been configured to avoid standardized queries&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/windows/about-standardized-queries.htm" target="_self"&gt;About standardized queries&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use a Customize version of ExB is not a valid solution for this issue. Exb should be able to deal with this configuration.&lt;/P&gt;&lt;P&gt;Why haven't they resolved this issue yet?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 16:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/filter-issue-with-underlying-query-char-length/m-p/1684731#M22484</guid>
      <dc:creator>DanielGarcia</dc:creator>
      <dc:date>2026-02-17T16:24:29Z</dc:date>
    </item>
  </channel>
</rss>

