<?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: ArcPy 10.1 StageService fails in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83396#M6626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried out this update script straight from our 10.3 documentation help files, it fails on 64bit and successful in 32bit python. I'm using python 2.7.8. I just find it weird that this particular function in the arcpy library fails in 64bit python while the rest works fine like creating SD drafts.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2016 22:46:15 GMT</pubDate>
    <dc:creator>ChrisPedrezuela</dc:creator>
    <dc:date>2016-07-12T22:46:15Z</dc:date>
    <item>
      <title>ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83390#M6620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When executing the line arcpy.StageService_server(sddraft, sd) in ArcPy 10.1 using both PythonWin and VS2012 it fails with the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR:root:ERROR 001269: Compressing the service definition failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have noticed that this error is mentioned in the link thus it is not very helpful: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000002r001269"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000002r001269&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The folder where the service definition is being written has all the appropriate permission.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I execute the script inside ArcMap or ArcGIS for Server the line works just fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I have more help here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jose&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 04:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83390#M6620</guid>
      <dc:creator>JoseSousa</dc:creator>
      <dc:date>2013-07-03T04:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83391#M6621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm guessing you can repro this through the UI and outside of Python. Are your data registered with the data store? If not, I would start with that. Otherwise, I have seen this happen with a corrupt MXD, so you could try adding the layers to a new map and trying to publish that MXD.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 18:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83391#M6621</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2013-07-03T18:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83392#M6622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The data store is appropriately registered and there is no problems with the MXD. I even created a new one with just one basic layer and it still doesn't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am validating the sddraft first and there aren't errors to the exception of the scale range.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned before this works perfectly if the script is called by ArcGIS for Desktop (e.g. Tool or Geoprocessing Window).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When it is called from outside (e.g. VS or PythonWin) it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jose&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 22:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83392#M6622</guid>
      <dc:creator>JoseSousa</dc:creator>
      <dc:date>2013-07-03T22:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83393#M6623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jose,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a thought, but do you have any other versions of Python installed? I'm wondering if ArcMap is pointing to the correct version and perhaps the IDEs that you are using are pointing to a different version?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Luke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 16:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83393#M6623</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2013-07-05T16:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83394#M6624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The only case I've got stuck with that was because the "enabling SOE debugging" option was enabled (see attachment). For some reasons when the SOE debugging option is enabled, then the "Publishing Tool" geoprocessing service fails. Otherwise, check the ArcGIS Server logs, it must be saying&amp;nbsp; something about it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 21:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83394#M6624</guid>
      <dc:creator>SchoppMatthieu</dc:creator>
      <dc:date>2013-07-05T21:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83395#M6625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Lucas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. It was a conflict between versions. Thanks for pointing me to that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had installed AGS for Desktop which uses the 32 bits version of Python. Then installed PythonWin (and other stuff for other IDE's) for 32 bits OS. Then installed the ArcGIS Background Geoprocessing for Desktop 64 bits and it seems like it changed the Python version used for all IDE's. So when I tested these IDE's for the Python version (not the arcpy version) they were using the 64 bits version while &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS for Desktop was still using the 32 bits as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After uninstalling, the ArcGIS Background Geoprocessing for Desktop and reinstalling all the IDE components that used Python (e.g. IronPython) everything is working properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is a bit odd though that the desktop libraries coming with the AGS background geoprocessing setup causes this issue as AGS for Server is running arcpy on 64 bits and seems to work fine ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jose&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri NZ&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 03:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83395#M6625</guid>
      <dc:creator>JoseSousa</dc:creator>
      <dc:date>2013-07-08T03:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy 10.1 StageService fails</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83396#M6626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried out this update script straight from our 10.3 documentation help files, it fails on 64bit and successful in 32bit python. I'm using python 2.7.8. I just find it weird that this particular function in the arcpy library fails in 64bit python while the rest works fine like creating SD drafts.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 22:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-10-1-stageservice-fails/m-p/83396#M6626</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2016-07-12T22:46:15Z</dc:date>
    </item>
  </channel>
</rss>

