<?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: Route solve error: Cannot convert polylines or polygons with curves to JSON format in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1258201#M8202</link>
    <description>&lt;P&gt;Just to close the loop on this post, Deelesh confirmed that this is a bug in the network analyst service published from ArcGIS Pro, that pops up when generating &lt;STRONG&gt;driving directions&lt;/STRONG&gt; of output type&amp;nbsp;&lt;STRONG&gt;esriDOTFeatureSets&lt;/STRONG&gt;.&amp;nbsp; This happens to be the case with my application, which is developed using the ArcGIS Runtime SDK for .NET, which requests the driving directions in esriDOTFeatureSets format.&amp;nbsp; Unfortunately I can't change that behavior through my code but we are still able to publish our network analyst service from ArcMap.&amp;nbsp; So we'll use that workaround until a fix becomes available.&lt;/P&gt;&lt;P&gt;Thanks again for your help Deelesh!&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 20:45:21 GMT</pubDate>
    <dc:creator>DavidSchuster</dc:creator>
    <dc:date>2023-02-14T20:45:21Z</dc:date>
    <item>
      <title>Route solve error: Cannot convert polylines or polygons with curves to JSON format</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1256390#M8192</link>
      <description>&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;I'm hoping to get your help with the following error I get when solving a route, specifically where the resulting route passes through road segments that have true curves (circular arcs, etc).&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
	"error": {
		"code": 400,
		"extendedCode": -2147220870,
		"message": "Unable to complete operation.",
		"details": [
			"Cannot convert polylines or polygons with curves to JSON format."
		]
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I solve a route that does not pass through any true curves, I don't get the error and the solve result is returned correctly.&lt;/P&gt;&lt;P&gt;I also only have this problem when I publish the network analyst service through ArcPro.&amp;nbsp; When I publish the service using ArcMap, I do not get the error.&amp;nbsp; Am I missing some kind of configuration option in ArcPro when I publish the service?&amp;nbsp; In case it matters, the network dataset is stored in a file geodatabase which was automatically copied to the server during publish.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried publishing on multiple versions of ArcGIS Server (10.7.1, 10.8.1, 11) and I still get the error.&lt;/P&gt;&lt;P&gt;Here are the parameters that were supplied to the solve (see below).&amp;nbsp; I tried changing the outputLines parameter from&amp;nbsp;&lt;STRONG&gt;esriNAOutputLineTrueShapeWithMeasure&lt;/STRONG&gt; to other values like&amp;nbsp;&lt;STRONG&gt;esriNAOutputLineStraight&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;esriNAOutputLineNone&lt;/STRONG&gt;, but this did not have any effect.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;f=json
&amp;amp;accumulateAttributeNames=Length,Minutes
&amp;amp;attributeParameterValues=[{"attributeName":"Oneway","parameterName":"Restriction+Usage","value":-1}]
&amp;amp;barriers=
&amp;amp;directionsLanguage=en-US
&amp;amp;directionsLengthUnits=esriNAUMiles
&amp;amp;directionsOutputType=esriDOTFeatureSets
&amp;amp;directionsStyleName=NA+Desktop
&amp;amp;directionsTimeAttributeName=Minutes
&amp;amp;findBestSequence=false
&amp;amp;ignoreInvalidLocations=true
&amp;amp;impedanceAttributeName=Minutes
&amp;amp;outSR={"wkid":102100,"latestWkid":3857}
&amp;amp;outputGeometryPrecision=0
&amp;amp;outputGeometryPrecisionUnits=esriMeters
&amp;amp;outputLines=esriNAOutputLineTrueShapeWithMeasure
&amp;amp;preserveFirstStop=false
&amp;amp;preserveLastStop=false
&amp;amp;preserveObjectID=true
&amp;amp;restrictUTurns=esriNFSBAtDeadEndsAndIntersections
&amp;amp;restrictionAttributeNames=Oneway
&amp;amp;returnBarriers=false
&amp;amp;returnDirections=true
&amp;amp;returnPolygonBarriers=true
&amp;amp;returnPolylineBarriers=true
&amp;amp;returnRoutes=true
&amp;amp;returnStops=true
&amp;amp;returnZ=false
&amp;amp;startTime=none
&amp;amp;startTimeIsUTC=true
&amp;amp;stops={"features":[{"geometry":{"x":-10786022.828108414,"y":3914510.7541814947,"spatialReference":{"wkid":102100,"latestWkid":3857}},"attributes":{"Name":"Start"}},{"geometry":{"x":-10778430.977528103,"y":3912218.040570303,"spatialReference":{"wkid":102100,"latestWkid":3857}},"attributes":{"Name":"End"}}]}
&amp;amp;timeWindowsAreUTC=true
&amp;amp;useHierarchy=false
&amp;amp;useTimeWindows=false
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas or suggestions?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 02:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1256390#M8192</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2023-02-09T02:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Route solve error: Cannot convert polylines or polygons with curves to JSON format</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1256592#M8193</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This seems like a bug in the network analysis service published from ArcGIS Pro which uses a different runtime during execution as compared to a network analysis service that is published from ArcMap.&lt;/P&gt;&lt;P&gt;As this bug is specific to the street data that you are using, can you send me a copy of the network dataset you are using for this service?&lt;/P&gt;&lt;P&gt;You can send me the data at &lt;A href="mailto:dmandloi@esri.com" target="_blank"&gt;dmandloi@esri.com&lt;/A&gt;&amp;nbsp;or if the data is quite large, send me an email and I can provide you instructions on how to upload the data to a secure website managed by Esri.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deelesh&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 17:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1256592#M8193</guid>
      <dc:creator>deelesh</dc:creator>
      <dc:date>2023-02-09T17:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Route solve error: Cannot convert polylines or polygons with curves to JSON format</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1256822#M8194</link>
      <description>&lt;P&gt;Deelesh,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; I have sent the GDB file to you as requested.&amp;nbsp; Please let me know if you need any more information!&lt;/P&gt;&lt;P&gt;-David&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 00:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1256822#M8194</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2023-02-10T00:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Route solve error: Cannot convert polylines or polygons with curves to JSON format</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1258201#M8202</link>
      <description>&lt;P&gt;Just to close the loop on this post, Deelesh confirmed that this is a bug in the network analyst service published from ArcGIS Pro, that pops up when generating &lt;STRONG&gt;driving directions&lt;/STRONG&gt; of output type&amp;nbsp;&lt;STRONG&gt;esriDOTFeatureSets&lt;/STRONG&gt;.&amp;nbsp; This happens to be the case with my application, which is developed using the ArcGIS Runtime SDK for .NET, which requests the driving directions in esriDOTFeatureSets format.&amp;nbsp; Unfortunately I can't change that behavior through my code but we are still able to publish our network analyst service from ArcMap.&amp;nbsp; So we'll use that workaround until a fix becomes available.&lt;/P&gt;&lt;P&gt;Thanks again for your help Deelesh!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:45:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1258201#M8202</guid>
      <dc:creator>DavidSchuster</dc:creator>
      <dc:date>2023-02-14T20:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Route solve error: Cannot convert polylines or polygons with curves to JSON format</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1259483#M8207</link>
      <description>&lt;P&gt;This bug is fixed in ArcGIS Server 11.1 or later for routing services that are published from ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 19:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-error-cannot-convert-polylines-or/m-p/1259483#M8207</guid>
      <dc:creator>deelesh</dc:creator>
      <dc:date>2023-02-17T19:04:57Z</dc:date>
    </item>
  </channel>
</rss>

