<?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 unable to publish geoprocessing service from python script  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/unable-to-publish-geoprocessing-service-from/m-p/696797#M54010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a simple python script tool and run from ArcGIS desktop, it is works fine. The script is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = "C:/project/pmms.gdb"&lt;/P&gt;&lt;P&gt;arcpy.SelectLayerByLocation_management('stops', 'intersect', 'adminarea')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;But when the same script is published as geoprocessing service, it is failed to publish as server tool. The pmms.gdb (file geodatabase) is located under c:\project folder. I have registered folder c:\project with ArcGIS server. I have checked result map service check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error / warning when analyzed before publishing geoprocessing service. Why the log says invalid layer when the folder is registered with server. The server log is given below. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:16 PM Error executing tool.: ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). System/PublishingTools.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:16 PM Failed to create the service.: ERROR: service failed to start, Cannot connect to this server. System/PublishingTools.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:16 PM Core server call to create service failed. System/PublishingTools.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:13 PM Unable to add Map Server configuration. selectlayer.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:10 PM Services containing process crashed. selectlayer.MapServer instance has crashed. Server&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:06:10 PM IgnoreCache property not found. selectlayer.MapServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:06:10 PM CacheOnDemand property not found. selectlayer.MapServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:06:10 PM IsCached property not found. selectlayer.MapServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer STOPS C:\project\pmms.gdb\STOPS selectlayer.GPServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer ADMINAREA C:\project\pmms.gdb\ADMINAREA selectlayer.GPServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer STOPS C:\project\pmms.gdb\STOPS selectlayer.GPServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer ADMINAREA C:\project\pmms.gdb\ADMINAREA selectlayer.GPServer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 11:25:37 GMT</pubDate>
    <dc:creator>jayasudha</dc:creator>
    <dc:date>2016-03-18T11:25:37Z</dc:date>
    <item>
      <title>unable to publish geoprocessing service from python script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-publish-geoprocessing-service-from/m-p/696797#M54010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have created a simple python script tool and run from ArcGIS desktop, it is works fine. The script is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = "C:/project/pmms.gdb"&lt;/P&gt;&lt;P&gt;arcpy.SelectLayerByLocation_management('stops', 'intersect', 'adminarea')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;But when the same script is published as geoprocessing service, it is failed to publish as server tool. The pmms.gdb (file geodatabase) is located under c:\project folder. I have registered folder c:\project with ArcGIS server. I have checked result map service check box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no error / warning when analyzed before publishing geoprocessing service. Why the log says invalid layer when the folder is registered with server. The server log is given below. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:16 PM Error executing tool.: ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). System/PublishingTools.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:16 PM Failed to create the service.: ERROR: service failed to start, Cannot connect to this server. System/PublishingTools.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:16 PM Core server call to create service failed. System/PublishingTools.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:13 PM Unable to add Map Server configuration. selectlayer.GPServer&lt;/P&gt;&lt;P&gt;SEVERE Mar 18, 2016 4:06:10 PM Services containing process crashed. selectlayer.MapServer instance has crashed. Server&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:06:10 PM IgnoreCache property not found. selectlayer.MapServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:06:10 PM CacheOnDemand property not found. selectlayer.MapServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:06:10 PM IsCached property not found. selectlayer.MapServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer STOPS C:\project\pmms.gdb\STOPS selectlayer.GPServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer ADMINAREA C:\project\pmms.gdb\ADMINAREA selectlayer.GPServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer STOPS C:\project\pmms.gdb\STOPS selectlayer.GPServer&lt;/P&gt;&lt;P&gt;WARNING Mar 18, 2016 4:05:57 PM Invalid layer ADMINAREA C:\project\pmms.gdb\ADMINAREA selectlayer.GPServer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 11:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-publish-geoprocessing-service-from/m-p/696797#M54010</guid>
      <dc:creator>jayasudha</dc:creator>
      <dc:date>2016-03-18T11:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: unable to publish geoprocessing service from python script</title>
      <link>https://community.esri.com/t5/python-questions/unable-to-publish-geoprocessing-service-from/m-p/696798#M54011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First off, you need to check and see if the services are running in the System folder on the ArcGIS Server you are trying to publish to.&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;System/PublishingTools.GPServer&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 14:25:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/unable-to-publish-geoprocessing-service-from/m-p/696798#M54011</guid>
      <dc:creator>AndrewKeith3</dc:creator>
      <dc:date>2016-04-07T14:25:34Z</dc:date>
    </item>
  </channel>
</rss>

