Select to view content in your preferred language

Overwrite Map Image Layer

805
2
01-09-2023 05:26 PM
EdgarR
by
New Contributor

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 

Tags (1)
2 Replies
RhettZufelt
MVP Notable Contributor

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_

0 Kudos
Kepa
by Esri Contributor
Esri Contributor

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,

0 Kudos