<?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 Requierd Python Help in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/requierd-python-help/m-p/468512#M36567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear sir&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to update TextString field in "PCL_Anno_New" annotation feature class in a geodatabase. For that I join "Conv_Tab" and try to update. it gives Following error. Can you give me help to correct it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 09:58:41 GMT</pubDate>
    <dc:creator>H_A_D_Padmasiri</dc:creator>
    <dc:date>2014-03-25T09:58:41Z</dc:date>
    <item>
      <title>Requierd Python Help</title>
      <link>https://community.esri.com/t5/python-questions/requierd-python-help/m-p/468512#M36567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear sir&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to update TextString field in "PCL_Anno_New" annotation feature class in a geodatabase. For that I join "Conv_Tab" and try to update. it gives Following error. Can you give me help to correct it? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/requierd-python-help/m-p/468512#M36567</guid>
      <dc:creator>H_A_D_Padmasiri</dc:creator>
      <dc:date>2014-03-25T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Requierd Python Help</title>
      <link>https://community.esri.com/t5/python-questions/requierd-python-help/m-p/468513#M36568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately I do not think cursors will work on joined tables.&amp;nbsp; I think you would be better off using a dictionary with an update cursor.&amp;nbsp; This code is untested but something like this should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy

# tables
source_tab = r"E:\Gampaha\51027202\CM51027202.gdb\CM51027202\PCL_Anno_New"
read_tab = r"C:\CMSupport.gdb\Conv_Tab"

# Create dictionary for update cursor
rows = arcpy.SearchCursor(read_tab)
cur_dict = dict((r.Nam_Idm, r.Name_Sin) for r in rows if r.Name_Sin)
del rows

# Update cursor to fill in rows
cur = arcpy.UpdateCursor(source_tab)
for row in cur:
&amp;nbsp;&amp;nbsp;&amp;nbsp; if row.Text in cur_dict:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row.TextString = cur_dict[row.Text]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.updateRow(row)
del cur, row
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/requierd-python-help/m-p/468513#M36568</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T20:46:05Z</dc:date>
    </item>
  </channel>
</rss>

