I am attempting to merge three tables, all within the in_memory workspace. The merge appears to work fine, but when I try to call the merged table, it cannot be found. I have isolated the issues to this very basic code:

pt = 'eo_sourcept'
ln = 'eo_sourceln'
py = 'eo_sourcepy'

point = arcpy.TableToTable_conversion(pt, "in_memory", "point")
line = arcpy.TableToTable_conversion(ln, "in_memory", "line")
poly = arcpy.TableToTable_conversion(py, "in_memory", "poly")

sourceFeatures = arcpy.Merge_management([point, line, poly], os.path.join("in_memory", "sourceFeatures"))

arcpy.MakeTableView_management(sourceFeatures, "sourceView")

I get the error:

ExecuteError: ERROR 000732: Input Table: Dataset in_memory\sourceFeatures does not exist or is not supported  

I am getting this error for any tool I try to run while using the in_memory merged dataset. If I set the path to a local/permanent drive, the merged table can successfully be called.

The merge tool is the only tool that I have come across that I have had problems with the in_memory output not being able to be found. Any ideas?

  • Working for me merging two tables from disk and then get count / make table view. What is arcpy.Exists('in_memory/sourceFeatures') ? – Paul May 3 '17 at 23:40
  • The result of arcpy.Exists('in_memory/sourceFeatures') is False. I'm baffled. I can replace with another tool, and it works fine, or I can replace with another local path, and it works fine. – mmoore May 4 '17 at 14:33
  • What happens if you hard code the in_mem fc? sourceFeatures = arcpy.Merge_management([point, line, poly], r"in_memory\sourceFeatures") – Midavalo May 4 '17 at 21:57
  • Or set your arcpy.env.workspace = "in_memory" and then just output sourceFeatures – Midavalo May 4 '17 at 21:58
  • I have tried hard coding the in_mem fc and setting the environmental workspace with the same results. – mmoore May 5 '17 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.