Hi,
I'm using a python script in which I imported .mapx-files succesfully from a server.
Now I need the same script to import the .mapx from our portal, but it seems I get the URL wrong, since the tool throws an OS Error.
The first 3 lines show the working part of the script, setting the document path to NK.mapx on our server.
The last 2 lines show two different document paths to the portal item I tried. The first one is the same which is used when importing the .mapx-file in ArcGIS Pro via the menu.

The error:

Thanks for any ideas.
Greetings from Germany
Holger