<?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 Re: Create multiple service definition files (.sd) form multiple mxd files in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557280#M21509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few samples on the help site for &lt;A href="http://server.arcgis.com/en/server/latest/administer/windows/scripting-service-publishing-with-arcpy.htm"&gt;scripting publishing&lt;/A&gt; using Python. &amp;nbsp;The general idea is that you would use a for loop with the list of contents of the folder using os.listdir, figure out which are .mxds, and use Stage Service and Upload Service Definition to publish them. &amp;nbsp;You can use the name of the mxd for the name of the service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Feb 2017 17:38:55 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2017-02-13T17:38:55Z</dc:date>
    <item>
      <title>Create multiple service definition files (.sd) form multiple mxd files</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557276#M21505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I wonder if anyone has a tool or a method that creates &lt;SPAN&gt;service definition files form a folder that contains multiple mxd files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case I have a folder that has 76 mxds and I want to create 76 sd files in another folder from the existing mxd.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/320556_Screenshot (15).png" style="width: 620px; height: 357px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ahmad Saleh &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 06:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557276#M21505</guid>
      <dc:creator>AhmadSALEH1</dc:creator>
      <dc:date>2017-02-13T06:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple service definition files (.sd) form multiple mxd files</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557277#M21506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I haven't tried this out, &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;CreateMapSDDraft - ArcPy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You might create a list to do it for every MXD in a particular workspace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557277#M21506</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-02-13T07:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple service definition files (.sd) form multiple mxd files</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557278#M21507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN&gt;&lt;A _jive_internal="true" href="https://community.esri.com/people/jayanta.poddar"&gt;Jayanta&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have tried this before, the main issue with it the code is name dependent, for every sd that you need to create you should add the service name and workspace! I want a smarter tool or code that iterates all mxd in the file and create sd file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the link that you provided I should copy every mxd name to the code. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ahmad Saleh &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:24:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557278#M21507</guid>
      <dc:creator>AhmadSALEH1</dc:creator>
      <dc:date>2017-02-13T07:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple service definition files (.sd) form multiple mxd files</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557279#M21508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe we should wait for a response from our Python experts to tweak the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;CreateMapSDDraft&lt;/A&gt; (adding wildcards maybe) alongwith the addition of &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/stage-service.htm"&gt;Stage Service&lt;/A&gt; tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557279#M21508</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-02-13T07:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple service definition files (.sd) form multiple mxd files</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557280#M21509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a few samples on the help site for &lt;A href="http://server.arcgis.com/en/server/latest/administer/windows/scripting-service-publishing-with-arcpy.htm"&gt;scripting publishing&lt;/A&gt; using Python. &amp;nbsp;The general idea is that you would use a for loop with the list of contents of the folder using os.listdir, figure out which are .mxds, and use Stage Service and Upload Service Definition to publish them. &amp;nbsp;You can use the name of the mxd for the name of the service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2017 17:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/create-multiple-service-definition-files-sd-form/m-p/557280#M21509</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-02-13T17:38:55Z</dc:date>
    </item>
  </channel>
</rss>

