Select to view content in your preferred language

createmobilemap failing to find map after second run

327
1
04-07-2023 05:54 AM
AnonymousUser23
Occasional Contributor

Screenshot 2023-04-07 at 7.50.05 AM.pngAfter the second run of my script or an iteration to make a second map, I am getting this error. I have a read out of the maps in Messages right before this error and the map is there.

Has anyone ever seen this?

                        arcpy.AddMessage(map.name)

                        exportfile = os.path.join(root, dirname, mapexportshort + "_test" + Versionnumber + ".mmpk" )                      
                        arcpy.management.CreateMobileMapPackage(map.name, exportfile, Compositeloc, None, clipbyhillshade, "CLIP", "Map", Versionnumber, '', '', '', '', "STANDARD", "DISABLE_MAP_EXPIRATION", "ALLOW_TO_OPEN", None, "This map is expired.  Contact the map publisher for an updated map.", "KEEP_ALL_RELATED_ROWS", "INCLUDE_SERVICE_LAYERS")  
                        arcpy.AddMessage("-Map Export Complete")
Tags (1)
0 Kudos
1 Reply
by Anonymous User
Not applicable

What does the rest of your code look like?

0 Kudos