<?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: How do I change an existing value of a coded value domain? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-change-an-existing-value-of-a-coded-value/m-p/625995#M48800</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the examples using the &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-domains-toolset.htm"&gt;Domains toolset (ArcMap) &lt;/A&gt;or&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/an-overview-of-the-domains-toolset.htm"&gt;Pro.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically look at code for Delete Coded Value To Domain and Add Coded value to Domain.&amp;nbsp; Delete the old value, add the new value.&amp;nbsp; There is a tool to resort the the domain which may be of benefit, particularly when using tools like Collector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; you are not changing the code (just the description), you probably shouldn't have to change your data.&amp;nbsp; If you do need to change your data, you could use an update cursor and a where statement (where field using domain equals the code value being replaced).&amp;nbsp; Alternatively, you could use the Field Calculator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2020 19:24:56 GMT</pubDate>
    <dc:creator>RandyBurton</dc:creator>
    <dc:date>2020-05-20T19:24:56Z</dc:date>
    <item>
      <title>How do I change an existing value of a coded value domain?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-change-an-existing-value-of-a-coded-value/m-p/625994#M48799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a coded value domain that I need to change one of the entries from the text "Medium" to "Moderate". This domain is used in two feature classes and several fields in those feature classes. I need to make the change while also changing the value of the fields in the row in the feature classes that have the old value. In other words, I need to change the domain and change the values in the feature classes while not breaking the linkage between the domain and feature classes. I would like to do this via arcpy, but I don't see the tools to do it. I can export the domain to a table, change the values in the table, and recreate the domain from the updated table, and then assign that domain to each feature class, but I don't believe that will change the existing row values. Any suggestions for how to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 16:53:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-change-an-existing-value-of-a-coded-value/m-p/625994#M48799</guid>
      <dc:creator>ShawnHolyoak1</dc:creator>
      <dc:date>2020-05-20T16:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I change an existing value of a coded value domain?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-change-an-existing-value-of-a-coded-value/m-p/625995#M48800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the examples using the &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-domains-toolset.htm"&gt;Domains toolset (ArcMap) &lt;/A&gt;or&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/an-overview-of-the-domains-toolset.htm"&gt;Pro.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically look at code for Delete Coded Value To Domain and Add Coded value to Domain.&amp;nbsp; Delete the old value, add the new value.&amp;nbsp; There is a tool to resort the the domain which may be of benefit, particularly when using tools like Collector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; you are not changing the code (just the description), you probably shouldn't have to change your data.&amp;nbsp; If you do need to change your data, you could use an update cursor and a where statement (where field using domain equals the code value being replaced).&amp;nbsp; Alternatively, you could use the Field Calculator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 19:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-change-an-existing-value-of-a-coded-value/m-p/625995#M48800</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2020-05-20T19:24:56Z</dc:date>
    </item>
  </channel>
</rss>

