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
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.