<?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 [esri.renderers.UniqueValueRenderer] #getSymbol() Please use getSymbolAsync if valueExpression is used in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-renderers-uniquevaluerenderer-getsymbol/m-p/1165774#M77049</link>
    <description>&lt;P&gt;&lt;STRONG&gt;[esri.renderers.UniqueValueRenderer] #getSymbol() Please use getSymbolAsync if valueExpression is used&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are getting the above error messsage when using a valueExpression with a unique value renderer. Code runs on JS API 4.22.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The valueExpression uses a When statement with the IndexOf function. The IndexOf function references an array of 3k to 6k guids -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IndexOf(['guid1','guid2','guid3',...], $feature.refname) &amp;gt; -1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code&amp;nbsp; works and the renderer displays the data correctly. However, we get thousands of errors in the browser's console. We'd rather not release this app if it emits those errors, even if they are somewhat hidden.&lt;/P&gt;&lt;P&gt;I've seen that getSymbolAsync is a method of DictionaryRenderer. Any ideas why it is happening with a uvr? Any ideas of how to suppress it or othewise make it go away?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 17:37:37 GMT</pubDate>
    <dc:creator>RobStauder</dc:creator>
    <dc:date>2022-04-19T17:37:37Z</dc:date>
    <item>
      <title>[esri.renderers.UniqueValueRenderer] #getSymbol() Please use getSymbolAsync if valueExpression is used</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-renderers-uniquevaluerenderer-getsymbol/m-p/1165774#M77049</link>
      <description>&lt;P&gt;&lt;STRONG&gt;[esri.renderers.UniqueValueRenderer] #getSymbol() Please use getSymbolAsync if valueExpression is used&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are getting the above error messsage when using a valueExpression with a unique value renderer. Code runs on JS API 4.22.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The valueExpression uses a When statement with the IndexOf function. The IndexOf function references an array of 3k to 6k guids -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IndexOf(['guid1','guid2','guid3',...], $feature.refname) &amp;gt; -1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code&amp;nbsp; works and the renderer displays the data correctly. However, we get thousands of errors in the browser's console. We'd rather not release this app if it emits those errors, even if they are somewhat hidden.&lt;/P&gt;&lt;P&gt;I've seen that getSymbolAsync is a method of DictionaryRenderer. Any ideas why it is happening with a uvr? Any ideas of how to suppress it or othewise make it go away?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 17:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-renderers-uniquevaluerenderer-getsymbol/m-p/1165774#M77049</guid>
      <dc:creator>RobStauder</dc:creator>
      <dc:date>2022-04-19T17:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: [esri.renderers.UniqueValueRenderer] #getSymbol() Please use getSymbolAsync if valueExpression is used</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-renderers-uniquevaluerenderer-getsymbol/m-p/1165860#M77054</link>
      <description>&lt;P&gt;Can you provide a link to an app that demonstrates this issue? That way we can debug and offer suggestions. There may be an Arcade bug, rendering issue, or there could be an issue with the expression.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 20:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-renderers-uniquevaluerenderer-getsymbol/m-p/1165860#M77054</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-04-19T20:09:02Z</dc:date>
    </item>
  </channel>
</rss>

