<?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: Executing GP service for a batch geocode process using JSON - Task parameter properties (REST) in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346274#M1686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly is the question?&lt;/P&gt;&lt;P&gt;You've talked about how parameters work in regards to a GPRecordSet, but what exactly is your problem or where are you stuck?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 14:32:15 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2015-06-02T14:32:15Z</dc:date>
    <item>
      <title>Executing GP service for a batch geocode process using JSON - Task parameter properties (REST)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346273#M1685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help will be appreciated. I am trying to make this work but have not succeeded yet, though I was able to host the .CSV table in an app server that has access to the GIS site and the process executed fine. Now, I want to change the parameter to be a GPRecordSet to replicate my table definitions but have not succeeded. I noticed the following Help reference: &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Task_parameter_properties_REST/005700000070000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/Task_parameter_properties_REST/005700000070000000/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #c55a11;"&gt;For GPRecordSet and GPFeatureRecordSetLayer parameters, if you have a large number of records and features, you can store the JSON structure in a file and provide the URL as an input. For example, &lt;SPAN class="usertext"&gt;&lt;SPAN&gt;{ "url" : "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver/myfeatures/afile.txt" rel="nofollow" target="_blank"&gt;http://myserver/myfeatures/afile.txt&lt;/A&gt;&lt;SPAN&gt;"}&lt;/SPAN&gt;&lt;/SPAN&gt;. The text file must have featureset or recordset in JSON format.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this also destroys my intention on trying to use the JSON format since my table definition can have thousands or records. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 13:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346273#M1685</guid>
      <dc:creator>ErnestoCarreras3</dc:creator>
      <dc:date>2015-06-02T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Executing GP service for a batch geocode process using JSON - Task parameter properties (REST)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346274#M1686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly is the question?&lt;/P&gt;&lt;P&gt;You've talked about how parameters work in regards to a GPRecordSet, but what exactly is your problem or where are you stuck?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 14:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346274#M1686</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2015-06-02T14:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Executing GP service for a batch geocode process using JSON - Task parameter properties (REST)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346275#M1687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-size: 16px; font-family: Arial, Helvetica, sans-serif;"&gt;I would like to be able to call the service from code and directly provide a GPRecordSet rather than create some other process that calls jobs on files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I would like to know the correct input parameters to the batch process service call. The example &lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;GPRecordSet JSON is invalid on the help page given above.&amp;nbsp; On our server the submit job for our batch address geocode expects an Input_Table of GPDataFile.&amp;nbsp; What would you suggest we do to enable this functionality?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 15:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346275#M1687</guid>
      <dc:creator>ErnestoCarreras</dc:creator>
      <dc:date>2015-06-02T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Executing GP service for a batch geocode process using JSON - Task parameter properties (REST)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346276#M1688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without seeing your model or script, it sounds like the input parameter to it is a file (GPDataFile as you reference).&lt;/P&gt;&lt;P&gt;Before publishing you'd need to setup the model or script with an input parameter of TABLE.&lt;/P&gt;&lt;P&gt;Take special note though, that when publishing the result as a service, depending how you provided input to the parameter it may make a best guess and try to change it. Ensure that the input to your service stays as a "user defined value" (it'll show the schema of the table in the service editor for you to confirm). Once published, it'll be a GPRecordSet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting the required input JSON correct can be troublesome.&lt;/P&gt;&lt;P&gt;If you go into ArcMap and open the Python window, you can get JSON code from your CSV by putting these lines:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;rs = arcpy.RecordSet()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;rs.load("c:/path/to/file.csv")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;rs.JSON&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 16:56:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346276#M1688</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2015-06-02T16:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Executing GP service for a batch geocode process using JSON - Task parameter properties (REST)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346277#M1689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3147"&gt;Kevin Hibma&lt;/A&gt;​ I changed the variable in the model to Record Set as described in &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002w00000023000000"&gt;A quick tour of using Feature Set and Record Set&lt;/A&gt;. Then published te model and it worked as expected. Thanks for your info as it was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 18:39:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/executing-gp-service-for-a-batch-geocode-process/m-p/346277#M1689</guid>
      <dc:creator>ErnestoCarreras</dc:creator>
      <dc:date>2015-06-04T18:39:06Z</dc:date>
    </item>
  </channel>
</rss>

