<?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 Publish a map service to ArcGIS server in a model in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319625#M24843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how I can use scripts in a model to publish a map service to ArcGIS&amp;nbsp; Server Manger from an mxd? I know that I have been circling around the answer and the correct code for days now, but I have two problems...1) I cannot quite get python script to work and 2) I am not sure how to actually add it to a model. I am new to this.&lt;/P&gt;&lt;P&gt;I have used the code provided from this link:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;CreateMapSDDraft—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; and I can get it to run without errors, BUT I have no idea where my sdraft is...or if it has worked. It looks like it does nothing. I am not sure where the files go!&amp;nbsp; And then to top it off, I need to have this run in a model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on where (file location) I should be looking for my published service would be great. I know I am missing something small and fundamental.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 21:29:18 GMT</pubDate>
    <dc:creator>LarisaJohnstone</dc:creator>
    <dc:date>2018-02-15T21:29:18Z</dc:date>
    <item>
      <title>Publish a map service to ArcGIS server in a model</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319625#M24843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how I can use scripts in a model to publish a map service to ArcGIS&amp;nbsp; Server Manger from an mxd? I know that I have been circling around the answer and the correct code for days now, but I have two problems...1) I cannot quite get python script to work and 2) I am not sure how to actually add it to a model. I am new to this.&lt;/P&gt;&lt;P&gt;I have used the code provided from this link:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;CreateMapSDDraft—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; and I can get it to run without errors, BUT I have no idea where my sdraft is...or if it has worked. It looks like it does nothing. I am not sure where the files go!&amp;nbsp; And then to top it off, I need to have this run in a model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on where (file location) I should be looking for my published service would be great. I know I am missing something small and fundamental.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 21:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319625#M24843</guid>
      <dc:creator>LarisaJohnstone</dc:creator>
      <dc:date>2018-02-15T21:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Publish a map service to ArcGIS server in a model</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319626#M24844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The CreateMapSDDraft tool creates an output file and it's location and name is defined by the out_sddraft parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/396851_pastedImage_1.png" style="width: 620px; height: 68px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the second parameter within the tool.&amp;nbsp; Once you have your script working, what's the reason for using it in a model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 22:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319626#M24844</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2018-02-16T22:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Publish a map service to ArcGIS server in a model</title>
      <link>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319627#M24845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to simplify processes that we do almost on a&amp;nbsp; daily basis as we have&amp;nbsp;a lot of new staff that will be publishing services. So I was asked to "automate" some updates to a data base which update a mxd, spit out a pdf and it also needs to be published as a service for ArcGIS Sever to be consumed in our Geocortex apps. I have everything working in my model EXCEPT getting it to create the service in Manager.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 13:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-a-map-service-to-arcgis-server-in-a-model/m-p/319627#M24845</guid>
      <dc:creator>LarisaJohnstone</dc:creator>
      <dc:date>2018-02-20T13:38:28Z</dc:date>
    </item>
  </channel>
</rss>

