ITSLeeds / UK2GTFS

Convert UK transport data (TransXchange / ATOC CIF) to GTFS format in R
https://itsleeds.github.io/UK2GTFS/
GNU General Public License v3.0
37 stars 13 forks source link

Error re ServicedOrganisations in converting TNDS TxC to GTFS #45

Open jeff-tjiong opened 1 year ago

jeff-tjiong commented 1 year ago

Hello, there are approximately 39 routes (out of 2198) from the the TNDS TxC v2.5 feeds for the North West (NW.zip) that have failed to be converted by the transxchange2gtfs function. Can someone please shed light on the reasons behind these errors and whether I could fix the XMLs for the conversion to GTFS format?

These are the first few lines of error message:

' 2022-11-08 20:12:27 Converting to GTFS, multicore
  |========================================================================================| 100%
Failed to convert files:
NW_SC_SCNW_40_2_A.xml with error Error in if (class(ServicedOrganisations) == "data.frame") { :
  the condition has length > 1
,  NW_SC_STCR_2_1.xml with error Error in if (class(ServicedOrganisations) == "data.frame") { :
  the condition has length > 1
,  NW_SC_SCNW_100_1.xml with error Error in if (class(ServicedOrganisations) == "data.frame") { :
  the condition has length > 1
,  NW_SC_STCR_PR3_1.xml with error Error in if (class(ServicedOrganisations) == "data.frame") { :
  the condition has length > 1
,  NW_SC_SCNW_42_3_A.xml with error Error in if (class(ServicedOrganisations) == "data.frame") { :
  the condition has length > 1

Thank you!

mem48 commented 1 year ago

Have you tried with the older version of TXC? It might be an unsupported new feature.