addDataFromPath - RuntimeError (convertArcObjectToPythonObject)

263
1
11-01-2020 05:51 AM
New Contributor II

Hello,

If I want add data with addDataFromPath:

aprx = arcpy.mp.ArcGISProject("current")
m = aprx.listMaps("Map10")[0]
m.addDataFromPath("C:\\Users\\aneta.ryglova\\Desktop\\Data_ZTM5_pro_Asseco\\Asseco\\Asseco_20201005.gdb\\T_MASKY_ANOTACI_M")

it return:

return convertArcObjectToPythonObject(self._arc_object.addDataFromPath(*gp_fixargs((data_path,), True)))
RuntimeError

and I don't know why, can you help me please?

Thanks

1 Reply
MVP Regular Contributor

Looks OK to me.

Please add some print statements for each line.

Reply
0 Kudos