<?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: CreateRenderer Failing in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667622#M13263</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1292"&gt;@MichaelTodd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CanCreateRenderer method checks if the renderer being applied to the layer is the appropriate choice -&lt;BR /&gt;Certain renderers are only appropriate for certain layer types or for layers of a certain geometry type. For example a Dot Density Renderer can only be applied to a polygon layer, a Heat Map Renderer can only be applied to a point layer.&lt;BR /&gt;&lt;BR /&gt;The method does not check if all the renderer values being applied are correct - such as are the correct fields being used, etc.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2025 18:32:48 GMT</pubDate>
    <dc:creator>UmaHarano</dc:creator>
    <dc:date>2025-11-20T18:32:48Z</dc:date>
    <item>
      <title>CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1666786#M13257</link>
      <description>&lt;P&gt;Under what circumstances would a layer CanCreateRenderer method return true, yet running CreateRenderer with the same renderer caused the following error:&lt;/P&gt;&lt;P&gt;ArcGIS.Desktop.Mapping.MappingException: 'Error HRESULT E_FAIL has been returned from a call to a COM component.'&lt;BR /&gt;&lt;BR /&gt;Can't nail down why the error. Everything seems to be set up correctly, using a FeatureLayer, all required elements are set in the classes. To top it off, this code has been working since at least ArcGIS Pro 2.8 and has just recently started to crash Pro. Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 17:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1666786#M13257</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-18T17:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667319#M13258</link>
      <description>&lt;P&gt;Can you please share your code and the type of layer you are rendering?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 20:46:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667319#M13258</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2025-11-19T20:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667321#M13259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Some information from &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76666.html" target="_self"&gt;ArcGIS Pro API&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Certain renderers are only appropriate for certain layer types or for layers of a certain geometry type. For example a Dot Density Renderer can only be applied to a polygon layer, a Heat Map Renderer can only be applied to a point layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please give us more information about your layer shape type, renderer type and etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 20:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667321#M13259</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-11-19T20:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667363#M13260</link>
      <description>&lt;P&gt;I'll provide more details, including the code, in the other response in a moment, but my&amp;nbsp;&lt;EM&gt;real&lt;/EM&gt; question, given your statement, is: what utility does the CanCreateRenderer method provide if it returns true, yet the CreateRenderer method fails when using the same ValueRenderer in both cases?&amp;nbsp; If it had responded with false, I would have looked deeper into the code (which, again, has been working with the same layer for about 4 years now) as the source of the problem. As it stands, I cannot rely on CanCreateRenderer to vet whether or not the renderer I created is valid with the layer in question.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 21:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667363#M13260</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-19T21:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667365#M13261</link>
      <description>&lt;P&gt;The layer I am trying to alter is a polyline. I am using a UniqueValueRenderer with one field and five values to differentiate symbology. And, again, this code has worked for about four years now, with no changes to it, so I am unclear why it is failing with that error now. Code is attached.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 21:45:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667365#M13261</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-19T21:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667622#M13263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1292"&gt;@MichaelTodd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CanCreateRenderer method checks if the renderer being applied to the layer is the appropriate choice -&lt;BR /&gt;Certain renderers are only appropriate for certain layer types or for layers of a certain geometry type. For example a Dot Density Renderer can only be applied to a polygon layer, a Heat Map Renderer can only be applied to a point layer.&lt;BR /&gt;&lt;BR /&gt;The method does not check if all the renderer values being applied are correct - such as are the correct fields being used, etc.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 18:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667622#M13263</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2025-11-20T18:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667625#M13264</link>
      <description>&lt;P&gt;Got it, though given that result I would expect the method to be named "IsValidRendererType", not "CanCreateRenderer". Neither here nor there, of course.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Have you had an opportunity to examine the code? Is there anything that stands out as being jarringly incorrect? I will say that "status" is a valid field, and the symbologies (to my eye) also appear valid. Just can't narrow down what's causing the failure to create the renderer.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2025 18:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667625#M13264</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-20T18:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667950#M13266</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1292"&gt;@MichaelTodd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I used your code on a mock up data set with "status" fields. It seems to work for me. I can't see anything wrong with the code. We will have to debug with your data to see what is actually happening.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UmaHarano_0-1763751382667.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/144287i3C8D450BBDB806C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UmaHarano_0-1763751382667.png" alt="UmaHarano_0-1763751382667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2025 18:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1667950#M13266</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2025-11-21T18:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668065#M13267</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tested your code on ArcGIS Pro 3.5 and can say the same as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/9021"&gt;@UmaHarano&lt;/a&gt;&amp;nbsp;. It works as in Uma's screenshot.&lt;/P&gt;&lt;P&gt;What version of ArcGIS Pro do you use?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2025 13:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668065#M13267</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-11-23T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668208#M13269</link>
      <description>&lt;P&gt;I am using ArcGIS Pro 3.5.4.57366.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 15:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668208#M13269</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-24T15:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668210#M13270</link>
      <description>&lt;P&gt;Attached is a file geodatabase with the two files in question. I assume the code will work with them since they were exported to a file geodb. I have a feeling that the layers themselves, currently living in our Enterprise geodb (Sql Server) are corrupted (usable, but corrupted). If the attached layers work, I would hazard that as being the case.&lt;BR /&gt;If so, I suppose the next step is: how do I fix those layers in the Sql Server without breaking things?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 15:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668210#M13270</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-24T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668211#M13271</link>
      <description>&lt;P&gt;Because, of course I forgot the attachment.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 15:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668211#M13271</guid>
      <dc:creator>MichaelTodd</dc:creator>
      <dc:date>2025-11-24T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: CreateRenderer Failing</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668261#M13273</link>
      <description>&lt;P&gt;Your code works with file gdb you attached.&lt;/P&gt;&lt;P&gt;Check your map content for broken layers. If they exist, remove them and try your code&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 17:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/createrenderer-failing/m-p/1668261#M13273</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-11-24T17:49:35Z</dc:date>
    </item>
  </channel>
</rss>

