I try to overwrite a Map Image Layer in Portal with Arcpy, I have ArcPro 3.0.3. I see the post to overwrite Feature Layer but don't work with Map Image Layer. Thx for the help or guideline
Hello @EdgarR,
Don't know if you figured this out already but if you don't register the data with the Server you can set sddraft overwriteExistingService property to True before staging and uploading service definition. More info about this property here
This way the Map Image Layer will be overwritten. Take into account that all pop-up settings and configuration will be lost after overwriting it. So don't fortget to update your web map /app / etc.
Regards,
How was the map image layer created?
My "Map Image Layers" were created in AGOL by adding "New Item" in my contents, then selecting a URL to use for the image layer (basically, a pointer to the mapservice URL). If I update the original data the URL points to, the Map Image Layer is updated.
R_
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.