1

Now I'm trying to make Python script to resolve some problem.

I need too place all out features in Scratch Workspace (Later this script will be used in web GIS and intermediate features mustn't be saved). But when I'm trying to do this i have and 000210 error.

How can i resolve this?

enter image description here

1
  • Please edit your Question to include the actual code formatted rather than a picture of it. The former is easy to copy/paste to try and fix, the latter requires re-typing which will be off putting to potential answerers.
    – PolyGeo
    Commented Jun 4, 2014 at 11:29

1 Answer 1

1

I could reproduce your problem. This seems to be a bug since the scratchworkspace page says:

If the scratch workspace environment is set, the autogenerated output path will be the scratch workspace.

There are 2 workarounds:

  1. Mention the full path to the output:

    import arcpy, os ... arcpy.CopyFeatures_management(table, os.path.join(arcpy.env.scratchWorkspace, "table1"))

  2. Create a new geodatabase, set the current workspace to it (arcpy.env.workspace) and delete the geodatabase at the end of your script:

9
  • What does the first code do? yadi.sk/d/Mme8dEeCSEKUh It stil don't work
    – Konstantin
    Commented Jun 4, 2014 at 9:02
  • Do you mean the first line? It imports the os module used to join both parts of the output path. you could also replace os.path.join(arcpy.env.scratchWorkspace, "table1") with arcpy.env.scratchWorkspace + "\table1" but using os.path.join will work whatever the separator is (\ or \\ or /).
    – GISGe
    Commented Jun 4, 2014 at 9:07
  • Error 000210 again
    – Konstantin
    Commented Jun 4, 2014 at 9:08
  • Weird, this solved the issue for me. Check that you have write access to the location and that the output doesn't exist yet. Use maybe a gdb name that doesn't start with a number, sometimes ARcGIS doesn't like it (wasn't a problem for me but I'm using 10.2.2)
    – GISGe
    Commented Jun 4, 2014 at 9:14
  • look at link in first comment. Do i do everything right?
    – Konstantin
    Commented Jun 4, 2014 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.