We have an insert script that runs fine on our server. When we publish it as a geoprocessing service, we get this error:
RuntimeError: cannot open '..\..\..\..\..\maptool\tools\spatialdb_spatialtest.sde\spatialtest.name.name_si' Failed to execute
In the script, the connection looks like this:
fc = r"C:\apps\maptool\tools\spatialdb_spatialtest.sde\spatialtest.name.name_si"
cursor = arcpy.da.InsertCursor(fc, ("subject_item_id", "address1", "address2", "city_name", "state_code", "zip_code"))
Any suggestions on how to troubleshoot and solve would much appreciated. I suspect the issue may be with the path? I'm not sure why all of the ..\..\ are showing up in the error message.