Hey guys,
i have build a Model (named "KML Export"), that allows the user to export selected Objects of Layers to KML-Files.
The Process is: Input Map -- Iterate Layers -- If selection exists -- Layer to KML -- Output
This works totally fine in my local ArcGIS Project, but only than i select my WebMap form my Organisation which i have imported to my local Project.
I shared my Model with one of my Coworkers and he said "Maybe because you referenced a local map from your project". But its technically the same Map(?!).
When i use the WebMap directly from my organisation as Input Map in my Model with our Organisation URL the Model "turns grey", so all Functions are dead, because the Input Map will not be accepted (?!).
The Thing is, i want to share my Model as a Web Tool for my Organisation in ArcGIS Portal, and then use it as a Widget in a WebApp. So the User can Export KML Files of selected Features directly from the Portal/WebApp.
I tried to share my "totally fine local working model" and i created a Widget with my new Geoprossing Tool "KML Export". I selected my Features and started the export then only "execultion failed" showed up.
I think, it doesnt work because i referenced a local Map form my Project and so i tried to change it to the server connection string (URL) of the Web Map of the Organisation WebMap, but then the Model doesnt work anymore.
Do i miss something? Do i have to set my server settings directly in my model? But how? And and do i have to set the Output to "memory" or "in_memory"?
Thanks for your help!
Best regards
Daniel