I'm working on a Python script that import mxd files with the importDocument function. The Python script is ran outside ArcGIS Pro using the default arcgispro-py3 environment, and the MXD datasources link to underlying geodatabases (Oracle geodatabase if that matters) that I do not have access to.
When I'm using the function, the process seems to take forever and never end. Launching the same script in the ArcGIS Pro console, I get windows asking for credentials which I just press on "Cancel", and the map document is properly imported to the project with broken datasources.
I believe that I have encountered the same issue when the MXD references MapService/FeatureService with SSL certificate errors.
Is there any way to use the import function that would behave the same way (or ignore datasources)?