I have a problem with importing an MXD file to ArcGIS Pro programatically. I try to do this by using the following arcpy.mp code:
import arcpy aprx = arcpy.mp.ArcGISProject(r"C:\test\blank.aprx") aprx.importDocument(r"C:\test.mxd) aprx.saveACopy(r"C:\test\filled.aprx")
When I launch ArcGIS Pro and open the resulting project file, no items in Contents can be visible. I tried to load the MXD file programatically into opened ArcGIS Pro instance by using the Python frame - also no items are visible in Contents after loading. For a final test, I tried to load this MXD by using GUI - and this works perfectly, all layers are visible in Contents pane when loaded.
What am I doing wrong?