<?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: Update Attribute with Description from Domain List using a Model in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394033#M13397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a couple of approaches. First is to convert the domain to a temporary table using the GP tool. Then by using joins and field calculations you could populate the descriptions into the appropriate fields. Another approach would be to export to a shapefile while setting the environment variable (arcpy.env.transferDomains). This would transfer the descriptions rather than the coded values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 21:52:07 GMT</pubDate>
    <dc:creator>ThomasTri</dc:creator>
    <dc:date>2014-11-06T21:52:07Z</dc:date>
    <item>
      <title>Update Attribute with Description from Domain List using a Model</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394032#M13396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is something I would think would be easy, but I'm stumbling around...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a model that I'm using to transfer a feature class from an Oracle SDE to a file GDB (using the &lt;EM&gt;Feature Class to Feature Class&lt;/EM&gt; tool).&amp;nbsp; Just to make the illustration simple, in the Field Map parameter for that tool, I have two fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Construction_Status_ID (which comes from the SDE -- Long datatype -- but displays the coded value/description from the domain list)&lt;/LI&gt;&lt;LI&gt;Construction_Status (which is a field I added --Text datatype -- and I mapped the Construction_Status_ID to it)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the tool runs, and I look at the attribute table, I can see the translated description in the Construction_Status_ID field but in the Construction_Status field, I just see the coded value.&amp;nbsp; It's weird too that the Construction_Status_ID field is right-justified (just like it is for long or integer datatypes), but I guess that's to be expected since that datatype is actually a long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any rate, what I'm wanting to do is to update the Construction_Status field with my actual description value from my domain list (instead of the coded value).&amp;nbsp; I'm needing the data persisted for other steps down the line, so that's why I'm wanting the text description as opposed to the numerical value equivalent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, here are what the values look like in the feature class that's in the GDB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(198, 198, 198); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;ObjectID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;Construction_Status_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: left; background-color: #f2f2f2; color: #505050; padding: 6px;" valign="middle"&gt;&lt;STRONG&gt;Construction_Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px; text-align: right;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 6px; text-align: right;"&gt;Existing&lt;/TD&gt;&lt;TD style="padding: 6px; text-align: left;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px; text-align: right;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 6px; text-align: right;"&gt;Proposed&lt;/TD&gt;&lt;TD style="padding: 6px; text-align: left;"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 6px; text-align: right;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 6px; text-align: right;"&gt;Retired&lt;/TD&gt;&lt;TD style="padding: 6px; text-align: left;"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I'd like to be able to update or persist the actual text values during the Feature Class to Feature Class step, I'm not seeing a way to do it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm looking for a tool that can accept a domain list as an input, and then map my coded value to the Construction_Status_ID field and then update the Construction_Status field to the domain list's description value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried Field Calculator tool, but I didn't see a way to map or interface with a domain list -- although I could create a VB or Python function that would run over each row.&amp;nbsp; However, I'd have to hardcode each value for the lookup and I'd want to stay away from that if at all possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to update an attribute in this way using a domain list as an input source?&amp;nbsp; My feature classes will have over 500K rows in case that plays a part in the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any ideas...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 18:51:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394032#M13396</guid>
      <dc:creator>KaelDowdy</dc:creator>
      <dc:date>2014-11-06T18:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Update Attribute with Description from Domain List using a Model</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394033#M13397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a couple of approaches. First is to convert the domain to a temporary table using the GP tool. Then by using joins and field calculations you could populate the descriptions into the appropriate fields. Another approach would be to export to a shapefile while setting the environment variable (arcpy.env.transferDomains). This would transfer the descriptions rather than the coded values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 21:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394033#M13397</guid>
      <dc:creator>ThomasTri</dc:creator>
      <dc:date>2014-11-06T21:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update Attribute with Description from Domain List using a Model</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394034#M13398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought about converting the domain list to a table and doing a join.&amp;nbsp; I was hoping there'd be a more direct way to do it, but I think this option will work.&amp;nbsp; Just be curious on the performance...will have to test it out tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 01:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/update-attribute-with-description-from-domain-list/m-p/394034#M13398</guid>
      <dc:creator>KaelDowdy</dc:creator>
      <dc:date>2014-11-07T01:12:47Z</dc:date>
    </item>
  </channel>
</rss>

