Hello, I'm getting an error whenever I try to run any tool in the ‘generate gtfs shapes’ toolbox (from https://github.com/Esri/public-transit-tools/tree/master/generate-GTFS-shapes). The errors are: "Error SQLizing the GTFS data.....sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 9, and there are 10 supplied." My objective here is to update my Google Transit Feed / GTFS. In particular I'm trying to find an easier way to update "shapes.txt".
In your stop_times.txt file, each row has an extra comma at the end. You have 9 headers, but effectively 10 columns of data, even though the last column (after the final comma) has nothing in it.
I'm not sure why my tool isn't handling that situation, but I will update it so it doesn't fail.
A quick and simple fix for you is to just add a dummy column name in your stop_times.txt file:
trip_id,arrival_time,departure_time,stop_id,stop_sequence,stop_headsign,pickup_type,drop_off_type,shape_dist_traveled,junk
The tool will succeed and will ignore the junk column.
This appears to have worked. I somehow accidentally created that last column in Excel, but it was easy to fix. I cannot thank you enough for your quick response on this!
-Jack
ArcGIS Pro version 2.3.2. And yes, enclosed is a zip file with the GTFS dataset. Thanks for your help with this!
What version of ArcGIS are you using? And is your GTFS dataset available somewhere where I can play with it and run some tests?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.