<?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: Create point,spatial join and populate point attributes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686573#M53119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the weirdest thing. I added the "POINT_X", "POINT_Y" and x,y to the same lines as you did but i got an error but now that i copied and pasted what you have i got it to work, kind of for some weird reason i have "10" in the "POINT_x" field. I know that is not correct. also the point feature class has a field called "StreetName" that i need populate from two fields from the parcels and they are "SiteStreet" &amp;amp; StreetType".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as my other quesitons, would you like me to start a different post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;you mentioned using a &lt;SPAN class="comment"&gt;else statement below so if there was more or less than 1,&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt; could you show how this works with the current code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, so i could click on multiple parcels to create new address points? this would be handy of i need to create multiple points for new subdivisions. can you also attach a copy of the model that you use for please. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 17:36:36 GMT</pubDate>
    <dc:creator>CCWeedcontrol</dc:creator>
    <dc:date>2015-07-20T17:36:36Z</dc:date>
    <item>
      <title>Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686561#M53107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a add-on button that i would like to be able to click on a parcel and create a point where i click and i need the new populate with the Parcels attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have two scripts that work, one creates the point and the other does spatial join and populates the selected point with the tax parcels attributes but the point has to already be there and selected. I need to be able to combine the two scripts into one. I think my biggest problem is that i don't know how to select the point once it's created to be able to spatial join and update the point with the Parcels attributes. I would gratefully appreciate any help on combining these two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial try was to use the sort to get the highest AddressID which was created in the first script (CC_list.sort()) and then was going to use selecLayerByLocation to select the parcel to do the spatial join with the point but nothing is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;for row in sorted(arcpy.da.SearchCursor(fc, ["OBJECTID", "AddressID"]),reverse=True):
&amp;nbsp;&amp;nbsp;&amp;nbsp; mostRecentOID=row[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp; mostRecentAddressID=row[1]
&amp;nbsp;&amp;nbsp;&amp;nbsp; break
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #Select parcel within selected Address Points
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SelectLayerByLocation_management(polygonLayer, "INTERSECT", pointGeom)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create point script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
import time
import datetime

# Allow overwrite 
arcpy.env.overwriteOutput = True

arcpy.env.qualifiedFieldNames = False
arcpy.env.workspace = r"Database Servers\DSD15_SQLEXPRESS.gds\TwoWay (VERSION:dbo.DEFAULT)"

# Script user input parameters
#pointLayer = "TEST.DBO.CCAPTEST"&amp;nbsp; #pointlayer
fc = "TEST" 

# Start an edit session. Must provide the workspace.&amp;nbsp;&amp;nbsp;&amp;nbsp; 
edit = arcpy.da.Editor(arcpy.env.workspace)&amp;nbsp;&amp;nbsp;&amp;nbsp; 

# Edit session is started without an undo/redo stack for versioned data&amp;nbsp;&amp;nbsp;&amp;nbsp; 
#&amp;nbsp; (for second argument, use False for unversioned data)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
edit.startEditing(True)&amp;nbsp;&amp;nbsp;&amp;nbsp; 

# Start an edit operation&amp;nbsp;&amp;nbsp;&amp;nbsp; 
edit.startOperation()&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
input = arcpy.GetParameterAsText(0)

rows = arcpy.SearchCursor(input)
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = row.Shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; X = geom.centroid.X
&amp;nbsp;&amp;nbsp;&amp;nbsp; Y = geom.centroid.Y
del rows

CC_list = []
with arcpy.da.SearchCursor(fc, ["AddressID"]) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "CC" in row[0]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC_list.append(int(row[0].strip("CC")))&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except TypeError:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del cursor

CC_list.sort()
AddressID = CC_list[-1] + 1
AddressID = 'CC' + str(AddressID)

pointGeom = arcpy.PointGeometry(arcpy.Point(X, Y))
row_values = [(X, Y, (X, Y), AddressID)]

cursor = arcpy.da.InsertCursor(fc, ["POINT_X", "POINT_Y", "SHAPE@XY", "AddressID"])
for row in row_values:
&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor.insertRow(row)
#del cursor

# Stop the edit operation.&amp;nbsp;&amp;nbsp;&amp;nbsp; 
edit.stopOperation()
# Stop the edit session and save the changes
edit.stopEditing(True)

arcpy.RefreshActiveView()&amp;nbsp; &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spatial join Update point attributes script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import arcpy module
import arcpy

# Allow overwrite 
arcpy.env.overwriteOutput = True

# Script user input parameters
polygonLayer = "Taxparcels" 
pointLayer = "TEST" #Point Layer
arcpy.env.workspace = r"Database Servers\DSD15_SQLEXPRESS.gds\TwoWay (VERSION:dbo.DEFAULT)" 
poly = "ACCOUNT_1"
Pnt =&amp;nbsp; "Account"
sjpoints = "In_memory\sjpoints" 

parcelsCount = int(arcpy.GetCount_management(pointLayer).getOutput(0))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
dsc = arcpy.Describe(pointLayer) 

selection_set = dsc.FIDSet&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if len(selection_set) == 0:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "There are no features selected"&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
elif parcelsCount &amp;gt;= 1: 

&amp;nbsp;&amp;nbsp;&amp;nbsp; #Run the Spatial Join tool, using the defaults for the join operation and join type
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SpatialJoin_analysis(pointLayer, polygonLayer, sjpoints)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # define the field list from the spatial join
&amp;nbsp;&amp;nbsp;&amp;nbsp; sourceFieldsList = ["TARGET_FID", poly,"ACCOUNT_1","SiteAddres_1",'SiteNum_1', 'SiteStreet_1','SiteNumSfx_1','Predir_1','SiteStreet_1', 'StreetType_1', 'Postdir_1', 'SiteCity_1', 'SiteZIP_1', 'OwnerName_1']&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; # define the field list to the original points
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateFieldsList = ["OID@", Pnt,"Account","SiteAddres", 'SiteNum', 'StreetName', 'SiteNumSfx','Predir','SiteStreet', 'StreetType', 'Postdir', 'SiteCity', 'SiteZip', 'OwnerName']
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Start an edit session. Must provide the workspace.&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; edit = arcpy.da.Editor(arcpy.env.workspace)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Edit session is started without an undo/redo stack for versioned data&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; (for second argument, use False for unversioned data)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.startEditing(True)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Start an edit operation&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.startOperation()&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; manualFields =&amp;nbsp; ["FacltyType", "StructType", "Verified", "Status", "StructCat", "APA_CODE", "ACCOUNT", 'SiteStreet']
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(pointLayer, manualFields) as rows:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = ("Single Family Home")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = ("Primary, Private")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[2] = ("Yes, GRM, TA")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[3] = ("Active")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[4] = ("Residential")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[5] = ("1110")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.updateRow(row)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del row&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del rows 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # populate the dictionary from the polygon
&amp;nbsp;&amp;nbsp;&amp;nbsp; valueDict = {r[0]:(r[1:]) for r in arcpy.da.SearchCursor(sjpoints, sourceFieldsList)}&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.UpdateCursor(pointLayer, updateFieldsList) as updateRows:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for updateRow in updateRows:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; keyValue = updateRow[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if keyValue in valueDict:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for n in range (1,len(sourceFieldsList)):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow&lt;N&gt; = valueDict[keyValue][n-1]&lt;/N&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRows.updateRow(updateRow) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Stop the edit operation.&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.stopOperation()
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Stop the edit session and save the changes
&amp;nbsp;&amp;nbsp;&amp;nbsp; edit.stopEditing(True)

arcpy.RefreshActiveView()
#arcpy.Delete_management(sjpoints)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686561#M53107</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-12T04:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686562#M53108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think my workflow would be:&lt;/P&gt;&lt;P&gt;Get XY from user (for model builder: a feature set, from an addin get the mousedown XY)&lt;/P&gt;&lt;P&gt;Then use the XY to select by location the parcel&lt;/P&gt;&lt;P&gt;Make feature layer from selected&lt;/P&gt;&lt;P&gt;Use a search cursor to read the needed fields into a dictionary&lt;/P&gt;&lt;P&gt;Then use an insertcursor on the point file to insert the row with the data from dictionary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 20:40:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686562#M53108</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2015-07-16T20:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686563#M53109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply. I am trying to implement your suggestions but i come up with a fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;current code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env

# Allow overwrite
arcpy.env.overwriteOutput = True

arcpy.env.qualifiedFieldNames = False
arcpy.env.workspace = r"Database Servers\DSD15_SQLEXPRESS.gds\TwoWay (VERSION:dbo.DEFAULT)"

# Script user input parameters
fc = "TEST"
polygonLayer = "parcels"
poly = "ACCOUNT"#
Pnt =&amp;nbsp; "Account"#

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
input = arcpy.GetParameterAsText(0)

rows = arcpy.SearchCursor(input)
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; geom = row.Shape
&amp;nbsp;&amp;nbsp;&amp;nbsp; X = geom.centroid.X
&amp;nbsp;&amp;nbsp;&amp;nbsp; Y = geom.centroid.Y
del rows


# Create point
inPoint = arcpy.PointGeometry(arcpy.Point(X,Y))

#Select parcel within selected Address Points 
arcpy.SelectLayerByLocation_management(polygonLayer, "INTERSECT", inPoint)
&amp;nbsp;&amp;nbsp; 
# Make a layer from the feature class
arcpy.MakeFeatureLayer_management(fc, "Par")

# define the field list from the parcels&amp;nbsp;&amp;nbsp; 
sourceFieldsList = ["ACCOUNT", poly,"SiteAddres",'SiteNum', 'SiteStreet','SiteNumSfx','Predir','SiteStreet', 'StreetType', 'Postdir', 'SiteCity', 'SiteZIP', 'OwnerName']&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

# populate the dictionary will all selected polygons 
valueDict = {r[0]:(r[1:]) for r in arcpy.da.SearchCursor("Par", sourceFieldsList)}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

# define the field list to the points 
updateFieldsList = ["Account", Pnt,"SiteAddres", 'SiteNum', 'SiteStreet', 'SiteNumSfx','Predir','SiteStreet', 'StreetType', 'Postdir', 'SiteCity', 'SiteZip', 'OwnerName'] 


arcpy.da.UpdateCursor(inPoint, updateFieldsList)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
for updateRow in updateRows:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; keyValue = updateRow[0] 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if keyValue in valueDict: 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for n in range (1,len(sourceFieldsList)):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRow&lt;N&gt; = valueDict[keyValue][n-1] &lt;/N&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateRows.updateRow(updateRow)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
rowInserter = arcpy.da.InsertCursor(fc, updateFieldsList)
arcpy.da.UpdateCursor(fc, updateFieldsList)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
for row in rows:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = ("Single Family Home")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = ("Primary, Private")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[2] = ("Yes, GRM, TA")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[3] = ("Active")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[4] = ("Residential")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; row[5] = ("1110")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.updateRow(row)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; rowInserter.insertRow(row)
arcpy.RefreshActiveView() &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686563#M53109</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-12T04:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686564#M53110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets be specific...since the code can't be tested because the data is not provided, could you at least provide the error message.&amp;nbsp; A 'fail' requires a reason and an error message should be given.&amp;nbsp; It could be as simple as a 'syntax error line xxxxx' but it is revealing.&amp;nbsp; And on that last note, a failure on a particular line sometimes mean the code failed a line or two up, so check for syntax errors or more specifically....logic errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And on the ...logic note... &lt;/P&gt;&lt;P&gt;In lines 19- 23 you go to great lengths to cycle through a cursor getting X and Y coordinates, austensibly to use them in future work.&amp;nbsp; However, you do nothing with them.&amp;nbsp; In line 28 you DO create a point but it will only use the last X,Y pair that you had.&amp;nbsp; So is your intent to use the last point in the dataset? or is it to cycle through the points one at a time, and do something with them.&amp;nbsp; I will stop there until that issues is clarified.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2015 00:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686564#M53110</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-07-17T00:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686565#M53111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I set this code up to be used in a model and assumed the fields would be the same names and types it should help you get started.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import modules
import arcpy
"""
tool box parameters
point param = feature set
targetpoint = featurelayer
parcel = featurelayer
"""
point = arcpy.GetParameterAsText(0)
targetpoint = arcpy.GetParameterAsText(1)
parcel = arcpy.GetParameterAsText(2)
parcel_lyr = 'parcel_lyr'


for prow in arcpy.da.SearchCursor(point,'SHAPE@XY'):
&amp;nbsp;&amp;nbsp;&amp;nbsp; x,y = prow[0]
del prow


point1 = arcpy.Point(x, y)
ptGeometry = arcpy.PointGeometry(point1)


arcpy.MakeFeatureLayer_management(parcel,parcel_lyr)
arcpy.SelectLayerByLocation_management(parcel_lyr,"INTERSECT",ptGeometry)


fldList = ['TMS','OWNERNAME']
fldDict ={}


if int(arcpy.GetCount_management(parcel_lyr).getOutput(0))==1:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for parrow in arcpy.da.SearchCursor(parcel_lyr,fldList):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldDict[fldList&lt;X&gt;]=parrow&lt;X&gt;&lt;/X&gt;&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; del parrow
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(fldDict[fldList&lt;X&gt;])&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtuple = (fldAttList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append( 'SHAPE@XY')
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow = arcpy.da.InsertCursor(targetpoint,fldList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow.insertRow(fldtuple)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del tprow


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 








&amp;nbsp;&amp;nbsp;&amp;nbsp; 




&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686565#M53111</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2021-12-12T04:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686566#M53112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wes, that worked awesome for creating a point and updating the points attributes! but i am having trouble putting and uncertain on how to implementing the arcpy.da.update cursor into the point dictionary. I need to be able to add the manualFields into the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help Wes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;manualFields =&amp;nbsp; ["FacltyType", "StructType", "Verified", "Status", "StructCat", "APA_CODE", "ACCOUNT", 'SiteStreet', 'SHAPE@X', 'SHAPE@Y']&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; 
&amp;nbsp; 
with arcpy.da.UpdateCursor(ptGeometry, manualFields) as rows:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in rows:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[0] = ("Single Family Home")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[1] = ("Primary, Private")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[2] = ("Yes, GRM, TA")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[3] = ("Active")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[4] = ("Residential")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row[5] = ("1110")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rows.updateRow(row)&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686566#M53112</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-12T04:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686567#M53113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like below.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import modules
import arcpy
"""
tool box parameters
point param = feature set
targetpoint = featurelayer
parcel = featurelayer
"""
point = arcpy.GetParameterAsText(0)
targetpoint = arcpy.GetParameterAsText(1)
parcel = arcpy.GetParameterAsText(2)
parcel_lyr = 'parcel_lyr'


for prow in arcpy.da.SearchCursor(point,'SHAPE@XY'):
&amp;nbsp;&amp;nbsp;&amp;nbsp; x,y = prow[0]
del prow


point1 = arcpy.Point(x, y)
ptGeometry = arcpy.PointGeometry(point1)


arcpy.MakeFeatureLayer_management(parcel,parcel_lyr)
arcpy.SelectLayerByLocation_management(parcel_lyr,"INTERSECT",ptGeometry)


fldList = ['TMS','OWNERNAME']
fldDict ={}


if int(arcpy.GetCount_management(parcel_lyr).getOutput(0))==1:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for parrow in arcpy.da.SearchCursor(parcel_lyr,fldList):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldDict[fldList&lt;X&gt;]=parrow&lt;X&gt;&lt;/X&gt;&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; del parrow
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(fldDict[fldList&lt;X&gt;])&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; manualFields =&amp;nbsp; ["FacltyType", "StructType", "Verified", "Status", "StructCat"]
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in manualFields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append(fld)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fixedAtts = ["Single Family Home","Primary, Private","Yes, GRM, TA","Active","Residential","1110"]
&amp;nbsp;&amp;nbsp;&amp;nbsp; for att in fixedAtts:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(att)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtuple = (fldAttList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append( 'SHAPE@XY')
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow = arcpy.da.InsertCursor(targetpoint,fldList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow.insertRow(fldtuple)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del tprow&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686567#M53113</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2021-12-12T04:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686568#M53114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to keep bugging but i just noticed that the code doesn't populate the AddressID, POINT_X, POINT_Y fields. I tried to include into your code but i am unable to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need to populate field "StreetName" on the point from the Parcels, but the Parcels has the two fields SiteStreet &amp;amp; StreetType. I need to take the two fields SiteStreet &amp;amp; StreetType from the parcels and insert them together into the StreetName of the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import modules&amp;nbsp; 
import arcpy&amp;nbsp; 
""" 
tool box parameters 
point param = feature set 
targetpoint = featurelayer 
parcel = featurelayer 
"""&amp;nbsp; 
point = arcpy.GetParameterAsText(0)&amp;nbsp; #point boolen
targetpoint = "Test1" #target point feature class 
parcel = "TaxParcels"&amp;nbsp; #target feature class
parcel_lyr = 'parcel_lyr'&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
for prow in arcpy.da.SearchCursor(point,'SHAPE@XY'):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; x,y = prow[0]&amp;nbsp; 
del prow&amp;nbsp; 
&amp;nbsp;&amp;nbsp; 
point1 = arcpy.Point(x, y)&amp;nbsp; 
ptGeometry = arcpy.PointGeometry(point1)&amp;nbsp; 

CC_list = []
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(fc, ["AddressID"]) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "CC" in row[0]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC_list.append(int(row[0].strip("CC")))&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except TypeError:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; del cursor

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC_list.sort()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddressID = CC_list[-1] + 1
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddressID = 'CC' + str(AddressID)
&amp;nbsp;&amp;nbsp; 
arcpy.MakeFeatureLayer_management(parcel,parcel_lyr)&amp;nbsp; 
arcpy.SelectLayerByLocation_management(parcel_lyr,"INTERSECT",ptGeometry)&amp;nbsp; 
&amp;nbsp; 
fldList = ['ACCOUNT','OWNERNAME','SiteAddres','SiteNum','SiteNumSfx','Predir','SiteStreet', 'StreetType', 'Postdir', 'SiteCity', 'SiteZip', 'OwnerName']&amp;nbsp; 
fldDict ={}&amp;nbsp; 
&amp;nbsp; 
if int(arcpy.GetCount_management(parcel_lyr).getOutput(0))==1:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for parrow in arcpy.da.SearchCursor(parcel_lyr,fldList):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldDict[fldList&lt;X&gt;]=parrow&lt;X&gt;&amp;nbsp; &lt;/X&gt;&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; del parrow&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList = []&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(fldDict[fldList&lt;X&gt;])&amp;nbsp; &lt;/X&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; manualFields =&amp;nbsp; ["FacltyType", "StructType", "Verified", "Status", "StructCat", "APA_CODE"]&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in manualFields:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append(fld)&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; fixedAtts = ["Single Family Home","Primary, Private","Yes, GRM, TA","Active","Residential","1110"]&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for att in fixedAtts:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(att)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)

&amp;nbsp;&amp;nbsp;&amp;nbsp; otherFields = ["X_Coord", "Y_Coord", "SHAPE@XY", "ADDRESSID"]
&amp;nbsp;&amp;nbsp;&amp;nbsp; for oth in otherFields:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtuple = (fldAttList)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append( 'SHAPE@XY')&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow = arcpy.da.InsertCursor(targetpoint,fldList)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow.insertRow(fldtuple)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del tprow&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686568#M53114</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-12T04:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686569#M53115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you lay this out a little simpler for me?&lt;/P&gt;&lt;P&gt;Would give me a list of fields from your parcels you want to transfer to the point feature class and give me the fields they go to in the point feature class and give me a list of the preset data and the fields they go to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2015 22:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686569#M53115</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2015-07-18T22:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686570#M53116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've commented the code to help you find out where you should place the pieces your wanting to add if you'll provide me with the requested information i will help you get it in the code.I’m on geonet to help others and to learn and in saying that I also feel compelled to try to teach. Because if you want to know something really well you should try to teach and in doing so you will greatly improve your own skill. If any one sees anything in my comments that are wrong or inconsistent with the use of the code or tool please do not be shy to comment. You will not hurt my feelings I am here to learn as much as I’m here to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commented code&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;########
#information you should add these pieces of information
#Script name #the name of the script
#Author #The author of the script
#Date #date of creation it's also a good idea to add a date when you modify the
#code and list as a revision with a description of what you did and why
#Pseudo code #This would be your intial workflow thoughts to help you create the
#code below*
########




#import modules
import arcpy
#########################################
#These are the parameter settings for your tool
#tool box parameters
#point = feature set #this will allow the user to give us the xy data
#targetpoint = featurelayer #this will get the target point as a feature layer or feature layer 
#parcel = featurelayer #Same as above but if we could restrict to feature layer only we
#wouldn't need to create a feature layer below
#########################################




#This website gives you a description of how to use arcpy.GetParameterAsText()
&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000047000000" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v00000047000000&lt;/A&gt;
# Syntax GetParameterAsText (index)
#You always put your variables at the top I don't know why
#This is the point variable gained from the feature set the
#only thing we need from here is the xy 
point = arcpy.GetParameterAsText(0)
#The target point feature class this is where we want to get data to
#you can call these variables anything you want but is always a good
#idea to call it something that makes sense for your use
targetpoint = arcpy.GetParameterAsText(1)
#The parcel file this is where we will be getting data from
parcel = arcpy.GetParameterAsText(2)
#This variable is used with make feature layer because you can't select
#by location from a feature class it needs to be a feature layer
parcel_lyr = 'parcel_lyr'




#This website gives you a description of how to use arcpy.da.SearchCursor
&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018w00000011000000&lt;/A&gt;
#There are a couple of different search cursor with different uses I won't try to
#explain them here I think it's sufficient that you are aware of them see this note
#Note:arcpy.da.SearchCursor should not to be confused with the arcpy.SearchCursor.
# Syntax SearchCursor (in_table, field_names, {where_clause}, {spatial_reference}, {explode_to_points}, {sql_clause})
for prow in arcpy.da.SearchCursor(point,'SHAPE@XY'):
&amp;nbsp;&amp;nbsp;&amp;nbsp; #The only thing we need is the x and y 
&amp;nbsp;&amp;nbsp;&amp;nbsp; x,y = prow[0]
#You should always delete the cursor
#It often drives me crazy when I forget and can't read my data
del prow


#Not sure it's neccessary to do this part or not I probably could have created this
#in the loop above something like point1 = prow[0] would most likely would have worked
#maybe someone better than could chime in
#I'm using it here so I can get the element needed for point geometry below
point1 = arcpy.Point(x, y)
#This website gives you a description of how to use arcpy.PointGeometry
&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://resources.arcgis.com/en/help/main/10.2/index.html#//018z00000039000000" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018z00000039000000&lt;/A&gt;
#Syntax PointGeometry (inputs, {spatial_reference}, {has_z}, {has_m})
#We'll use this in the select by location query 
ptGeometry = arcpy.PointGeometry(point1)


#This website gives you a description of how to use arcpy.MakeFeatureLayer_management
&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000006p000000" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000006p000000&lt;/A&gt;
# Syntax MakeFeatureLayer_management (in_features, out_layer, {where_clause}, {workspace}, {field_info})
# We need to do this in case the user selects a feature class above instead of a feature layer
arcpy.MakeFeatureLayer_management(parcel,parcel_lyr)
#This website gives you a description of how to use arcpy.SelectLayerByLocation_management
&lt;SPAN&gt;#&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000072000000" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000072000000&lt;/A&gt;
# Syntax SelectLayerByLocation_management (in_layer, {overlap_type}, {select_features}, {search_distance}, {selection_type})
#Get the intesecting parcel so we can get the data
arcpy.SelectLayerByLocation_management(parcel_lyr,"INTERSECT",ptGeometry)


#We are using a field list to identify the fields we want to get from the parcel
#layer I'm also using for a few shortcuts I'll explain those when we get to them
fldList = ['TMS','OWNERNAME']
#We are creating a field dictionary here to hold the field names and the field data
#this is a shortcut so I don't have to write out every field and every row. When
#get to that part I'll give a description of how to do it the other way and with
#needing a concantination of fields in the insert cursor we may do it the other way
#so you'll be able to see it
fldDict ={}


#We are simply making sure we are only dealing with one parcel
#you could put an else statement below so if there was more or less than 1
#you could give the user a message letting them know that we got more or less
#than expected so we wont transfer any data or create a point in the targetpoint 
if int(arcpy.GetCount_management(parcel_lyr).getOutput(0))==1:
&amp;nbsp;&amp;nbsp;&amp;nbsp; #This is another searchcursor see above
&amp;nbsp;&amp;nbsp;&amp;nbsp; for parrow in arcpy.da.SearchCursor(parcel_lyr,fldList):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #You can find explinations of for loops and python dictiionarys all over the
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #web. basically we are iterating through the field list and populating
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #the dictionary with the field name and the matching attribute
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldDict[fldList&lt;X&gt;]=parrow&lt;X&gt;&lt;/X&gt;&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; #again delete the cursor
&amp;nbsp;&amp;nbsp;&amp;nbsp; del parrow
&amp;nbsp;&amp;nbsp;&amp;nbsp; #we are creating a field attribute list to use below
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList = []
&amp;nbsp;&amp;nbsp;&amp;nbsp; #Populating the field attribute list with the attributes from the dictionary
&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(fldDict[fldList&lt;X&gt;])&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; #These are the manual fields we'll need to add them to the list of fields 
&amp;nbsp;&amp;nbsp;&amp;nbsp; manualFields =&amp;nbsp; ["FacltyType", "StructType", "Verified", "Status", "StructCat"]
&amp;nbsp;&amp;nbsp;&amp;nbsp; #We will probably change these out with a different set of fields for the target
&amp;nbsp;&amp;nbsp;&amp;nbsp; #feature class
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in manualFields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append(fld)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #These are the attributes for the manual fields
&amp;nbsp;&amp;nbsp;&amp;nbsp; fixedAtts = ["Single Family Home","Primary, Private","Yes, GRM, TA","Active","Residential","1110"]
&amp;nbsp;&amp;nbsp;&amp;nbsp; #Add the above attributes to the attributes list
&amp;nbsp;&amp;nbsp;&amp;nbsp; for att in fixedAtts:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(att)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #add the coordinates to the list so the point can be created
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #convert field attribute list to a tuple
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtuple = (fldAttList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #Add the xy field so the insert cursor knows where to put the coordinates
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append( 'SHAPE@XY')
&amp;nbsp;&amp;nbsp;&amp;nbsp; #This website gives you a description of how to use arcpy.da.InsertCursor
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://resources.arcgis.com/en/help/main/10.2/index.html#//018w0000000t000000" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018w0000000t000000&lt;/A&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # Syntax InsertCursor (in_table, field_names)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #Note:arcpy.da.InsertCursor should not to be confused with arcpy.InsertCursor.
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow = arcpy.da.InsertCursor(targetpoint,fldList)
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow.insertRow(fldtuple)
&amp;nbsp;&amp;nbsp;&amp;nbsp; #again delete the cursor&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; del tprow


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 








&amp;nbsp;&amp;nbsp;&amp;nbsp; 




&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686570#M53116</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2021-12-12T04:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686571#M53117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;list of fields from parcels that i need to transfer to point feature that are the same fields as the point feature class.&lt;/P&gt;&lt;P&gt;ACCOUNT, SiteAddres, SiteNum, SiteNumbSfx, Predir, Predir, SiteStreet, StreetType, Postdir, SiteCity, SiteZip, OwnerName, SubName. The point feature class has a field called "StreetName" that i need populate from two fields from the parcels and they are "SiteStreet" &amp;amp; StreetType". I also need to populate the fields called "AddressID" (unique Identifier) I currently have this working with the code below. the only thing that i need to do is populate the fields "POINT_X" and "POINT_Y" with x,y coordinates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the explanation of the code i was about to ask if you can explain it. I don't quiet understand the &lt;SPAN class="comment"&gt;loops and python dictiionarys, and going &lt;SPAN class="comment"&gt;field list and populating &lt;SPAN class="comment"&gt;the dictionary with the field name and the matching attribute. you mentioned using a &lt;SPAN class="comment"&gt;else statement below so if there was more or less than 1,&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt; could you show how this works with the current code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, so i could click on multiple parcels to create new address points? this would be handy of i need to create multiple points for new subdivisions. can you also attach a copy of the model that you use for please. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import modules&amp;nbsp; 
import arcpy&amp;nbsp; 
""" 
tool box parameters 
point param = feature set 
targetpoint = featurelayer 
parcel = featurelayer 
"""
arcpy.env.qualifiedFieldNames = False

point = arcpy.GetParameterAsText(0)&amp;nbsp; #point boolen
targetpoint = "CCAP1" #target point feature class 
parcel = "parcels"&amp;nbsp; #target feature class
parcel_lyr = 'parcel_lyr'&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp; 
for prow in arcpy.da.SearchCursor(point,'SHAPE@XY'):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; x,y = prow[0]&amp;nbsp; 
del prow&amp;nbsp; 
&amp;nbsp;&amp;nbsp; 
point1 = arcpy.Point(x, y)&amp;nbsp; 
ptGeometry = arcpy.PointGeometry(point1)

CC_list = []
with arcpy.da.SearchCursor(targetpoint, ["AddressID"]) as cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "CC" in row[0]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC_list.append(int(row[0].strip("CC")))&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except TypeError:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del cursor

CC_list.sort()
AddressID = CC_list[-1] + 1
AddressID = 'CC' + str(AddressID)

&amp;nbsp;&amp;nbsp; 
arcpy.MakeFeatureLayer_management(parcel,parcel_lyr)&amp;nbsp; 
arcpy.SelectLayerByLocation_management(parcel_lyr,"INTERSECT",ptGeometry)&amp;nbsp; 
&amp;nbsp; 
fldList = ['ACCOUNT','OwnerName','SiteAddres','SiteNum','siteNumSfx','Predir','SiteStreet', 'StreetType', 'Postdir', 'SiteCity', 'SiteZip']&amp;nbsp; 
fldDict ={}&amp;nbsp; 
&amp;nbsp; 
if int(arcpy.GetCount_management(parcel_lyr).getOutput(0))==1:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for parrow in arcpy.da.SearchCursor(parcel_lyr,fldList):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldDict[fldList&lt;X&gt;]=parrow&lt;X&gt;&amp;nbsp; &lt;/X&gt;&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; del parrow&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList = []&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(fldDict[fldList&lt;X&gt;])&amp;nbsp; &lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; manualFields =&amp;nbsp; ["SiteState","FacltyType", "StructType","GIS_STEW", "UpdateBy","Verified", "Status", "StructCat", "APA_CODE","AddressID"]&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in manualFields:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append(fld)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fixedAtts = ["ID","Single Family Home","Primary, Private","CanyonCo", "TA", "Yes, GRM, TA","Active","Residential","1110",AddressID, ] 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for att in fixedAtts:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(att)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtuple = (fldAttList)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append( 'SHAPE@XY')&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow = arcpy.da.InsertCursor(targetpoint,fldList)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow.insertRow(fldtuple)&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del tprow&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686571#M53117</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2021-12-12T04:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686572#M53118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Man that's great you were able to get all that in &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; If i read correctly the only thing you needed were the Point_X and Point_Y fields I added them to code below.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#import modules&amp;nbsp;&amp;nbsp;&amp;nbsp; 
import arcpy&amp;nbsp;&amp;nbsp;&amp;nbsp; 
"""&amp;nbsp; 
tool box parameters&amp;nbsp; 
point param = feature set&amp;nbsp; 
targetpoint = featurelayer&amp;nbsp; 
parcel = featurelayer&amp;nbsp; 
"""&amp;nbsp; 
arcpy.env.qualifiedFieldNames = False&amp;nbsp; 
&amp;nbsp; 
point = arcpy.GetParameterAsText(0)&amp;nbsp; #point boolen&amp;nbsp; 
targetpoint = "CCAP1" #target point feature class&amp;nbsp;&amp;nbsp; 
parcel = "parcels"&amp;nbsp; #target feature class&amp;nbsp; 
parcel_lyr = 'parcel_lyr'&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
for prow in arcpy.da.SearchCursor(point,'SHAPE@XY'):&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; x,y = prow[0]&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del prow&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
point1 = arcpy.Point(x, y)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
ptGeometry = arcpy.PointGeometry(point1)&amp;nbsp; 
&amp;nbsp; 
CC_list = []&amp;nbsp; 
with arcpy.da.SearchCursor(targetpoint, ["AddressID"]) as cursor:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in cursor:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "CC" in row[0]:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CC_list.append(int(row[0].strip("CC")))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; except TypeError:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pass&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del cursor&amp;nbsp; 
&amp;nbsp; 
CC_list.sort()&amp;nbsp; 
AddressID = CC_list[-1] + 1&amp;nbsp; 
AddressID = 'CC' + str(AddressID)&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
arcpy.MakeFeatureLayer_management(parcel,parcel_lyr)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
arcpy.SelectLayerByLocation_management(parcel_lyr,"INTERSECT",ptGeometry)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
fldList = ['ACCOUNT','OwnerName','SiteAddres','SiteNum','siteNumSfx','Predir','SiteStreet', 'StreetType', 'Postdir', 'SiteCity', 'SiteZip']&amp;nbsp;&amp;nbsp;&amp;nbsp; 
fldDict ={}&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
if int(arcpy.GetCount_management(parcel_lyr).getOutput(0))==1:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for parrow in arcpy.da.SearchCursor(parcel_lyr,fldList):&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldDict[fldList&lt;X&gt;]=parrow&lt;X&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/X&gt;&lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; del parrow&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList = []&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for x in range(len(fldList)):&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(fldDict[fldList&lt;X&gt;])&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/X&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; manualFields =&amp;nbsp; ["SiteState","FacltyType", "StructType","GIS_STEW", "UpdateBy","Verified", "Status", "StructCat", "APA_CODE","AddressID", "POINT_X", "POINT_Y"&amp;nbsp; ]&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in manualFields:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append(fld)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fixedAtts = ["ID","Single Family Home","Primary, Private","CanyonCo", "TA", "Yes, GRM, TA","Active","Residential","1110",AddressID,x,y ]&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for att in fixedAtts:&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(att)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldAttList.append(point1)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldtuple = (fldAttList)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fldList.append( 'SHAPE@XY')&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow = arcpy.da.InsertCursor(targetpoint,fldList)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; tprow.insertRow(fldtuple)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
del tprow&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686572#M53118</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2021-12-12T04:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686573#M53119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is the weirdest thing. I added the "POINT_X", "POINT_Y" and x,y to the same lines as you did but i got an error but now that i copied and pasted what you have i got it to work, kind of for some weird reason i have "10" in the "POINT_x" field. I know that is not correct. also the point feature class has a field called "StreetName" that i need populate from two fields from the parcels and they are "SiteStreet" &amp;amp; StreetType".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as my other quesitons, would you like me to start a different post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;you mentioned using a &lt;SPAN class="comment"&gt;else statement below so if there was more or less than 1,&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN class="comment"&gt; could you show how this works with the current code?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;, so i could click on multiple parcels to create new address points? this would be handy of i need to create multiple points for new subdivisions. can you also attach a copy of the model that you use for please. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 17:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686573#M53119</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2015-07-20T17:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686574#M53120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached the code with the else statement in it with a simple message returned to the user, I also included the tool used. As far as creating multiple points for doing a subdivision i think i would start a new script and get it to work and either use as stand alone tool or incorporate into this tool. I think i would more lean towards using it as a stand alone, but that's just my opinion. You may also want to look into LGIM sounds like your doing address points and there some tools that work with the LGIM that will help with creating address points, not to mention a good format for storing your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686574#M53120</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2015-07-20T18:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686575#M53121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wes, thank you for all your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 18:39:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686575#M53121</guid>
      <dc:creator>CCWeedcontrol</dc:creator>
      <dc:date>2015-07-20T18:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create point,spatial join and populate point attributes</title>
      <link>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686576#M53122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 19:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-point-spatial-join-and-populate-point/m-p/686576#M53122</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2015-07-20T19:14:28Z</dc:date>
    </item>
  </channel>
</rss>

