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.
![HF_LBD_0-1720166529197.png HF_LBD_0-1720166529197.png](https://community.esri.com/t5/image/serverpage/image-id/108876i080BB78C90C4E587/image-size/medium?v=v2&px=400)
The error:
![HF_LBD_1-1720166963403.png HF_LBD_1-1720166963403.png](https://community.esri.com/t5/image/serverpage/image-id/108877i57454D4ADEF6F9D4/image-size/medium?v=v2&px=400)
Thanks for any ideas.
Greetings from Germany
Holger