span8
span4
span8
span4
Hi All,
I have a python script that runs successfully in IDLE,but when I copy and paste the same script into the startup python script box in my workbench the script fails.
Below is the script:
# Import modules
import arcpy
import arcgisscripting
import arceditor
arcpy.env.overwriteOutput = True
arcpy.env.workspace = "C:\Users\GRAUP\AppData\Roaming\ESRI\Desktop10.3\ArcCatalog\Connection to NRGISSQLS03 WWW_GIS USER.sde\www_gis.GIS_ADMIN.WastewaterDataset"
ERROR 000732: Input Line Features: Dataset C:\Users\GRAUP\AppData\Roaming\ESRI\Desktop10.3\ArcCatalog\Connection to NRGISSQLS03 WWW_GIS USER.sde\www_gis.GIS_ADMIN.WastewaterDataset\www_gis.GIS_ADMIN.RMoN_San_GravityMain does not exist or is not supported
WARNING 000725: Output Route Feature Class: Dataset H:\O.10_Operating_Projects\Linear_Referencing\Reference\Linear Referencing Shannon Working\Linear_Referencing_Working.gdb\RMoN_San_GravityMain_Route_sde_connection already exists.
Failed to execute (CreateRoutes).
Wondering if anyone has experienced this issue before or has ideas to what the cause is.
Thanks.
It may be the interpreter,is it Python 3?Try raw string:
www_gis_GIS_ADMIN_RMoN_San_GravityMain =r"C:\Users\GRAUP\AppData\Roaming\ESRI\Desktop10.3\ArcCatalog\Connection to NRGISSQLS03 WWW_GIS USER.sde\\www_gis.GIS_ADMIN.WastewaterDataset\\www_gis.GIS_ADMIN.RMoN_San_GravityMain"
"\U" might look like unicode.
© 2019 亚搏在线Safe Software Inc |Legal