<?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: how to set directory to local files as input in GP Service in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490851#M16399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more comment. The server log will show any error messages from the tool. Just like the result window in ArcMap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 04:43:15 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2016-07-28T04:43:15Z</dc:date>
    <item>
      <title>how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490845#M16393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the ArcGIS desktop and ArcGIS server on the same machine. The input parameters of my GP service require the directory to TIFF files, e.g., C:\inputdata\image1.tif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can successfully run the gp service from ArcMap. When I gave the exactly same inputs, and run the gp service from the rest endpoint, it failed with the error "invalid input parameter". How could I appropriately set the directory as inputs when running gp service from rest endpoint? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:26:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490845#M16393</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-26T20:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490846#M16394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the ArcGIS Server owner (owner of ArcSOC.exe process) have access to the files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 05:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490846#M16394</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2016-07-27T05:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490847#M16395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Register the inputdata folder as a data store on ArcGIS Server. [&lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/overview-register-data-with-arcgis-server.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/overview-register-data-with-arcgis-server.htm"&gt;About registering your data with ArcGIS Server—Documentation | ArcGIS for Server&lt;/A&gt; ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 05:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490847#M16395</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2016-07-27T05:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490848#M16396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank&amp;nbsp; you, Mody! I granted the access permission. But, the submitted job still failed when running it from REST endpoint. No error information returned, just "failed". Do you have any idea why the gp service runs well in ArcMap, but fails immediately when running from REST endpoint? Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 15:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490848#M16396</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-27T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490849#M16397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;P&gt;I also did that, but did not work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 15:58:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490849#M16397</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-27T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490850#M16398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you published a GP it copies the GP tool into C:\arcgisserver\directories\arcgissystem\arcgisinput\XXX.GPServer and change it. You can go into this directory to understand what is the different between the tool that runs in ArcMap to the tool that runs in the server (do not change anything there).&lt;/P&gt;&lt;P&gt;Then you can go to C:\arcgisserver\directories\arcgisjobs\XXX_gpserver - there is a directory for each run - and check temporary files and results.&lt;/P&gt;&lt;P&gt;These are the two best ways to debug gp services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have Fun &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 04:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490850#M16398</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2016-07-28T04:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490851#M16399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more comment. The server log will show any error messages from the tool. Just like the result window in ArcMap.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 04:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490851#M16399</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2016-07-28T04:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490852#M16400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also checked the server log which is empty (I have enabled info-level messages of the gp service). The paragraph below on ESRI website mentioned that if the server log is empty, it indicates invalid inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #ededed;"&gt;"If you did not receive any geoprocessing messages even after setting your message level to &lt;/SPAN&gt;&lt;SPAN class="uicontrol" style="font-weight: bold; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #ededed;"&gt;Info&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; background-color: #ededed;"&gt;, it indicates invalid inputs. The input parameter values of the task may be malformed, partial, or invalid JSONs. You must verify the input parameter data types and their JSON values."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GP service I tested only has two inputs: one is the directory to a TIFF file, and the other one is a number. Since I have already granted the access permission to the TIFF file, the input should not be invalid any more. So confusing why the job running gp service from Rest endpoint still failed....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490852#M16400</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-28T15:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490853#M16401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mody, Thanks again. I checked the two folders you mentioned above, but did not find something useful. Could you explain more in detail about the exact differences between running gp service &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;from my GIS Server connection in Catalog &lt;/SPAN&gt;and running in the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490853#M16401</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-28T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490854#M16402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mody,&lt;/P&gt;&lt;P&gt;my gp service runs well now! Thanks for all your help.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I changed the type of one input parameter from "GPSAGeoDataType" to "GPString", and it works now.&amp;nbsp; One more question, do you know why the directory to the TIFF file can be accepted as the input in ArcMap, while it can not be recognized in server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490854#M16402</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-28T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490855#M16403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the output location of a buffer tool I was working with I used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%scratchworkspace%\BufferedPoints.shp &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked well and I was able to upload as a service and use it with the geoprocessing widget. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 19:32:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490855#M16403</guid>
      <dc:creator>JosiahCorona2</dc:creator>
      <dc:date>2016-07-29T19:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to set directory to local files as input in GP Service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490856#M16404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 20:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-set-directory-to-local-files-as-input-in-gp/m-p/490856#M16404</guid>
      <dc:creator>springzhang</dc:creator>
      <dc:date>2016-07-29T20:31:29Z</dc:date>
    </item>
  </channel>
</rss>

