Ambiguous error message when CSV upload fails

Some of the error messages that we get on CSV upload failure are technical in nature and cannot be understood by everyone or do not even point to a field that is causing the failure.

This is in case when there is a Fatal error while uploading.


java.lang.IndexOutOfBoundsException: toIndex = 31 this error is not meaningfull to an end user. Instead a meaningfull message stating that columns values are missing, in this case would be helpful

By resolving this every time the CSV fails upload, user will get a valid error message cause of failure and the columns/concepts that cause the issue.

Jira ticket id: [BAH-1142] Ambiguous error message when CSV upload fails - Bahmni - JIRA

1 Like

raise a bug card for this please.

1 Like

@angshuonline created a bug card and raised a PR for the same.

1 Like