vbalent

Python code works in ArcGIS 10.0 but not in ArcGIS 10.2

Discussion created by vbalent on Dec 31, 2013
Latest reply on Jan 2, 2014 by nheick
I know the there is anew version of Python that is running on arcGIS 10.2 Pythin 2.7.3??

Anyways these are simple out of the box functions that work in 10.0 but now not in 10.2

Here is the code snippet, last line it erros on saying it cannot fin the resource?

Any thoughts?



# Local variables:
LIVE_CIP_Shapes = "Database Connections\Connection to bangkok as clvgis.sde\LIVE.CIP_Shapes"
IMSV7_CLV_CIPMAP = "Database Connections\Connection to HANSEN DEV as IMSV7_READ.odc\IMSV7.CLV_CIPMAP"
temp_workspace_gdb = "//naples/gis_workspace/clvgis/appdata/CIP/UpdatedCIP.gdb"

Output_Layer = "CIP_Shapes_Layer"
CIP_Shapes_Layer = "CIP_Shapes_Layer"
CIP_Shapes_Layer__2_ = "CIP_Shapes_Layer"

# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(LIVE_CIP_Shapes, Output_Layer, "", "", "OBJECTID OBJECTID VISIBLE NONE;HANSEN HANSEN VISIBLE NONE;HANSEN2 HANSEN2 VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;SHAPE.AREA SHAPE.AREA VISIBLE NONE;SHAPE.LEN SHAPE.LEN VISIBLE NONE")

# Process: Add Join
arcpy.AddJoin_management(Output_Layer, "HANSEN", IMSV7_CLV_CIPMAP, "APPROJECTID", "KEEP_ALL")




ERRROR MESSAGE

ERROR 000732: Join Table: Dataset Database Connections\Connection to HANSEN DEV as IMSV7_READ.odc\IMSV7.CLV_CIPMAP does not exist or is not supported
Failed to execute (AddJoin).

Outcomes