<?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: Example using search cursor to copy data from cells in attribute table A to attribute table B in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327920#M68599</link>
    <description>&lt;P&gt;Maybe this is what you're looking for then? You might have to save the mxd after you make the selection and before you run the script. I have not tested this, but I expect it to copy the identified fields of the one record you selected in the copy layer and paste those values into the identified fields of every selected record in the paste layer.&lt;/P&gt;&lt;P&gt;You could also put this logic into a &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-quick-tour-of-creating-script-tools.htm" target="_self"&gt;script tool&lt;/A&gt; or &lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/a-quick-tour-of-python-toolboxes.htm" target="_self"&gt;Python Toolbox&lt;/A&gt;, which would let you access the layers in the map directly without saving the mxd.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Path\to\Map Document\your_filename.mxd")
try:
    df = arcpy.mapping.ListDataFrames(mxd, "Name of DataFrame Here")[0]
    copy_layer = arcpy.mapping.ListLayers(mxd, "CopyLayerName", df)[0]
    copy_fields = ["columns1", "column2", "column3"]
    paste_layer = arcpy.mapping.ListLayers(mxd, "PasteLayerName", df)[0]
    paste_fields = ["column3", "column4", "column5"]

    if len(copy_layer.getSelectionSet()) == 1 and len(paste_layer.getSelectionSet()) &amp;gt; 0:
        copy_data = [row for row in arcpy.da.SearchCursor(copy_layer, copy_fields)][0]
        with arcpy.da.UpdateCursor(paste_layer, paste_fields) as cursor:
            for row in cursor:
                cursor.updateRow(copy_data)
    else:
        raise Exception("One of the layers does not have the correct number of selected records.")
finally:
    del mxd&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 12 Sep 2023 19:39:47 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2023-09-12T19:39:47Z</dc:date>
    <item>
      <title>Example using search cursor to copy data from cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325581#M68529</link>
      <description>&lt;P&gt;Does anyone have an example of how to copy data from a cell in attribute A to a cell in Attribute B?&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;U&gt;&lt;SPAN&gt;Ideally, here's an example of what I would like to do.&lt;/SPAN&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;1) Select the two features in the map I'd copy data from&lt;/P&gt;&lt;P&gt;2) From Feature_A Copy cell from column1, column2, and column3&lt;/P&gt;&lt;P&gt;3) Paste data from step 2 into Feature_B cells for column3, column4, and column5&lt;/P&gt;&lt;P&gt;I didn't see an example like this, which seems like a pretty basic use of the search cursor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 20:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325581#M68529</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-05T20:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325584#M68530</link>
      <description>&lt;P&gt;You just have to nest it with either an update cursor or insert cursor, depending on if the target row already exists.&lt;/P&gt;&lt;P&gt;Rough, untested code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;#search through rows
with arcpy.da.SearchCursor(fc1, [fields]) as cursor:
    for row in cursor:
        #do something to match the rows, probably a where clause along these lines 
        with arcpy.da.UpdateCursor(fc2, [fields] where_clause = 'field = row[2]') as c2rsor:
            for r2w in c2rsor:
                 r2w = row
                 c2rsor.updateRow(r2w)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325584#M68530</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-09-05T19:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325587#M68531</link>
      <description>&lt;P&gt;You can accomplish that with the &lt;A href="https://pro.arcgis.com/de/pro-app/latest/arcpy/get-started/data-access-using-cursors.htm" target="_blank" rel="noopener"&gt;arcpy.da.*Cursor&lt;/A&gt; classes:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;copy_layer = "Layer A"
copy_fields = ["columns1", "column2", "column3"]
paste_layer = "Layer B"
paste_fields = ["column3", "column4", "column5"]

# read the first copy feature
data = [row for row in arcpy.da.SearchCursor(copy_layer, copy_fields)][0]

# paste the copy feature's data into each paste feature
with arcpy.da.UpdateCursor(paste_layer, paste_fields) as cursor:
    for row in cursor:
        cursor.updateRow(data)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325587#M68531</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-05T19:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325590#M68532</link>
      <description>&lt;P&gt;Prefer this over instantiating a cursor for each row.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325590#M68532</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2023-09-05T19:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325596#M68533</link>
      <description>&lt;P&gt;Agreed, this is my preferred method as well. It's also the methodology&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3788"&gt;@RichardFairhurst&lt;/a&gt;&amp;nbsp;uses for&amp;nbsp;&lt;A href="https://community.esri.com/t5/python-blog/turbo-charging-data-manipulation-with-python/ba-p/884079" target="_blank"&gt;Turbo Charging Data Manipulation with Python Curso... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 19:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325596#M68533</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-09-05T19:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325607#M68534</link>
      <description>&lt;P&gt;Thank you Johannes. Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 20:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325607#M68534</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-05T20:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325609#M68535</link>
      <description>&lt;P&gt;Thanks Blake, I saved that link to my favorites folder. Much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 20:19:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325609#M68535</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-05T20:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325624#M68536</link>
      <description>&lt;P&gt;Oh, I've never seen that done that way. That is slick.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 20:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1325624#M68536</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-09-05T20:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1326766#M68548</link>
      <description>&lt;P&gt;Johannes or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;&amp;nbsp;is there anyway to get this script to work based on the records selected in both the copy layer and the paste layer. I only want to paste the information selected on a one to one basis instead of a one to many or one to all. Right now it appears it's using the selected record in the copy layer, but it is pasting that data to all the records in the paste layer. I thought that if I selected the records in each table before running the script that it would respect that selection, but it doesn't look like it's functioning that way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for you help,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 14:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1326766#M68548</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-08T14:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327184#M68566</link>
      <description>&lt;P&gt;You're right, it takes only the first feature in the copy layer and pastes its attributes into all features of the paste layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to do a one-to-one copy/paste based on selection, you can do it like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# read all copy features
data = [row for row in arcpy.da.SearchCursor(copy_layer, copy_fields)]

# paste their attributes into the paste features
with arcpy.da.UpdateCursor(paste_layer, paste_fields) as cursor:
    for i, row in enumerate(cursor):
        try:
            cursor.updateRow(data[i])
        except IndexError:
            print("You selected too few features in the copy layer, only {} features in the paste layer were processed!".format(i))
            break
if i+1 &amp;lt; len(data):
    print("You selected too many features in the copy layer, {} features were not copied!".format(len(data)-i-1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that both layers will be processed in order of OBJECTID. So the attributes of the copy feature with the lowest OID will be pasted to the paste feature with the lowest OID.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 09:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327184#M68566</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-11T09:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327252#M68567</link>
      <description>&lt;P&gt;Thank you Johannes. Very much appreciated! That saves me a bunch of time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 12:57:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327252#M68567</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-11T12:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327327#M68569</link>
      <description>&lt;P&gt;I see how that is different, but I'm not sure if that will do what I'm looking for. I need to be able to select one field in the copy_layer and paste the values of those copy_fields to just a single asset in the paste_layer that I would be selected before the script is run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Selected field from Copy_Layer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MPach_0-1694445823346.png" style="width: 788px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80321iE8383266BECF2AA1/image-dimensions/788x186?v=v2" width="788" height="186" role="button" title="MPach_0-1694445823346.png" alt="MPach_0-1694445823346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Paste that info in the copy_layer that is selected&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MPach_1-1694445993240.png" style="width: 780px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80322i204D06972B82B8A0/image-dimensions/780x215?v=v2" width="780" height="215" role="button" title="MPach_1-1694445993240.png" alt="MPach_1-1694445993240.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do that? I'm asking because it's possible that the the OBJECTIDs for each of these are not correlated correctly where the lowest OID from the copy_layer will match with the correct feature from the paste_layer. &lt;STRONG&gt;&lt;EM&gt;i.e.&lt;/EM&gt;&lt;/STRONG&gt; spatially, feature 001 from the copy layer may correlate with feature 099 from the paste layer , which would mean there a different feature with a lower OBJECTID like 040 from the paste_layer would match with with 001 from the copy layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:34:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327327#M68569</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-11T15:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327338#M68570</link>
      <description>&lt;P&gt;You need a key field to relate tables like this. Agreed that ObjectID is not a good key field. Do you have a field that relates a particular record from the copy layer to the paste layer?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 15:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327338#M68570</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-09-11T15:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327339#M68571</link>
      <description>&lt;P&gt;Unfortunately, I don't in this case, which is why I need to use a manual selection from the map or from the attribute tables. If I had a key field to relate I wouldn't need to this&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:04:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327339#M68571</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-11T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327340#M68572</link>
      <description>&lt;P&gt;It seems a little mind blowing that this can't be done in Python at this point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:05:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327340#M68572</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-11T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327344#M68573</link>
      <description>&lt;P&gt;If you need to run this as a script instead of a toolbox, you can access the selected records of a layer using the&amp;nbsp;getSelectionSet() method on the layer object.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/layer-class.htm#M2_GUID-AE1B6592-5077-4B14-AFF1-BE41E81538CC" target="_blank" rel="noopener"&gt;Layer—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You'll use some other arcpy.mp stuff to get to the layer you want in the map you want.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Sorry, I forgot you're using ArcMap. You can still get the selection set of a layer with arcpy.mapping&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/layer-class.htm" target="_blank"&gt;Layer—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:16:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327344#M68573</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-09-11T16:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327347#M68574</link>
      <description>&lt;P&gt;But doesn't my first script solve this case? Just select both features and run the script. The script will take the first feature of the copy layer (which has only one feature selected, so it doesn't matter) and copies it to all selected features in the paste layer (which also has only one feature selected), so you get a 1-to-1 copy.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327347#M68574</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2023-09-11T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327352#M68575</link>
      <description>&lt;P&gt;Hmmmm, I don't think it does though unless I'm not understanding something. Maybe I'm not stating what I am trying to accomplish clearly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first script copies the data from layer A and pastes it to all the records in layer B. I was hoping to find a way to copy the record from layer A and only paste that record (no other records) to a record that I have preselected in the attribute table in layer B.&lt;/P&gt;&lt;P&gt;Does that make sense?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:27:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327352#M68575</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-11T16:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327362#M68576</link>
      <description>&lt;P&gt;Maybe this will help. If I used the first script I couldn't use it a second time for a different record because the doing so would cause the data from the first use to be overwritten for the next use. Does that help?&lt;/P&gt;&lt;P&gt;I intend to use the script for multiple features in the copy_layer and the paste_layer&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 16:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327362#M68576</guid>
      <dc:creator>MPach</dc:creator>
      <dc:date>2023-09-11T16:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Example using search cursor to copy data from a cells in attribute table A to attribute table B</title>
      <link>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327371#M68578</link>
      <description>&lt;P&gt;Without a key field, you cannot do multiple features. You would have to manually select exactly one in each table to copy the values. Otherwise, there's no way for the code to match to the correct record.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 17:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/example-using-search-cursor-to-copy-data-from/m-p/1327371#M68578</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2023-09-11T17:09:15Z</dc:date>
    </item>
  </channel>
</rss>

