<?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: ERROR 030232: Invalid travel mode value: &amp;quot;The travel mode has a distance-based impedance attribute that is different from the distance attrib in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111028#M47168</link>
    <description>&lt;P&gt;slightly different answer&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/030001-040000/tools-errors-and-warnings-30226-30250-030232.htm" target="_blank"&gt;030232: Invalid travel mode value: &amp;lt;value&amp;gt;.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;'Custom Driving Distance'&amp;nbsp; could be it doesn't like spaces in the name&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 20:46:22 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-10-25T20:46:22Z</dc:date>
    <item>
      <title>ERROR 030232: Invalid travel mode value: "The travel mode has a distance-based impedance attribute that is different from the distance attribute."</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111016#M47162</link>
      <description>&lt;P&gt;I am trying to create a service area analysis layer that uses miles (instead of kilometers) as the impedance value.&lt;BR /&gt;&lt;BR /&gt;Specifically, I am trying to pass a custom TravelMode object to the arcpy.na.MakeServiceAreaAnalysis method and I'm seeing the following error:&lt;/P&gt;&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#FF6600"&gt;ERROR 030232: Invalid travel mode value: "The travel mode has a distance-based impedance attribute that is different from the distance attribute."&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#FF6600"&gt;Failed to execute (MakeServiceAreaAnalysisLayer).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here is a minimal (although not reproducible) example of my script:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Load dependencies
import arcpy

# Source Routing_ND layer
network = "path/to/StreetMapPremium/NorthAmerica.gdb/Routing/Routing_ND"

# Create a list of reference travel modes
travel_modes = arcpy.na.GetTravelModes(network)

# Create a custom travel mode around default 'Driving Distance' travel mode.
new_travel_mode = arcpy.na.TravelMode(travel_modes['Driving Distance'])

# Setting custom travel name and impedance value
# new_travel_mode.name = 'Custom Driving Distance'
new_travel_mode.impedance = 'Miles'

# Create service area analysis layer
result_object = arcpy.na.MakeServiceAreaAnalysisLayer(
  network_data_source = network,
  layer_name = 'test_layer',
  travel_mode = new_travel_mode,
  cutoffs = 10)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any insight is appreciated!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:17:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111016#M47162</guid>
      <dc:creator>PhilipOrlando</dc:creator>
      <dc:date>2021-10-25T22:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 030232: Invalid travel mode value: "The travel mode has a distance-based impedance attribute that is different from the distance attrib</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111028#M47168</link>
      <description>&lt;P&gt;slightly different answer&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/030001-040000/tools-errors-and-warnings-30226-30250-030232.htm" target="_blank"&gt;030232: Invalid travel mode value: &amp;lt;value&amp;gt;.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;'Custom Driving Distance'&amp;nbsp; could be it doesn't like spaces in the name&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 20:46:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111028#M47168</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-10-25T20:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 030232: Invalid travel mode value: "The travel mode has a distance-based impedance attribute that is different from the distance attrib</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111046#M47176</link>
      <description>&lt;P&gt;Thank you for the reply. Unfortunately, the code fails regardless of whether I set the &lt;STRONG&gt;new_travel_mode.name&lt;/STRONG&gt; attribute or not... I probably should have excluded that from my example. I just commented this out to avoid any confusion.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-030232-invalid-travel-mode-value-quot-the/m-p/1111046#M47176</guid>
      <dc:creator>PhilipOrlando</dc:creator>
      <dc:date>2021-10-25T22:14:14Z</dc:date>
    </item>
  </channel>
</rss>

