<?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 How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284274#M67551</link>
    <description>&lt;P&gt;This is the attribute table values of two fields but the values inside the fields are domain coded description values by using search cursor i am getting only the code not the values need help or suggestions for that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumarprince8071_0-1682943468084.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69562i7999F38BCCF734FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumarprince8071_0-1682943468084.png" alt="kumarprince8071_0-1682943468084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 12:18:11 GMT</pubDate>
    <dc:creator>kumarprince8071</dc:creator>
    <dc:date>2023-05-01T12:18:11Z</dc:date>
    <item>
      <title>How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284274#M67551</link>
      <description>&lt;P&gt;This is the attribute table values of two fields but the values inside the fields are domain coded description values by using search cursor i am getting only the code not the values need help or suggestions for that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumarprince8071_0-1682943468084.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69562i7999F38BCCF734FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumarprince8071_0-1682943468084.png" alt="kumarprince8071_0-1682943468084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 12:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284274#M67551</guid>
      <dc:creator>kumarprince8071</dc:creator>
      <dc:date>2023-05-01T12:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284293#M67552</link>
      <description>&lt;P&gt;Use the list domains and find it for your featurclass:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;domains = arcpy.da.ListDomains("C:/Boston/Boston.gdb")

for domain in domains:
    print(f"Domain name: {domain.name}")
    if domain.domainType == "CodedValue":
        coded_values = domain.codedValues
        for val, desc in coded_values.items():
            print(f"{val} : {desc}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 13:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284293#M67552</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-05-01T13:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284330#M67555</link>
      <description>&lt;P&gt;I have tried this way but i am getting all the domain coded values for that but i need only the field values like shown in the image. Kindly give me some suggestions on that please.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 14:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284330#M67555</guid>
      <dc:creator>kumarprince8071</dc:creator>
      <dc:date>2023-05-01T14:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284366#M67557</link>
      <description>&lt;P&gt;Filter on the field?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc = r'path to your fc'

field = 'Field you want'

target_field = [f for f in arcpy.ListFields(fc) if field == f.name]

if target_field[0].domain:
    field_domain = [d for d in arcpy.da.ListDomains(arcpy.Describe(fc).path) if d.name == target_field[0].domain][0]
    
    for k,v in field_domain.codedValues.items():
        print(f'domain key: {k}  domain value: {v}')&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 May 2023 15:12:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284366#M67557</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-05-01T15:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284385#M67558</link>
      <description>&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "D:\ARCPY\ArcPy_New\feature_exists.py", line 182, in &amp;lt;module&amp;gt;&lt;BR /&gt;if target_field[0].domain:&lt;BR /&gt;IndexError: list index out of range&lt;/P&gt;&lt;P&gt;Getting this error&lt;/P&gt;&lt;P&gt;Attaching the code also&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kumarprince8071_0-1682955618370.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69585iFDD7A378DDD1CFA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kumarprince8071_0-1682955618370.png" alt="kumarprince8071_0-1682955618370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here one more information is that ASSETGROUP field is a subtype field.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 15:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284385#M67558</guid>
      <dc:creator>kumarprince8071</dc:creator>
      <dc:date>2023-05-01T15:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284402#M67559</link>
      <description>&lt;P&gt;Instead of sending a list of fields, send a single field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 16:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284402#M67559</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-05-01T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the attribute table value of a particular field where the field values are domain assigned values using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284589#M67562</link>
      <description>&lt;P&gt;Yes, i tried it also but i'm not getting any result also not getting any error.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 05:26:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-attribute-table-value-of-a/m-p/1284589#M67562</guid>
      <dc:creator>kumarprince8071</dc:creator>
      <dc:date>2023-05-02T05:26:44Z</dc:date>
    </item>
  </channel>
</rss>

