Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message when the column name in schema rule does not exist in the CSV file. #500

Open
sparkhi opened this issue May 30, 2024 · 0 comments

Comments

@sparkhi
Copy link
Contributor

sparkhi commented May 30, 2024

Consider a CSVS file with a rule
department: is("XYZ") and in($filepath)

and a CSV file with data as:

batch_code,department,held_by,file_path
XYZ32Y24S000,XYZ,"The National Archives, Kew",file:///XYZ_32/content/1/2/3/4/

The error you get is
Error: java.util.NoSuchElementException: None.get

Ideally, the error should indicate something on the lines of "The column 'filepath' cannot be found in the CSV file" which will help the user immediately figure out what went wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant