<?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: Map Service Won't Publish from ArcMap or Python in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652170#M24885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Llyod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try removing a layer, and then attempt to Analyze the service.&amp;nbsp; You can continue to do this until the service analyzing successfully.&amp;nbsp; This will help you narrow down if it's a particular layer causing the issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jun 2017 18:50:25 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2017-06-06T18:50:25Z</dc:date>
    <item>
      <title>Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652169#M24884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to publish a map service from ArcMap (10.3). It sits at 0% on "analyzing service" forever before I have to close ArcMap in the task manager. If I try to publish from Python, it creates a 51KB service definition file and then Python crashes. I'm getting no errors and nothing shows up in the ArcGIS server logs. This service has five layers, two of which are time enabled NetCDF rasters, and one that is a graphics layer. I'm not sure how to proceed.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:47:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652169#M24884</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2017-06-06T18:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652170#M24885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Llyod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try removing a layer, and then attempt to Analyze the service.&amp;nbsp; You can continue to do this until the service analyzing successfully.&amp;nbsp; This will help you narrow down if it's a particular layer causing the issue.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652170#M24885</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-06-06T18:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652171#M24886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run the Python script, it creates the sd draft in a documents folder in addition to a folder named "0." The layers and geodatabase associated with the service get copied in there. I noticed Python crashed when the MXD was copied into this folder. I'll save it with a new name in case it's corrupted.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 18:57:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652171#M24886</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2017-06-06T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652172#M24887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, no matter what layers are removed from the MXD, the script fails once the MXD is copied into this "0" folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 21:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652172#M24887</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2017-06-06T21:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652173#M24888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's still not clear whether it's data, map, or environment specific. &amp;nbsp;What happens if you add some very simple data to a new map, save it, then run the script against the new map? &amp;nbsp;If that works, then you can try to add your other layers into the new map and try again. &amp;nbsp;Last resort if things keep crashing, you can try on a different machine, as it may be related to Python/arcpy on the machine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 17:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652173#M24888</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-06-07T17:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652174#M24889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's definitely not ArcMap or ArcPy on the machine. We have a couple dozen map services that publish to our server daily, and they've all been fine. This is the only map that contains a graphics layer and NetCDF files. That shouldn't matter, should it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We just made sure that the layers all had the same coordinate system, and the data frame is projected in WGS 1984 World Mercator. It's still freezing up during analysis in ArcMap and crashing in Python. The server doesn't have any log messages.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652174#M24889</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2017-06-12T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652175#M24890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I clicked "analyze map" in the file menu on the MXD. Apparently there was a hidden data table with a missing source in the table of contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652175#M24890</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2017-06-12T19:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652176#M24891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So when you analyzed the mxd during the initial publishing process, the Analyze button for the ArcGIS for Server toolbar did not show you that there was a hidden data table with a missing source?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the Analyze button was supposed to display this type of warning (error).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:27:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652176#M24891</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-06-12T19:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652177#M24892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ideally, your script would have a section that analyzes the sddraft after creating it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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" rel="nofollow noopener noreferrer" target="_blank"&gt;CreateMapSDDraft—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# create service definition draft&lt;/SPAN&gt;
analysis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateMapSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mapDoc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sddraft&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ARCGIS_SERVER'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; summary&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; tags&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# stage and upload the service if the sddraft analysis did not contain errors&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; analysis&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'errors'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Execute StageService&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;StageService_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# Execute UploadServiceDefinition&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UploadServiceDefinition_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; con&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;# if the sddraft analysis contained errors, display them&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; analysis&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'errors'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like a bug if the analysis is missing the fact that a table in the map document has a broken data source.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652177#M24892</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2021-12-12T03:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652178#M24893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My script does have that section, so it was definitely not catching that missing data source. I got the service to publish, but all the layers except for one are missing. I'll try again.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652178#M24893</guid>
      <dc:creator>LloydBronn</dc:creator>
      <dc:date>2017-06-13T13:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Map Service Won't Publish from ArcMap or Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652179#M24894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was the table with the missing data source associated with the NetCDF files? &amp;nbsp;I ask because I had a feature class with an associated where I deleted the feature class and it left the standalone table behind. &amp;nbsp;I then changed the name of the table's file gdb so it was a missing data source. &amp;nbsp;When I analyzed the mxd prior to publishing it showed an error with this table and it would not let me proceed to the publishing step until this was corrected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/map-service-won-t-publish-from-arcmap-or-python/m-p/652179#M24894</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2017-06-13T14:00:17Z</dc:date>
    </item>
  </channel>
</rss>

