<?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: Geoprocessing service not working in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113052#M31439</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/257092"&gt;@Aнастасия88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am referring to the print action in your web browser/HTML application. The developer tools will track the web request that you send to the server.&lt;/P&gt;&lt;P&gt;Simply, try printing/exporting the web map in your application while developer tools is open. When you have sent the request, the network tab will update with a new row - your request to the printTaskUrl labelled &lt;EM&gt;execute&lt;/EM&gt; or &lt;EM&gt;submitJob.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Select the network activity and review the request parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you have received the printed Web Map url in your HTML application, a new row should appear indicating a network response from the server.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 23:45:33 GMT</pubDate>
    <dc:creator>LongDinh</dc:creator>
    <dc:date>2021-11-01T23:45:33Z</dc:date>
    <item>
      <title>Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112734#M31430</link>
      <description>&lt;P&gt;Hello community, I am stuck in setting up a geoprocessing service to export a web map. I am following &lt;A href="https://enterprise.arcgis.com/en/server/10.8/create-web-apps/windows/gp-service-example-basic-high-quality-webmap-printing.htm" target="_self"&gt;ESRI tutorial&lt;/A&gt; to achieve this task. I managed to publish a geoprocessing service to ArcGIS server and used the sample JavaScript code with the URL to the geoprocessing service to build a web application to export the web map. However, what I can see by double clicking the html file is just a blank interface, not the web map.&lt;/P&gt;&lt;P&gt;I have been comparing this tutorial with other ESRI learning source such as &lt;A href="https://www.youtube.com/watch?v=TUHg7rgTRn4" target="_self"&gt;ESRI video&lt;/A&gt; (13:04). I found that this tutorial uses "&lt;STRONG&gt;Optional&lt;/STRONG&gt;" for "&lt;STRONG&gt;Web_Map_as_JSON&lt;/STRONG&gt;" in parameter setting of the script tool whereas the video uses "&lt;STRONG&gt;Required&lt;/STRONG&gt;" for "&lt;STRONG&gt;Web_Map_as_JSON&lt;/STRONG&gt;" parameter (please see screen shot below). &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_0-1635726180287.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26520i96AF63D0CBB4B3EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_0-1635726180287.png" alt="A0328_0-1635726180287.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As ESRI's tip in the tutorial says that we can leave the input parameter for Web_Map_as_JSON blank, the script tool won't run successfully if I change the parameter to "Required".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_1-1635726712137.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26521iEF7B9046694E4C7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_1-1635726712137.png" alt="A0328_1-1635726712137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know if this difference is the cause of my problem but I have not been able to find any other potential cause yet. I appreciate If anyone points out a cause of my problem and give me some advice.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 00:41:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112734#M31430</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-01T00:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112747#M31431</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/257092"&gt;@Aнастасия88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It may be empty because you have not set a basemap in your layout template or a basemap in your Web_Map_as_JSON object does not exist.&lt;/P&gt;&lt;P&gt;If you are not sending any features to print, it will should print the basemap of the layout template if you have that set in your layout template. When you published the Printing Geoprocessing Service, did you add a default basemap?&lt;/P&gt;&lt;P&gt;In your browser's developer tools, check the Network tab for the post body json parameters of the printing task url request is actually sending what you expect to see e.g the Web_Map_as_JSON object contains the relevant property values (&lt;SPAN&gt;&lt;EM&gt;operationalLayers&lt;/EM&gt; and &lt;EM&gt;baseMaps&lt;/EM&gt;)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;See &lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/exportwebmap-specification.htm" target="_self"&gt;ExportWebMap Specification&lt;/A&gt; for the expected object in your request.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 03:33:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112747#M31431</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-11-01T03:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112752#M31432</link>
      <description>&lt;P&gt;Hi LongDinh, thanks for your advice.&lt;/P&gt;&lt;P&gt;I think I have set a basemap by changing the path to the folder that contains the template mxd file. The line below is ESRI sample code in the tutorial, so I updated the path in the line to suit my case and the folder is registered.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# The template location in the server data store
templateMxd = r"\\MyComputer\MyDataStore\BasicTutorial\v103\WorldTopo_103Templatev2_288k_to_1k.mxd"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I feel what you said "&lt;SPAN&gt;a basemap in Web_Map_as_JSON object does not exist" may be happening in my case.&amp;nbsp; As you mentioned, I opened the Network tab but I don't know what I am supposed to do next. Could you please tell me what I should do next?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_0-1635739227133.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26523i44EC6A7142CA437A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_0-1635739227133.png" alt="A0328_0-1635739227133.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 04:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112752#M31432</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-01T04:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112757#M31434</link>
      <description>&lt;P&gt;Have the html file open and open your developer tools to the network tab. Next hit the print button&lt;/P&gt;&lt;P&gt;A request to the printUrl as coded in the JS sample will appear with details of the request parameters sent to the server.&lt;/P&gt;&lt;P&gt;Select it and scroll down to the Request Parameters. There should be a Web_Map_as_JSON parameter which is the web map (as JSON) object you sent to the server. Inspect it to see if it is what you expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is not what you expected, it can be any of the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You have not published the toolbox with the appropriate template (i.e. the template is unreachable by the server at the UNC path that you set),&lt;/LI&gt;&lt;LI&gt;Your application's JS code is incorrect. Reference notes become outdated very frequently so check the JS code,&lt;/LI&gt;&lt;LI&gt;It is possible the template does not exist or was not published to AGS. Ensure the published template exists and that the toolbox has that as an option.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 05:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1112757#M31434</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-11-01T05:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113042#M31438</link>
      <description>&lt;P&gt;Do you mean a print button for the "&lt;SPAN&gt;Next hit the print button&lt;/SPAN&gt;" is this one? I did hit but it did not happen anything.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_1-1635808085145.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26579i32EFBBF2F65DFBDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_1-1635808085145.png" alt="A0328_1-1635808085145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Although I was not sure if this is the one you meant, I also changed the setting of "Emulate CSS media type" to "print". But it still does not show the details of the request parameters. I guess I am not doing what you mentioned...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_2-1635808463367.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26581i2BA5B80CF37C579C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_2-1635808463367.png" alt="A0328_2-1635808463367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 23:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113042#M31438</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-01T23:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113052#M31439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/257092"&gt;@Aнастасия88&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am referring to the print action in your web browser/HTML application. The developer tools will track the web request that you send to the server.&lt;/P&gt;&lt;P&gt;Simply, try printing/exporting the web map in your application while developer tools is open. When you have sent the request, the network tab will update with a new row - your request to the printTaskUrl labelled &lt;EM&gt;execute&lt;/EM&gt; or &lt;EM&gt;submitJob.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Select the network activity and review the request parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you have received the printed Web Map url in your HTML application, a new row should appear indicating a network response from the server.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 23:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113052#M31439</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-11-01T23:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113061#M31440</link>
      <description>&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Actually, the first picture is the one with the print button in my html application. while the developer tool is open, I hit the print but it did not happen anything.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 23:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113061#M31440</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-01T23:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113067#M31441</link>
      <description>&lt;P&gt;The JavaScript code is not working. The request appears to never have been sent.&lt;/P&gt;&lt;P&gt;Check the console tab to see if anything has been logged.&lt;/P&gt;&lt;P&gt;Are you able to test this on Portal or ArcGIS Online using the the Web Application Print Widget?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 00:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113067#M31441</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-11-02T00:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113077#M31442</link>
      <description>&lt;P&gt;Thank you for pointing out the cause.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have opened the console but don't understand the messages unfortunately.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A0328_1-1635813625569.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26585i31C9114AFF4771D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="A0328_1-1635813625569.png" alt="A0328_1-1635813625569.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tried to add a print widget to Web Application Builder with the service url. But error came up, saying "This URL is not a print task". Maybe this is because I used ArcPy.mapping for the script tool rather than ArcPy.MP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 00:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113077#M31442</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-02T00:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113079#M31443</link>
      <description>&lt;P&gt;What's the endpoint of the url which you added to the print widget? It should look something like:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://webadaptorhost.domain.com/webadaptorname/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Tas" target="_blank"&gt;https://webadaptorhost.domain.com/webadaptorname/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Tas&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;You can follow these &lt;A href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-print.htm" target="_self"&gt;reference notes&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The console error appears to not accept your machine's domain. You can enable it following this&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/restrict-cross-domain-requests-to-your-portal.htm#:~:text=Log%20in%20to%20your%20portal,to%20items%20on%20your%20portal" target="_blank"&gt;https://enterprise.arcgis.com/en/portal/latest/administer/windows/restrict-cross-domain-requests-to-your-portal.htm#:~:text=Log%20in%20to%20your%20portal,to%20items%20on%20your%20portal&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 01:27:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113079#M31443</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-11-02T01:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service not working</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113086#M31444</link>
      <description>&lt;P&gt;I added this service URL ("&lt;A href="https://MyServer:6443/arcgis/rest/services/ArcpyMapp/ExportWebMap/GPServer/ExportWebMap" target="_blank"&gt;https://MyServer:6443/arcgis/rest/services/ArcpyMapp/ExportWebMap/GPServer/ExportWebMap&lt;/A&gt;").&lt;/P&gt;&lt;P&gt;This URL is what I also used for the html. But once I type this URL in the *Service URL section, the error came across, "This URL is not available".&lt;/P&gt;&lt;P&gt;Thanks for the link, I will read through them.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 01:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-not-working/m-p/1113086#M31444</guid>
      <dc:creator>Aнастасия88</dc:creator>
      <dc:date>2021-11-02T01:51:24Z</dc:date>
    </item>
  </channel>
</rss>

