Hello,
thanks for your reply!
My Model:
Here i loaded the WebMap from my Organisation Portal "Grundkarte Zeichentool" in my ArcGIS Pro Project. And use it as InputMap for "iterate Layer". This works fine. If i do not load the WebMap in my local ArcGIS Project and load it directly from the Portal the InputMap will not be accepted (Input Portalelement).
Publish as WebTool:
In the publish process as Web Tool, in the Content Configuration Menu i see all my Maps of my current ArcGIS Pro Projects. And i selected "Grundkarte Zeichentool" as default value for the InputMap. This is the Web Map from my ArcGIS Portal that i loaded in my Project and is also the Map i use in my WebApp, there my Widget should be executed.
Model as Widget: Configuration Widget in WebApp
After the successfull publishing of my Model as Web Tool to the Portal. I load it as Widget as Geoprocessing Tool in my WebApp which uses "Grundkarte Zeichentool". In the Options i allowed the User to Export.
Open Widget in WebApp with User Input(Parameter, InputMap)
This is how the Widget looks when i open it in the WebApp. There i can choose the Map as Input and i only see my default value which i choosed in the Publish as Web Tool Process.
Error after executing the Widget:
After executing the Widget this error showed up. In the ArcGIS Server Manager i can see what happend in the Logs:
The Log says the required Input, the Map Value, is empty. I think it makes sense, because the Input Map is the Map of my local ArcGIS Project and the Portal does not know this local Map.
I dont thinks its a Bug. I think iam using the wrong input method for the WebMap.
How can i choose the current Portal Map in my Widget? Is there any possibilty to use variables similar to $map in arcade? Or like %currentMap% for the Iterate Layer as Input?
The issue is, i only can publish my model when it runs one time successfully in my arcgis project, and i dont see a option to use portal web maps directly as input.
I realy hope you can help me. Iam stuck and the only other work around i see is building a Tool in a Python Toolbox.
Thank you!
Best regards
Daniel