<?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: Generate transit lines and stops ERROR in Public Transit Questions</title>
    <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/1013607#M166</link>
    <description>&lt;P&gt;Hello SakshiKosta. Unfortunately, the Add GTFS To A Network Dataset tool is now deprecated, so I am not able to provide extensive assistance with it.&lt;/P&gt;&lt;P&gt;From the error message, it looks like there might be a problem with the spatial reference you have chosen for your feature dataset.&amp;nbsp; I suggest starting over with a new file geodatabase and feature dataset. Make sure to carefully select a valid spatial reference for the feature dataset, and then try again.&lt;/P&gt;&lt;P&gt;In general, though, I recommend you switch to using ArcGIS Pro for your transit-related analyses.&amp;nbsp; We have made equivalent tools available in the core product, and these tools are more modern and thoroughly tested, and you can get help on them from Esri Support.&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/network-analysis-with-public-transit-data.htm" target="_self"&gt;Learn more.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 15:58:39 GMT</pubDate>
    <dc:creator>MelindaMorang</dc:creator>
    <dc:date>2021-01-04T15:58:39Z</dc:date>
    <item>
      <title>Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601074#M160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I used the Add GTFS to network dataset toolbox, and I tried to create the transit lines and stops feature layers. I tested the tool with several GTFS datasets but in some of them failed to execute the lines and stops successfully... Here I quote the error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Executing: GenerateTransitLinesAndStops C:\Users\alex_\Desktop\D4i_Sept18\CITIES\HAMBURG\Upload__HVV_Rohdaten_GTFS_Fpl_20170810 C:\Users\alex_\Desktop\D4i_Sept18\CITIES\HAMBURG\Hamburg_data.gdb\hamburg_gtfs&lt;BR /&gt;Start Time: Mon Sep 10 07:14:44 2018&lt;BR /&gt;Running script GenerateTransitLinesAndStops...&lt;BR /&gt;SQLizing the GTFS data...&lt;BR /&gt;(This will take a few minutes for large datasets.)&lt;BR /&gt;Generating transit stops feature class.&lt;BR /&gt;Failed to generate transit lines and stops.&lt;BR /&gt;Failed script GenerateTransitLinesAndStops...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Toolboxes\scripts\GenerateStopPairs.py", line 205, in &amp;lt;module&amp;gt;&lt;BR /&gt; c.execute(selectstoptablestmt)&lt;BR /&gt;OperationalError: no such column: wheelchair_boarding&lt;/P&gt;&lt;P&gt;Failed to execute (GenerateTransitLinesAndStops).&lt;BR /&gt;Failed at Mon Sep 10 07:16:56 2018 (Elapsed Time: 2 minutes 12 seconds)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So, please let me know if there is a solution to this kind of error ...&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 04:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601074#M160</guid>
      <dc:creator>ALEXBARTZOKAS</dc:creator>
      <dc:date>2018-09-10T04:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601075#M161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex.&amp;nbsp; Several others have complained of this problem.&amp;nbsp; It happens when you do not have a "wheelchair_boarding" column in your input stops.txt file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the tool should work in this situation, as wheelchair_boarding is not required.&amp;nbsp; I thought I had fixed this problem, and when I just tested it here on my own machine, I did not get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please download and install the latest version of the tool:&amp;nbsp;&lt;A class="link-titled" href="http://arcg.is/10jXez" title="http://arcg.is/10jXez"&gt;http://arcg.is/10jXez&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if this resolves the issue.&amp;nbsp; If it does not,&amp;nbsp;can you share your GTFS dataset with me so I can see what causes the error and fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(If you're in a hurry, the fastest way for you to get it working is to just add a column to stops.txt called wheelchair_boarding.&amp;nbsp; You don't need to give it any values.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601075#M161</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2018-09-10T15:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601076#M162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did&amp;nbsp;updating the tool&amp;nbsp;work, or are you still having the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 16:58:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601076#M162</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2018-09-26T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601077#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Melinda,&lt;/P&gt;&lt;P&gt;I added a column&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;wheelchair_boarding&lt;/SPAN&gt; in stops.txt (as you suggested), but the tool didn't work.&lt;/P&gt;&lt;P&gt;So, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Executing: GenerateTransitLinesAndStops C:\Users\Alex\Desktop\HSR_D4i\Spain_RenfeLongDistance C:\Users\Alex\Desktop\HSR_D4i\SpainRENFE.gdb\LinesStopsRENFE&lt;BR /&gt;Start Time: Mon Feb 18 23:25:52 2019&lt;BR /&gt;Running script GenerateTransitLinesAndStops...&lt;BR /&gt;SQLizing the GTFS data...&lt;BR /&gt;(This will take a few minutes for large datasets.)&lt;BR /&gt;GTFS table stops contains at least one row with the wrong number of fields. Fields: [u'stop_id', u'stop_code', u'stop_name', u'stop_desc', u'stop_lat', u'stop_lon', u'zone_id', u'stop_url', u'location_type', u'parent_station', u'stop_timezone', u'wheelchair_boarding']; Row: (u'SpainRenfeLongDistance:71801', u'', u'Barcelona-Sants', u'', u'41.379520', u'2.140624', u'SpainRenfeLongDistance:', u'', u'', u'', u'Europe/Madrid')&lt;BR /&gt;Failed to generate transit lines and stops.&lt;BR /&gt;Failed script GenerateTransitLinesAndStops...&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Toolboxes\scripts\GenerateStopPairs.py", line 109, in &amp;lt;module&amp;gt;&lt;BR /&gt; GTFSErrors = sqlize_csv.handle_agency(gtfs_dir)&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Toolboxes\sqlize_csv.py", line 426, in handle_agency&lt;BR /&gt; handle_file(fname2, label)&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Toolboxes\sqlize_csv.py", line 387, in handle_file&lt;BR /&gt; , rows)&lt;BR /&gt; File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Toolboxes\sqlize_csv.py", line 180, in drop_fields&lt;BR /&gt; raise BBB_SharedFunctions.CustomError&lt;BR /&gt;CustomError&lt;/P&gt;&lt;P&gt;Failed to execute (GenerateTransitLinesAndStops).&lt;BR /&gt;Failed at Mon Feb 18 23:25:59 2019 (Elapsed Time: 7.14 seconds)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can find the GTFS data I used &lt;A href="http://data.renfe.com/dataset/horarios-de-alta-velocidad-larga-distancia-y-media-distancia"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you think that the data is problematic or there is a bug in the tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:38:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601077#M163</guid>
      <dc:creator>ALEXBARTZOKAS</dc:creator>
      <dc:date>2019-02-18T21:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601078#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The clue here is in the error message:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;GTFS table stops contains at least one row with the wrong number of fields. Fields: [u'stop_id', u'stop_code', u'stop_name', u'stop_desc', u'stop_lat', u'stop_lon', u'zone_id', u'stop_url', u'location_type', u'parent_station', u'stop_timezone', u'wheelchair_boarding']; Row: (u'SpainRenfeLongDistance:71801', u'', u'Barcelona-Sants', u'', u'41.379520', u'2.140624', u'SpainRenfeLongDistance:', u'', u'', u'', u'Europe/Madrid')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm guessing you added the wheelchair_boarding field header but didn't add an additional "," to each row in the table.&amp;nbsp; So, the header row has one more field than the rows after that.&amp;nbsp; I can see how my previous instructions were unclear on that point.&amp;nbsp; Each row must have the same length (the length of the header row), so since you added a field to the headers, you need to add a blank space to each of the data rows.&amp;nbsp; You don't need to add a&amp;nbsp;&lt;EM&gt;value&lt;/EM&gt; for wheelchair_boarding, but there must be a space for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/601078#M164</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2019-02-19T16:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/1013489#M165</link>
      <description>&lt;P&gt;Hi Melinda!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use Add GTFS to a Network Dataset toolbox for a project and I am unable to get through this error. Can you please have a look and help me? The error message is like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "c:\program files (x86)\arcgis\desktop10.6\ArcToolbox\Toolboxes\scripts\GenerateStopPairs.py", line 428, in &amp;lt;module&amp;gt;&lt;BR /&gt;arcpy.management.PointsToLine(outStopPairsFC, outLinesFC, "pair_id", "sequence")&lt;BR /&gt;File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\management.py", line 2977, in PointsToLine&lt;BR /&gt;raise e&lt;BR /&gt;ExecuteError: ExecuteError: ERROR 000622: Failed to execute (Create Feature Class). Parameters are not valid.&lt;BR /&gt;ERROR 000628: Cannot set input into parameter spatial_reference.&lt;BR /&gt;Failed to execute (PointsToLine).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Failed to execute (GenerateTransitLinesAndStops).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My GTFS Dataset is&amp;nbsp;&lt;A title="UK GTFS Data" href="https://drive.google.com/file/d/1BCf22MicmJajuk1myFi5hc2FLdFmwLXx/view?usp=sharing" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to your response. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 02:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/1013489#M165</guid>
      <dc:creator>SakshiKosta</dc:creator>
      <dc:date>2021-01-04T02:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Generate transit lines and stops ERROR</title>
      <link>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/1013607#M166</link>
      <description>&lt;P&gt;Hello SakshiKosta. Unfortunately, the Add GTFS To A Network Dataset tool is now deprecated, so I am not able to provide extensive assistance with it.&lt;/P&gt;&lt;P&gt;From the error message, it looks like there might be a problem with the spatial reference you have chosen for your feature dataset.&amp;nbsp; I suggest starting over with a new file geodatabase and feature dataset. Make sure to carefully select a valid spatial reference for the feature dataset, and then try again.&lt;/P&gt;&lt;P&gt;In general, though, I recommend you switch to using ArcGIS Pro for your transit-related analyses.&amp;nbsp; We have made equivalent tools available in the core product, and these tools are more modern and thoroughly tested, and you can get help on them from Esri Support.&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/networks/network-analysis-with-public-transit-data.htm" target="_self"&gt;Learn more.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 15:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/public-transit-questions/generate-transit-lines-and-stops-error/m-p/1013607#M166</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2021-01-04T15:58:39Z</dc:date>
    </item>
  </channel>
</rss>

