<?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>idea Don't Delete Service Definition Draft in arcpy.server.StageService in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/don-t-delete-service-definition-draft-in-arcpy/idi-p/973633</link>
    <description>&lt;P&gt;I would like to automate republishing a hosted feature service in ArcGIS Online using arcpy.&amp;nbsp; Given the differences in the service definition draft produced when generating it through the normal publishing wizard and the default service definition produced by arcpy.mapping.CreateMapSDDraft, I thought it would make sense just to create one good service definition draft using the wizard and reuse it every time I generate the service definition file using arcpy.server.StageService.&amp;nbsp; The problem is that StageService cleans up after itself every time it runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I am missing something about .sd files, but it would be nice to have the option to keep the .sddraft file.&amp;nbsp; Obviously, the .sd file needs to be regenerated to refresh the data, but not the .sddraft.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 15:42:05 GMT</pubDate>
    <dc:creator>NathanHeickLACSD</dc:creator>
    <dc:date>2023-02-01T15:42:05Z</dc:date>
    <item>
      <title>Don't Delete Service Definition Draft in arcpy.server.StageService</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/don-t-delete-service-definition-draft-in-arcpy/idi-p/973633</link>
      <description>&lt;P&gt;I would like to automate republishing a hosted feature service in ArcGIS Online using arcpy.&amp;nbsp; Given the differences in the service definition draft produced when generating it through the normal publishing wizard and the default service definition produced by arcpy.mapping.CreateMapSDDraft, I thought it would make sense just to create one good service definition draft using the wizard and reuse it every time I generate the service definition file using arcpy.server.StageService.&amp;nbsp; The problem is that StageService cleans up after itself every time it runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe I am missing something about .sd files, but it would be nice to have the option to keep the .sddraft file.&amp;nbsp; Obviously, the .sd file needs to be regenerated to refresh the data, but not the .sddraft.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/don-t-delete-service-definition-draft-in-arcpy/idi-p/973633</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2023-02-01T15:42:05Z</dc:date>
    </item>
  </channel>
</rss>

