Solved! Go to Solution.
arcpy.MakeTableView_management("H:/ss/Projects/MaPP/Habitat.gdb/tablename", "TMP")
@ArkadiuszMatoszka wrote:
Hi,
Are you running your script as toolbox, add in or from python window?
In last two cases running:arcpy.MakeTableView_management("H:/ss/Projects/MaPP/Habitat.gdb/tablename", "TMP")
will add tabel under name of "TMP" to TOC of mxd in context of which you invoked command (select "List by source" tab in TOC).
Best Regards
Arek
This solution is what worked for me. Using arcpy in ArcGIS Pro, I had several times where the output of my process (a table) was not getting added to my TOC. When the table is not added, the next step breaks with the error that the table does not exist or is not supported. It happens, seemingly at random, as I can run it again and it will work. Using this snippet to add the table explicitly adds a small step to the process, but seems to resolve my problem.
Thank you!