RuntimeError: [blank] when trying to add a standalone table to a map with python

385
1
09-20-2022 08:52 AM
DylanPederson
New Contributor

I am simply trying to add a standalone table to a map, but when I attempt to create the table object I get a blank runtime error ('RuntimeError: '). This error occurs when running the arcpy.mp.Table() line. The same error occurs with all tables, I have attempted to enter different table files. 

This is my understanding of how to do it:

import arcpy

aprx = arcpy.mp.ArcGISProject('CURRENT')

map = aprx.listMaps()[0]

table_path = 'C:\\users\\xyz\\Folder\\file.csv'

tabl_ = arcpy.mp.Table(table_path)

map.addTable(tabl_)

ARCGIS VERSION: 3.0.1

PYTHON VERSION: 3.10

I've attached a screenshot of the error with more details. I'm totally stumped on this, any and all help would be greatly appreciated

0 Kudos
1 Reply
DanPatterson
MVP Esteemed Contributor

python 3.9 is used by arcpy.  Is this a new install in a clone? 


... sort of retired...
0 Kudos