PASTAplus / dex

Explore and subset CSV tables using associated EML metadata
Apache License 2.0
3 stars 0 forks source link

Error when EML is missing `.//physical/dataFormat/textFormat` #78

Open rogerdahl opened 2 weeks ago

rogerdahl commented 2 weeks ago

If .//physical/dataFormat/textFormat is missing, DeX returns a 500 Internal Server Error. DeX reads the textFormat elements in order to determine the delimiter, line terminator and quoting characters to use when parsing the CSV.

Example package that triggers the error: https://portal.edirepository.org/nis/mapbrowse?scope=knb-lter-cap&identifier=632

image

We will add a fallback for this case where we will try to guess the "dialect", and if that fails, we'll provide a better error message in DeX.