I'm trying to speed up an automation script using memory workspaces. When I use "memory\feature_class", it returns that it can't use that workspace. However, "in_memory\feature_class" works exactly like I want.
I'm using Python 3.6 and ArcPro 2.4.2. My IDE recognizes the new format of ArcPy commands, as well. I don't know why it will only recognize the older memory workspace type.
Solved! Go to Solution.
from
Write geoprocessing output to memory—ArcGIS Pro | ArcGIS Desktop
Use of memory-based workspaces in a Python is only valid for geoprocessing tools. Memory is not a general-purpose virtual directory where you can write files or other data.
So that could be a limitation in your workflow
Can you give an example of your use with a specific tool?
from
Write geoprocessing output to memory—ArcGIS Pro | ArcGIS Desktop
Use of memory-based workspaces in a Python is only valid for geoprocessing tools. Memory is not a general-purpose virtual directory where you can write files or other data.
So that could be a limitation in your workflow
Thanks, completely forgot about that limitation.
Not even all gp tools work with memory workspaces. Like try to do it with arcpy.conversion.WFStoFeatureClass. Instead of writing it to memory\somefc, it writes it to disk as memory.gdb\somefc