<?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: Problems with geoprocessing service created in python in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714732#M23666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've implemented messages in the script. At the second attempt of running the script, there are not written any messages to output. It seems like the GP service fails right away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2017 11:40:12 GMT</pubDate>
    <dc:creator>TorbjørnDalløkken2</dc:creator>
    <dc:date>2017-12-19T11:40:12Z</dc:date>
    <item>
      <title>Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714728#M23662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;I'm experiencing some problems with a geoprocessing service which I've created, that I'm not able to figure out so I hope some of you have any suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A bit of background:&lt;/P&gt;&lt;P&gt;I have a webapplication (created with webappbuilder) where the user can run a geoprocessing service (gp 1) to get some resulting points. The user is then going to run a second geoprocessing service (gp 2) which sends some information from the result to another external webservice. The users are not going to run the same geoprocessing service (gp 2) twice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a script in python which reads the points from the last ran job (gp 1) and uses the library Zeep to connect to the external webservice. Inside the script, I've also added some functionality to find out whether the script has been run before or not.&amp;nbsp; I've published this as a geoprocessing service (gp 2) with some parameters. So far, so good. When I go to the webapplication and try to run this, it works well. If I try to run the script a second time, in the same session, I get the error &lt;STRONG&gt;"could not service request"&lt;/STRONG&gt;. I would like the output to be "&lt;STRONG&gt;The script has already been run"&lt;/STRONG&gt;, as defined in my script.&amp;nbsp;&amp;nbsp;In ArcGIS Server Manager, the only information in the log is that the service has crashed. If I reload the webapplication, I can run the script once more and this time I get the right output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know or have any idea of why my geoprocessing service crashes, every second run?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 08:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714728#M23662</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2017-12-18T08:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714729#M23663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do remember some behavior in an old version of ArcGIS Server (10.0 or 10.1?) where each second run yielded the correct response, but that was corrected in a later version What version are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 12:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714729#M23663</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-18T12:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714730#M23664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The geoprocessing service is running on ArcGIS Server 10.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 07:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714730#M23664</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2017-12-19T07:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714731#M23665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In 10.3 the problem was already solved, so that shouldn't be the problem.&amp;nbsp; Did you contact your local Esri&amp;nbsp;distributor? I think that in order to solve this, one should have a look at server configurations, logs, etc in order to understand what is happening. This is normally something that Esri support&amp;nbsp;can help you with. Just wondering, does your script implement messages or does it write steps to a log file? Do you know at which line of the script the GP service fails?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 11:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714731#M23665</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-19T11:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714732#M23666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've implemented messages in the script. At the second attempt of running the script, there are not written any messages to output. It seems like the GP service fails right away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 11:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714732#M23666</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2017-12-19T11:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714733#M23667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any error message reported in the log files of ArcGIS Server or at the service level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 11:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714733#M23667</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-19T11:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714734#M23668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again. When setting the service log-level to info, I get this messages in the log.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Msg time="2017-12-22T09:14:30,472" type="SEVERE" code="8252" source="FH/Vand_Smsvarsling.GPServer" process="6416" thread="527" methodName="" machine="DWARE2541.DMZ2.LOC" user="" elapsed=""&amp;gt;Instance of the service 'FH/Vand_Smsvarsling.GPServer' crashed. Please see if an error report was generated in 'C:\arcgisserver\logs\DWARE2541.DMZ2.LOC\errorreports'. To send an error report to Esri, compose an e-mail to &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:ArcGISErrorReport@esri.com"&gt;ArcGISErrorReport@esri.com&lt;/A&gt;&lt;SPAN&gt; and attach the error report file.&amp;lt;/Msg&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;Msg time="2017-12-22T09:14:38,138" type="SEVERE" code="8254" source="Server" process="6416" thread="1" methodName="" machine="DWARE2541.DMZ2.LOC" user="" elapsed=""&amp;gt;The containing process for 'FH/Vand_Smsvarsling' job 'jc354140e2f4946b1acca04e0a28cbfa6' has crashed.&amp;lt;/Msg&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I &lt;STRONG&gt;first&lt;/STRONG&gt; run the script, it works fine; the external service is called correctly and the script writes a new file "run.txt" into a folder on the jobs-directory. The &lt;STRONG&gt;second&lt;/STRONG&gt; time I try to run the script, it fails with this error. If I try to run the script for a &lt;STRONG&gt;third&lt;/STRONG&gt; time, again it works correctly and says that the script has been run before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 08:25:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714734#M23668</guid>
      <dc:creator>TorbjørnDalløkken2</dc:creator>
      <dc:date>2017-12-22T08:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with geoprocessing service created in python</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714735#M23669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/290665"&gt;Torbjørn Dalløkken&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note; since the messages are of type SEVERE, they will always appear in your log indifferent of the setting of the message level.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;EM&gt;Instance of the service 'FH/Vand_Smsvarsling.GPServer' crashed. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Please see if an error report was generated in 'C:\arcgisserver\logs\DWARE2541.DMZ2.LOC\errorreports'. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;To send an error report to Esri, compose an e-mail to &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:ArcGISErrorReport@esri.com"&gt;ArcGISErrorReport@esri.com&lt;/A&gt;&lt;SPAN&gt; and attach the error report file.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an error report in the folder&amp;nbsp;C:\arcgisserver\logs\DWARE2541.DMZ2.LOC\errorreports, and have you sent it to the email address provided? Did you contact Esri Support?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 16:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/problems-with-geoprocessing-service-created-in/m-p/714735#M23669</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-12-22T16:44:35Z</dc:date>
    </item>
  </channel>
</rss>

