<?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: Geo-processing service testing/debugging in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411715#M15961</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;This is for the post above this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re # 1: My SOP is messages on at the info level. Also, I found it faster to use VIM and edit the python live on the server (CentOS 7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re # 2: The 'inheritance' will not happen in 4.3 as there is currently no where to put the information. For example, in the 3.x version of the JS API points do not have extent info, &lt;STRONG&gt;however,&lt;/STRONG&gt; in 4.3 the points do have extents. Maybe in a future version of the JS &amp;nbsp;API the extent will be added to the Feature Set spec but currently it is not there so it will always be lost. &lt;STRONG&gt;Unless&lt;/STRONG&gt; ... there is another composite object in the 4.3 spec that could contain an extent as well as a Feature Set but that object would be something else i.e. not a Feature Set. BTW I hit this a lot when explaining the differences between WKT, EWKT, WKB, EWKB and the Geo-Package header that wraps WKB. &lt;STRONG&gt;Check out the output of the Features to JSON tool.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re #3: The default behavior for a Graphic in the 4.3 version of the JS API is 'ObjectID' with an initial value of -1. I agree that if a feature service was published using feature classes from a FGDB then the PK will&amp;nbsp;definitely be "OBJECTID" but not if we are talking interactively drawn graphics in a graphics layer using the 4.3 JS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can get my services to work but it would be very helpful and a much better the user experience if raw JSON in ESRI-JSON-Feature-Set-format could be consumed by Model Builder in an elegant fashion.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post later ... back to work for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2017 19:48:55 GMT</pubDate>
    <dc:creator>RobertHewlett</dc:creator>
    <dc:date>2017-05-05T19:48:55Z</dc:date>
    <item>
      <title>Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411702#M15948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be vital to geo-processing service debugging and testing if the the data formats of "Feature Set" and "Record Set" be properly supported on the Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the parameter of the model has the data type set as one of the above (Feature Set/Record Set) then one should be able to load JSON from a text file on disc or point to a feature service in AGO/ArcGIS Enterprise Server via a URL (or exiting connection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That way, one could get desktop pre-testing closer to the actual environment that will be encountered on the web where JSON feature sets and record sets rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is especially important for &lt;STRONG&gt;python script tools&lt;/STRONG&gt; where commands such as &lt;STRONG&gt;describe&lt;/STRONG&gt; result in objects with very different methods/properties depending on the data format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this not make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 17:12:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411702#M15948</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-02T17:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411703#M15949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, but I have only dealt with feature sets input.&lt;/P&gt;&lt;P&gt;And this is an important way to get user input in a geo-processing script.&lt;/P&gt;&lt;P&gt;ie the user inputs some points, or draws a polygon, or what ever.&lt;/P&gt;&lt;P&gt;If you want to suck in a geoJson file, or point to an existing feature in any sort of database, that is a different process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411703#M15949</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-05-02T18:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411704#M15950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the web when AGO or ArcGIS JS 4.3 API talks to a geo-processing service then features are sent as JSON:&lt;/P&gt;&lt;P&gt;Parameter: fl_out &lt;BR /&gt;&amp;nbsp; &amp;nbsp;Data Type:&lt;STRONG&gt; GPFeatureRecordSetLayer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when you are building the model on the Desktop (ArcMap/ArcPro) and test that model (before publishing it) the parameter boxes that appears restricts the user to selecting Feature Classes/Layer files even when one sets the data type to "Feature Set".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="349317" alt="feature set data type" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349317_feature_set_datatype.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when the model runs the dialog for the parameter only allows Feature classes&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="349318" alt="data sets allowed for feature set" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349318_feature_set_param.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dialog should allow for JSON (text file with a .JSON extension) or a REST-URL to a layer in feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;JSON to Features&lt;/STRONG&gt; tool allows one the select a JSON (See below):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="349331" alt="JSON to features tool" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/349331_json_to_feature.png" style="width: 620px; height: 464px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that more clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:52:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411704#M15950</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-02T18:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411705#M15951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to give it a schema or template, so that the feature set knows what sort of geometry to expect - Point, Line or Polygon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 18:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411705#M15951</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-05-02T18:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411706#M15952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would be in the JSON&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 19:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411706#M15952</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-02T19:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411707#M15953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are the first few lines of the JSON file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "displayFieldName" : "",&lt;BR /&gt; "fieldAliases" : {&lt;BR /&gt; "OBJECTID" : "OBJECTID"&lt;BR /&gt; },&lt;BR /&gt; &lt;STRONG&gt;"geometryType" : "esriGeometryPoint",&lt;/STRONG&gt;&lt;BR /&gt; "spatialReference" : {&lt;BR /&gt; &lt;STRONG&gt;"wkid" : 26910,&lt;/STRONG&gt;&lt;BR /&gt; "latestWkid" : 26910&lt;BR /&gt; },&lt;BR /&gt; &lt;STRONG&gt;"fields" :&lt;/STRONG&gt; [&lt;BR /&gt; {&lt;BR /&gt; "name" : "OBJECTID",&lt;BR /&gt; "type" : "esriFieldTypeOID",&lt;BR /&gt; "alias" : "OBJECTID"&lt;BR /&gt; }&lt;BR /&gt; ],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 19:10:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411707#M15953</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-02T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411708#M15954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To reiterate, the ability to consume JSON via model parameters on the Desktop&amp;nbsp;before publishing would greatly improve the geo-processing as a service experience. This would match the workflow on the web.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 19:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411708#M15954</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-02T19:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411709#M15955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the GP service supposed to do? &amp;nbsp;Digitize a point and do some processing? &amp;nbsp;A feature set in Desktop is the same as a GPFeatureRecordSetLayer on the web, so once you define the template, you should be able either digitize a point in ArcMap or use an existing feature class as input. &amp;nbsp;Once it's published, a web application will give you the option to draw a point in the application as the input point(s) to the GP task. &amp;nbsp;The WAB also would allow you to provide a service URL as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://server.arcgis.com/en/server/latest/publish-services/windows/a-quick-tour-of-authoring-geoprocessing-services.htm#ESRI_SECTION1_211D581E72A9444D8286916BA60344DC" title="http://server.arcgis.com/en/server/latest/publish-services/windows/a-quick-tour-of-authoring-geoprocessing-services.htm#ESRI_SECTION1_211D581E72A9444D8286916BA60344DC"&gt;A quick tour of authoring and sharing geoprocessing services—Documentation | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-feature-set-and-record-set.htm#ESRI_SECTION1_AFC41A34D77A432581ADD4463EC5D1DB" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-feature-set-and-record-set.htm#ESRI_SECTION1_AFC41A34D77A432581ADD4463EC5D1DB"&gt;A quick tour of using Feature Set and Record Set—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 02:04:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411709#M15955</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-05-03T02:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411710#M15956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The major issue is that a Feature Set and a Feature class are &lt;STRONG&gt;NOT&lt;/STRONG&gt; the same thing in the Desktop world (ArcMap/ArcPro)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many tools will NOT accept a Feature Set in JSON format as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a try by converting an existing Feature class to JSON then try to use&amp;nbsp;the JSON as input for the many tools in ArcToolbox. The tools will not accept it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at arcpy.describe&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/functions/describe.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/functions/describe.htm"&gt;Describe—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the difference between a Feature Set and a Feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's the 'thing'. The model parameters allow one to set the input data type as Feature Set but the parameter dialog that pops on the Desktop will not let you load a Feature Set (serialize as JSON in a text file) as input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It would be great if it did&lt;/STRONG&gt;. Save a lot of time when you are testing and debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the Desktop world where you first build the model for a future web service, you cannot actually test with the actual JSON that it will receive in the future. Instead you test it with a Feature Class which does not exist on the web ... yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that is my point. My services work fine with alterations in python scripts but that needlessly&amp;nbsp;burns a lot of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could develop and test on the Desktop with raw JSON that would help and make sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for listening,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 02:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411710#M15956</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-03T02:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411711#M15957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say the convenient thing about feature sets in Desktop and their associated GPFeatureRecordSetLayer equivalents is that you typically&amp;nbsp;don't need to provide JSON as input on the desktop side, yet the GP task should perform exactly the same in either environment. &amp;nbsp;Typically, I've seen these tasks revolve around digitizing features in the application, which work fine using Feature Sets in Deskop and the equivalent GPFeatureRecordSetLayer on the Server. &amp;nbsp;Can you describe, (no pun intended), a workflow or specific tools that don't work well when going from the desktop environment to the Server environment? &amp;nbsp;Are you&amp;nbsp;mostly interested in the Describe tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 03:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411711#M15957</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-05-03T03:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411712#M15958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will break this into 3 sections:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&amp;nbsp;Example Workflow&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The generic work flow of "&lt;STRONG&gt;Testing and debugging a new geo-processing service&lt;/STRONG&gt;".&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The model works fine on the desktop (tested with feature classes)&lt;/LI&gt;&lt;LI&gt;Publishes successfully to ArcGIS Enterprise server (10.5)&lt;/LI&gt;&lt;LI&gt;Test the the service by writing a simple web app (ArcGIS JS 4.3)&lt;/LI&gt;&lt;LI&gt;The service throws an error via a tool or the service throws an error via a python script&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Why?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If I could test with a true &lt;STRONG&gt;Feature Set&lt;/STRONG&gt; before publishing I could eliminate that as an issue and that would speedup the debugging process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. Example Tools&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Grid Index Features&lt;/LI&gt;&lt;LI&gt;Recalculate Feature Class Extent&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Any&lt;/STRONG&gt; tool that "cheats with" /requires layer extent information (Feature Class, Feature layer, Shapefiles have extents for the entire dataset)&lt;UL&gt;&lt;LI&gt;A &lt;STRONG&gt;Feature Set&lt;/STRONG&gt; does not have/maintain an extent&lt;/LI&gt;&lt;LI&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-FeatureSet.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-FeatureSet.html"&gt;FeatureSet | API Reference | ArcGIS API for JavaScript 4.3&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Work around : MBG - tool with the all option&lt;UL&gt;&lt;LI&gt;This work around is only discovered after burning a lot of time and I would have known immediately if I tested with a true &lt;STRONG&gt;Feature Set&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Python&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;arcpy.describe&lt;UL&gt;&lt;LI&gt;Very different properties when you compare Feature Classes and Feature Sets&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Cursors&lt;UL&gt;&lt;LI&gt;&amp;nbsp;arcpy.SearchCusor vs arcpy.da.SearchCursor&lt;UL&gt;&lt;LI&gt;Work fine on the desktop&lt;/LI&gt;&lt;LI&gt;Blows up on the web&lt;/LI&gt;&lt;LI&gt;Why?&lt;UL&gt;&lt;LI&gt;On the desktop the Feature Class has a system maintained PK, the OBJECTID&lt;/LI&gt;&lt;LI&gt;On the web, a graphic added via the JS API 4.3 with have, by default, an "ObjectID" of -1 and not unique.&lt;UL&gt;&lt;LI&gt;In my case the web had two object ids: "OBJECTID" and "ObjectID". "OBJECTID" was an OID and unique but "Object ID" for every feature in the Feature Set was equal to -1&lt;/LI&gt;&lt;LI&gt;JS sees them as different key names because it is case sensitive. Does this break the geo-relational model ... maybe ... maybe not ... depends on the ORDBMS and its case sensitivity.&lt;/LI&gt;&lt;LI&gt;This is where the fun starts with the cursors&amp;nbsp;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;arcpy.SearchCusor does not care&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;arcpy.da.SearchCusor self&amp;nbsp;&lt;/SPAN&gt;destructs.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;This issue was discovered and resolved when I sent the input JSON back via&amp;nbsp;arcpy.messages[].&lt;/LI&gt;&lt;LI&gt;I was able to send the JSON back because of the describe command.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 17:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411712#M15958</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-04T17:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411713#M15959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the breakdown, Robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to #1, the best way to debug isn't always by taking it back to the Desktop environment. &amp;nbsp;Have you enabled INFO or at least WARNING/SEVERE messages on the GP task? &amp;nbsp;Is it a Python error, or GP runtime error? &amp;nbsp;Have you tried this in an OOTB application with an OOTB widget like the WAB and GP widget?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For #2, I don't work much with JS, but a geoprocessing feature set would inherit the spatial extent information that was used to define the template for the feature set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the last point, a feature class and a feature set on the web are both JSON based on &lt;A href="http://resources.arcgis.com/en/help/rest/apiref/" rel="nofollow noopener noreferrer" target="_blank"&gt;geometry objects&lt;/A&gt;. &amp;nbsp;This allows GP tasks to work against &lt;A href="https://blogs.esri.com/esri/arcgis/2013/10/10/quick-tips-consuming-feature-services-with-geoprocessing/" rel="nofollow noopener noreferrer" target="_blank"&gt;feature services&lt;/A&gt;. &amp;nbsp;The fields are also going to be defined by the template you set for the feature set. &amp;nbsp;If the template resides in an FGDB or SDE database, then the fields will honor the requirements of that workspace, (all caps OBJECTID, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a sample script you've worked with that works in DT but fails to run when it's a service? &amp;nbsp;Using the very simple example script below, I see no problems using feature sets or arcpy.da.SearchCursor:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da

inFeatures &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"In feature fields:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFields&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFeatures&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; field &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;nbsp; "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; field&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"In feature records:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFeatures&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;nbsp; "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Buffer_analysis&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inFeatures&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory/outBuffer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"50 Meters"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Out feature fields:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
fields &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFields&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory/outBuffer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; field &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fields&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;nbsp; "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; field&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Out feature records:"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory/outBuffer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddMessage&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"&amp;nbsp; "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SetParameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory/outBuffer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run in DT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/349755_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run in the WAB using the out of the box GP widget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input feature set:&lt;BR /&gt;&lt;SPAN style="color: #222222;"&gt;{"geometryType":"esriGeometryPoint","features":[{"geometry":{"x":-10913414.138825795,"y":5223384.6259502,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-11077295.127469169,"y":4753755.524166201,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-10536732.463436546,"y":4922528.482619826,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-10426663.142705921,"y":5267412.35424245,"spatialReference":{"wkid":102100}}},{"geometry":{"x":-10935428.00297192,"y":5551146.603236948,"spatialReference":{"wkid":102100}}}],"sr":{"wkid":102100}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output results:&lt;/P&gt;&lt;P&gt;{"jobId":"jee4650a66f2c4836a7bff7b2370b5bb7","jobStatus":"esriJobSucceeded","results":{"Output":{"paramUrl":"results/Output"}},"inputs":{"Input_Feature":{"paramUrl":"inputs/Input_Feature"}},"messages":[{"type":"esriJobMessageTypeInformative","description":"Executing (Feature Set Buffer): FeatureSetBuffer \"Feature Set\""},{"type":"esriJobMessageTypeInformative","description":"Start Time: Thu May 04 17:03:43 2017"},{"type":"esriJobMessageTypeInformative","description":"Executing (FeatureSetBuffer): FeatureSetBuffer \"Feature Set\""},{"type":"esriJobMessageTypeInformative","description":"Start Time: Thu May 04 17:03:43 2017"},{"type":"esriJobMessageTypeInformative","description":"Running script FeatureSetBuffer..."},{"type":"esriJobMessageTypeInformative","description":"In feature fields:"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;OBJECTID"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;SHAPE"},{"type":"esriJobMessageTypeInformative","description":"In feature records:"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(1, (-10913414.138825797, 5223384.62595021))"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(2, (-11077295.127469167, 4753755.5241662115))"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(3, (-10536732.463436548, 4922528.482619822))"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(4, (-10426663.142705921, 5267412.3542424515))"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(5, (-10935428.002971917, 5551146.603236951))"},{"type":"esriJobMessageTypeInformative","description":"Out feature fields:"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;OBJECTID"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;SHAPE"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;BUFF_DIST"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;ORIG_FID"},{"type":"esriJobMessageTypeInformative","description":"Out feature records:"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(1, (-10913414.1388, 5223384.626000001), 50.0, 1)"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(2, (-11077295.1275, 4753755.5242), 50.0, 2)"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(3, (-10536732.4634, 4922528.4826000035), 50.0, 3)"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(4, (-10426663.1427, 5267412.354199997), 50.0, 4)"},{"type":"esriJobMessageTypeInformative","description":" &amp;nbsp;(5, (-10935428.003, 5551146.603200003), 50.0, 5)"},{"type":"esriJobMessageTypeInformative","description":"Completed script FeatureSetBuffer..."},{"type":"esriJobMessageTypeInformative","description":"Succeeded at Thu May 04 17:03:45 2017 (Elapsed Time: 1.87 seconds)"},{"type":"esriJobMessageTypeInformative","description":"Succeeded at Thu May 04 17:03:45 2017 (Elapsed Time: 1.89 seconds)"}]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course this is a very simple example and you're likely doing something more complex but the underlying idea is that if it works in Desktop, in nearly all cases it will work exactly the same as a service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411713#M15959</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2021-12-11T18:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411714#M15960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should add what the script tool parameters looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/349783_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set the input feature to be a feature set and defined the schema as a newly created point feature class. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When run in ArcMap, it gives me the ability to digitize a feature or browse to an existing feature:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/349856_pastedImage_2.png" style="width: 620px; height: 437px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something that may help is including the original feature(s) in the service, so the input features are populated at Rest:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/349857_pastedImage_3.png" style="width: 620px; height: 471px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does't mean it will only run with those features, but instead there's a default value. &amp;nbsp;You can run the tool directly from the REST endpoint without needing to update any parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/349858_pastedImage_4.png" style="width: 620px; height: 500px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 16:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411714#M15960</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-05-05T16:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geo-processing service testing/debugging</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411715#M15961</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;This is for the post above this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re # 1: My SOP is messages on at the info level. Also, I found it faster to use VIM and edit the python live on the server (CentOS 7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re # 2: The 'inheritance' will not happen in 4.3 as there is currently no where to put the information. For example, in the 3.x version of the JS API points do not have extent info, &lt;STRONG&gt;however,&lt;/STRONG&gt; in 4.3 the points do have extents. Maybe in a future version of the JS &amp;nbsp;API the extent will be added to the Feature Set spec but currently it is not there so it will always be lost. &lt;STRONG&gt;Unless&lt;/STRONG&gt; ... there is another composite object in the 4.3 spec that could contain an extent as well as a Feature Set but that object would be something else i.e. not a Feature Set. BTW I hit this a lot when explaining the differences between WKT, EWKT, WKB, EWKB and the Geo-Package header that wraps WKB. &lt;STRONG&gt;Check out the output of the Features to JSON tool.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;re #3: The default behavior for a Graphic in the 4.3 version of the JS API is 'ObjectID' with an initial value of -1. I agree that if a feature service was published using feature classes from a FGDB then the PK will&amp;nbsp;definitely be "OBJECTID" but not if we are talking interactively drawn graphics in a graphics layer using the 4.3 JS API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can get my services to work but it would be very helpful and a much better the user experience if raw JSON in ESRI-JSON-Feature-Set-format could be consumed by Model Builder in an elegant fashion.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will post later ... back to work for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 19:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geo-processing-service-testing-debugging/m-p/411715#M15961</guid>
      <dc:creator>RobertHewlett</dc:creator>
      <dc:date>2017-05-05T19:48:55Z</dc:date>
    </item>
  </channel>
</rss>

