ExecuteError('ERROR 000210: Cannot create output C:\data\workspace.gdb\Result_2\nFailed to execute (Intersect).\n',)
tryCount = 0 successFlag = False while tryCount <= 10: try: gp.CopyFeatures_managment(blah, blah) successFlag = True break except: time.sleep(5) tryCount = tryCount + 1 if successFlag == False: print "Failed!";sys.exit()
import time, os, shutil newTempDir = r"C:\temp\gptmpenvr_" + time.strftime('%Y%m%d%H%M%S') os.mkdir(newTempDir) os.environ["TEMP"] = newTempDir os.environ["TMP"] = newTempDir
import arcpy from arcpy import env def function(args): env.overwriteOutput = True env.scratchWorkspace = args[0] # other logic #.... return results
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.