I'm trying to simply add a shapefile to 2 data frames of a Map Document, the shapefile is already in a third dataframe of the same Map Document. I was using the guide below but am getting the following error: ValueError: Object: CreateObject Layer invalid data source
Adding shapefile or feature class as layer in ArcGIS Desktop using Python/ArcPy?
import arcpy
from arcpy import env
import arcpy.mapping
env.workspace = "C:/Users/Chris/Documents/501_Customization /lab4/E_ercise_10_export/Austin"
#Get Shapefile
parkslayer = arcpy.mapping.Layer("C:/Users/Chris/Documents/501_Customization/lab4/E_ercise_10_export/Austin/parks.shp")
#Get Map Document
mxd = arcpy.mapping.MapDocument("CURRENT")
#Get data frames
df = arcpy.mapping.ListDataFrames(mxd, "*")[0, 1]
# add the layer to the map at the bottom of the TOC in data frame 0 and 1
arcpy.mapping.AddLayer(df, parkslayer, "BOTTOM")
# Refresh things
arcpy.RefreshActiveView()
arcpy.RefreshTOC()
del mxd, df1, parks
print "Shapefile successfully added to data frames"