<?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: Make Route Event Layer - Error executing task, code 500 in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69556#M322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The same problem with GP-service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My model returns a set of features (GPFeatureRecordSetLayer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When there are many features in the result everything is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if there are a single feature, REST crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Executing Task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the task to be async, it returns an error, that XML document contains an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using route event layer, but it looks like it's a common problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 9.3.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Sep 2010 05:07:01 GMT</pubDate>
    <dc:creator>DenisT</dc:creator>
    <dc:date>2010-09-08T05:07:01Z</dc:date>
    <item>
      <title>Make Route Event Layer - Error executing task, code 500</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69555#M321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a model with the modelbuilder to retrieve a route event (line). The input is a Record Set with route-ID, from-measure and to-measure. If I excute the model in ArcMap it works fine, if I publish the model to ArcGIS Server the model also works fine if I use it in ArcMap. If I use the model with the REST API I get the message "Error executing task, Error code 500". If I change the (same) model to retrieve point route events everything is fine and dandy. If I look at the windows event logs I see that the ArcSOC process has crashed. Am I doing something that's not possible or is this a bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 05:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69555#M321</guid>
      <dc:creator>HeikoHeijenga</dc:creator>
      <dc:date>2010-08-27T05:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Make Route Event Layer - Error executing task, code 500</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69556#M322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The same problem with GP-service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My model returns a set of features (GPFeatureRecordSetLayer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When there are many features in the result everything is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if there are a single feature, REST crashes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Executing Task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I change the task to be async, it returns an error, that XML document contains an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using route event layer, but it looks like it's a common problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine in ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Server 9.3.1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 05:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69556#M322</guid>
      <dc:creator>DenisT</dc:creator>
      <dc:date>2010-09-08T05:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Make Route Event Layer - Error executing task, code 500</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69557#M323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;REST does not support geometry with Z or M values. If an input to&amp;nbsp; gp tool has a schema defined based on a feature class that has z or m, then request to that tool fails since it expects a geometry with z or m. This could be a reason for the the error repored by Heiko. A workaround will be to update the geometry of the feature class that is used to define the scheme to not include z or m.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.0 SP1, the REST will always set hasz or hasm to false when sending geometry to the GP service to indicate that z or m is not included in the geometry and this will allow the gp task to execute successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Denis, does the featureclass used for defining the schema in your model include z or m?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Sep 2010 13:56:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69557#M323</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2010-09-08T13:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Make Route Event Layer - Error executing task, code 500</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69558#M324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was having issues creating a GPService using the "Make Route Event Layer" tool in model and esri support indicated that it was due to a bug - [NIM051733 in which the geoprocessing service that makes a route event layer with a line feature fails if it is executed via the REST interface or from a Web ADF application. It works in ArcMap.]&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was this also fixed in 10 (sp1)?&amp;nbsp; Is this caused be the same issue and if so, is there a chance that there is work around?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 13:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/make-route-event-layer-error-executing-task-code/m-p/69558#M324</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-20T13:39:32Z</dc:date>
    </item>
  </channel>
</rss>

