<?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 RoutingTask throw 'Error #1034: Type Coercion failed' for Stops with 4326 Spatial Ref in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/routingtask-throw-error-1034-type-coercion-failed/m-p/507575#M11548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm building a viewer add-on for a third party application using Flex API 2.5 (I can use only Flex 4.0). My viewer must execute a RoutingTask or a ClosestFacilityTask. While I'm in design mode everything works fine but the third party application rebuilds the swf for execution. After rebuilding I receive an error message but only when I use stop points with a spatial reference of 4326 or 102100. Other projections do not throw the error and appear to work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Most likely during rebuilding process some classes are losing their reference. The function mentioned in the error is called normalizeCentralMeridian2().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My hope is to import these classes manually and to avoid the error.&amp;nbsp; It can be false hope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this moment my question is what I need to reference to avoid the error in the function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@27a47af1 to com.esri.ags.geometry.Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at com.esri.ags.utils::GeometryUtil$/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/2008/ags/internal::normalizeCentralMeridian2" rel="nofollow" target="_blank"&gt;http://www.esri.com/2008/ags/internal::normalizeCentralMeridian2&lt;/A&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.utils::GeometryUtil$/normalizeCentralMeridian()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.tasks::RouteTask/solve()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.businessobjects.xcelsius.sdk.samples::testRouting/runTask()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.businessobjects.xcelsius.sdk.samples::testRouting/commitProperties()&lt;C&gt; &lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at mx.core::UIComponent/validateProperties()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 00:27:34 GMT</pubDate>
    <dc:creator>SilviaPetcu</dc:creator>
    <dc:date>2013-04-25T00:27:34Z</dc:date>
    <item>
      <title>RoutingTask throw 'Error #1034: Type Coercion failed' for Stops with 4326 Spatial Ref</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/routingtask-throw-error-1034-type-coercion-failed/m-p/507575#M11548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm building a viewer add-on for a third party application using Flex API 2.5 (I can use only Flex 4.0). My viewer must execute a RoutingTask or a ClosestFacilityTask. While I'm in design mode everything works fine but the third party application rebuilds the swf for execution. After rebuilding I receive an error message but only when I use stop points with a spatial reference of 4326 or 102100. Other projections do not throw the error and appear to work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Most likely during rebuilding process some classes are losing their reference. The function mentioned in the error is called normalizeCentralMeridian2().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My hope is to import these classes manually and to avoid the error.&amp;nbsp; It can be false hope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this moment my question is what I need to reference to avoid the error in the function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1034: Type Coercion failed: cannot convert Object@27a47af1 to com.esri.ags.geometry.Geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; at com.esri.ags.utils::GeometryUtil$/&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.esri.com/2008/ags/internal::normalizeCentralMeridian2" rel="nofollow" target="_blank"&gt;http://www.esri.com/2008/ags/internal::normalizeCentralMeridian2&lt;/A&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.utils::GeometryUtil$/normalizeCentralMeridian()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.ags.tasks::RouteTask/solve()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.businessobjects.xcelsius.sdk.samples::testRouting/runTask()&lt;C&gt;&lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.businessobjects.xcelsius.sdk.samples::testRouting/commitProperties()&lt;C&gt; &lt;/C&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at mx.core::UIComponent/validateProperties()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 00:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/routingtask-throw-error-1034-type-coercion-failed/m-p/507575#M11548</guid>
      <dc:creator>SilviaPetcu</dc:creator>
      <dc:date>2013-04-25T00:27:34Z</dc:date>
    </item>
  </channel>
</rss>

