I have python script that creates a point feature class. How do I send that feature to an existing map using Python?
Solved! Go to Solution.
Yes it's on a network and I will have to try it locally and work from there.
Got the same error message.
haven't played around with adding to arcmap and arcpy mapping when it is not open, however, I see a potential issue. The help file suggests that when using wildcards
for df in arcpy.mapping.ListDataFrames(mxd, "t*"😞
you cycle through the list (even if it is one entry) without slicing. Your script uses
df = arcpy.mapping.ListDataFrames(mxd, "Update")[0]
and the error message suggests that there are no dataframes called "Update", so you might check this and/or use a wildcard "Update*" to see if that works. That is what the index out of range means there is no first entry in the list and the list is empty
Found the error to be the dataframe was not named properly in the properties of the mxd.