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.
Example:
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] - Bahmni - JIRA