I cannot import an mxd. It saves as a blank document.
I have the following code:
mxd_path_string is a valid URI that points to the correct map.
When I open the aprx_temp.aprx file in ArcGIS Pro, the map is empty.
Why isn't save working?
Hey Steve Scott,
Are you getting any error messages when you run the script?
If this answer has helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.
It is interesting, though. In my script it is behaving like it is being imported. I change the MXD and the result changes correctly later on when I publish. But when I check the aprx it is empty.
It sounds like the Mxd is loading into the aprx correctly; although the problem is typically that Maps do not 'Open' by default.
Within the newly copied aprx, can you check the Catalog, and see if there is an additional Map within there. There should be one called the same thing as the Mxd Data Frame (by default this would be 'Layers').
This new map, should be the imported Mxd.
A good indication is just to quickly compare the sizes of the aprx files. The newly created one should be slightly larger.
Hope this helps but let me know if this isn't the issue,