<?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 Issue with saving a project copy to a physical file in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/issue-with-saving-a-project-copy-to-a-physical/m-p/253643#M19538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with losing a drawing layer datasource:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;result = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;mp&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;ConvertWebMapToArcGISProject&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(Web_Map_as_JSON, templatePagx)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aprx = result.ArcGISProject&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;map = aprx.listMaps(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;'Web Map'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;aprx.saveACopy(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;r'C:\OUTPUTTESTE\Test.aprx'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;aprxTemp = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-size: small; font-family: Consolas; "&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-size: small; font-family: Consolas; "&gt;mp&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas; "&gt;ArcGISProject&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;r'C:\OUTPUTTESTE\Test.aprx'&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;map1 = &lt;SPAN style="font-family: Consolas; font-size: small;"&gt;aprxTemp&lt;/SPAN&gt;.listMaps(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;'Web Map'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;map1.listLayers()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Basically when I check the layers of the "map" object the layer named "pointLayer" (which consists of a drawn point exported from Web App Builder) has a datasource.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After saving a copy of the project and re-opening it, if I check the layer again on the object "map1" everything is equal but the datasource is empty meaning I lost the drawn point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know if this is a bug or if there's a workaround for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2019 08:47:37 GMT</pubDate>
    <dc:creator>RicardoRodrigues1</dc:creator>
    <dc:date>2019-05-22T08:47:37Z</dc:date>
    <item>
      <title>Issue with saving a project copy to a physical file</title>
      <link>https://community.esri.com/t5/python-questions/issue-with-saving-a-project-copy-to-a-physical/m-p/253643#M19538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue with losing a drawing layer datasource:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;result = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-family: Consolas; font-size: small;"&gt;mp&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;ConvertWebMapToArcGISProject&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(Web_Map_as_JSON, templatePagx)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;aprx = result.ArcGISProject&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;map = aprx.listMaps(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;'Web Map'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;aprx.saveACopy(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;r'C:\OUTPUTTESTE\Test.aprx'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;aprxTemp = &lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-size: small; font-family: Consolas; "&gt;arcpy&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #6f008a; font-size: small; font-family: Consolas; "&gt;mp&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas; "&gt;ArcGISProject&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas; "&gt;r'C:\OUTPUTTESTE\Test.aprx'&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas; "&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;map1 = &lt;SPAN style="font-family: Consolas; font-size: small;"&gt;aprxTemp&lt;/SPAN&gt;.listMaps(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;'Web Map'&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)[0]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;map1.listLayers()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Basically when I check the layers of the "map" object the layer named "pointLayer" (which consists of a drawn point exported from Web App Builder) has a datasource.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After saving a copy of the project and re-opening it, if I check the layer again on the object "map1" everything is equal but the datasource is empty meaning I lost the drawn point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know if this is a bug or if there's a workaround for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 08:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/issue-with-saving-a-project-copy-to-a-physical/m-p/253643#M19538</guid>
      <dc:creator>RicardoRodrigues1</dc:creator>
      <dc:date>2019-05-22T08:47:37Z</dc:date>
    </item>
  </channel>
</rss>

