<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic createmobilemap failing to find map after second run in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/createmobilemap-failing-to-find-map-after-second/m-p/1276508#M67375</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-07 at 7.50.05 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67475iEA62CFDE9B647243/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-07 at 7.50.05 AM.png" alt="Screenshot 2023-04-07 at 7.50.05 AM.png" /&gt;&lt;/span&gt;After 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.&lt;/P&gt;&lt;P&gt;Has anyone ever seen this?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;                        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")&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 07 Apr 2023 12:54:00 GMT</pubDate>
    <dc:creator>AnonymousUser23</dc:creator>
    <dc:date>2023-04-07T12:54:00Z</dc:date>
    <item>
      <title>createmobilemap failing to find map after second run</title>
      <link>https://community.esri.com/t5/python-questions/createmobilemap-failing-to-find-map-after-second/m-p/1276508#M67375</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-07 at 7.50.05 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/67475iEA62CFDE9B647243/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-07 at 7.50.05 AM.png" alt="Screenshot 2023-04-07 at 7.50.05 AM.png" /&gt;&lt;/span&gt;After 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.&lt;/P&gt;&lt;P&gt;Has anyone ever seen this?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;                        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")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Apr 2023 12:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createmobilemap-failing-to-find-map-after-second/m-p/1276508#M67375</guid>
      <dc:creator>AnonymousUser23</dc:creator>
      <dc:date>2023-04-07T12:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: createmobilemap failing to find map after second run</title>
      <link>https://community.esri.com/t5/python-questions/createmobilemap-failing-to-find-map-after-second/m-p/1279674#M67445</link>
      <description>&lt;P&gt;What does the rest of your code look like?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 14:32:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createmobilemap-failing-to-find-map-after-second/m-p/1279674#M67445</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-04-18T14:32:37Z</dc:date>
    </item>
  </channel>
</rss>

