<?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 and Publish Map Service without .MXD Via Python ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-and-publish-map-service-without-mxd-via/m-p/1237963#M66214</link>
    <description>&lt;P&gt;You will need to mapping module to add/configure, etc. the layers anyway, but don't know that it will actually publish the service without mxd.save().&amp;nbsp; You would need to test it and see if the changes are reflected in the service without saving the mxd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In worst case, you could create/modify/save the mxd, publish the service, then delete the intermediate mxd file.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Mon, 05 Dec 2022 19:56:00 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2022-12-05T19:56:00Z</dc:date>
    <item>
      <title>Create and Publish Map Service without .MXD Via Python ?</title>
      <link>https://community.esri.com/t5/python-questions/create-and-publish-map-service-without-mxd-via/m-p/1237526#M66210</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;just have a few questions, if you guys can help much is appreciated.&amp;nbsp; I wanted to see if it's possible the create a map service, then publish it to ArcGIS Server without creating an .mxd file using Python/Arcpy?&amp;nbsp;&lt;/P&gt;&lt;P&gt;script pseudo:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- connect to db&lt;/P&gt;&lt;P&gt;- grab the fc/table&lt;/P&gt;&lt;P&gt;- load said fc/table to map document, set parameters i.e. don't show zoom beyond 1:1,000,000&lt;/P&gt;&lt;P&gt;-&amp;nbsp; use CreateMapSDdraft to create sddraft from said fc/table&lt;/P&gt;&lt;P&gt;-&amp;nbsp; analyze the sddraft file&amp;nbsp;&lt;/P&gt;&lt;P&gt;- then publish the sddraft file with ArcPy UploadServiceDefinitionserver&lt;/P&gt;&lt;P&gt;Would the above workflow be possible without needing to create a .mxd and saving it in a file directory?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 05:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-and-publish-map-service-without-mxd-via/m-p/1237526#M66210</guid>
      <dc:creator>victhomas</dc:creator>
      <dc:date>2022-12-03T05:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create and Publish Map Service without .MXD Via Python ?</title>
      <link>https://community.esri.com/t5/python-questions/create-and-publish-map-service-without-mxd-via/m-p/1237963#M66214</link>
      <description>&lt;P&gt;You will need to mapping module to add/configure, etc. the layers anyway, but don't know that it will actually publish the service without mxd.save().&amp;nbsp; You would need to test it and see if the changes are reflected in the service without saving the mxd.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In worst case, you could create/modify/save the mxd, publish the service, then delete the intermediate mxd file.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-and-publish-map-service-without-mxd-via/m-p/1237963#M66214</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-05T19:56:00Z</dc:date>
    </item>
  </channel>
</rss>

