<?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 How to set a deeper folder path when publishing an imageservice in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-set-a-deeper-folder-path-when-publishing-an/m-p/830370#M3163</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 am looking to publish a imageservice to a specific path to an existing imageserver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, i want to publish to &amp;lt;root&amp;gt;/ImageService/MyNewService&lt;/P&gt;&lt;P&gt;The&amp;nbsp;arcpy.CreateImageSDDraft function allows me to specify folder_name as a string, but I have not been successful in specifying anything deeper that i.e &amp;lt;root&amp;gt;/MyNewService.&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "ImageService\\&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;", "Name,"Description")&lt;/PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "ImageService/&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;", "Name,"Description")&lt;/PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, ["ImageService","&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;"], "Name,"Description")&lt;/PRE&gt;&lt;P&gt;All fail. The following works fine:&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;", "Name,"Description")&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Any hints or tips are greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sven-Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2020 07:48:38 GMT</pubDate>
    <dc:creator>Sven-ErikNilsen</dc:creator>
    <dc:date>2020-05-29T07:48:38Z</dc:date>
    <item>
      <title>How to set a deeper folder path when publishing an imageservice</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-set-a-deeper-folder-path-when-publishing-an/m-p/830370#M3163</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 am looking to publish a imageservice to a specific path to an existing imageserver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, i want to publish to &amp;lt;root&amp;gt;/ImageService/MyNewService&lt;/P&gt;&lt;P&gt;The&amp;nbsp;arcpy.CreateImageSDDraft function allows me to specify folder_name as a string, but I have not been successful in specifying anything deeper that i.e &amp;lt;root&amp;gt;/MyNewService.&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "ImageService\\&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;", "Name,"Description")&lt;/PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "ImageService/&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;", "Name,"Description")&lt;/PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, ["ImageService","&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;"], "Name,"Description")&lt;/PRE&gt;&lt;P&gt;All fail. The following works fine:&lt;/P&gt;&lt;PRE&gt;&lt;PRE&gt;arcpy.CreateImageSDDraft(mosaic_path, Sddraft, mosaic_name, 'ARCGIS_SERVER', con, False, "&lt;SPAN&gt;MyNewService&lt;/SPAN&gt;", "Name,"Description")&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;Any hints or tips are greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sven-Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 07:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-set-a-deeper-folder-path-when-publishing-an/m-p/830370#M3163</guid>
      <dc:creator>Sven-ErikNilsen</dc:creator>
      <dc:date>2020-05-29T07:48:38Z</dc:date>
    </item>
  </channel>
</rss>

