I have a model that copies a single F.C form SDE geodatabase to a scratch geodatabase then copies it back with a new name to the same SDE geodatabase again. And this works perfectly form the model. Now I have exported the model to python script, but unfortunately it doesn’t work and I didn’t figure out what is the problem.
Here is the Result python code
# Import arcpy moduleimport arcpy# Local variables
oints_DBO_Communities = "Database Connections\\1.sde\\Points.DBO.Communities"Buildings_POINTS_Select = "C:\\Users\\ahmads\\Documents\\ArcGIS\\Default.gdb\\Buildings_POINTS_Select"Points_DBO_Buildings_POINTS1 = "Database Connections\\1.sde\\Points.DBO.Buildings_POINTS1"# Process: Selectarcpy.Select_analysis(Points_DBO_Communities, Buildings_POINTS_Select, "")# Process: Copy Featuresarcpy.CopyFeatures_management(Buildings_POINTS_Select, Points_DBO_Buildings_POINTS1, "", "0", "0", "0")Now Trying to run the code and I got this massage :
"arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.ERROR 000732: Input Table: Dataset C:\Users\jamaln\Documents\ArcGIS\Default.gdb\UrbanMasterPlans_Objection_S2 does not exist or is not supportedFailed to execute (AddField)"
What might be the issue here ?
أكثر...

Here is the Result python code
# Import arcpy moduleimport arcpy# Local variables
"arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.ERROR 000732: Input Table: Dataset C:\Users\jamaln\Documents\ArcGIS\Default.gdb\UrbanMasterPlans_Objection_S2 does not exist or is not supportedFailed to execute (AddField)"

What might be the issue here ?
أكثر...