I set a workflow validator to verify if the customfield's value is null. What I expected is to display the error message I set when the workflow validator fails during csv import, but the result is a fixed NullPointerException. Is there any solution to display the error message when the workflow validator fails during csv import?
2022-08-12 11:09:05,059 ERROR - Fatal error during import java.lang.NullPointerException at com.atlassian.jira.plugins.importer.imports.bulkcreate.engine.BulkCreateDataImporter.doImportIssues(BulkCreateDataImporter.java:235)
Thank you for reaching out.
Indeed, the message received from the CSV import client when a specific field value is required from a validator or a field configuration is too vague. We created the following feature request to improve this message when importing issues from a CSV file:
Feel free to vote and watch the suggestion to increase its priority and also receive notifications about any updates.
That being said, I believe the message returned in your case is different from the one reported in the Feature request. Can you please confirm if that error only reproduces when you add a value to the custom field?
Although the validator logic of your scenario and the one mentioned in the feature request should be the same, I see that your scenario is slightly different from the one described in the feature request (Field null x Field required), so I would like to confirm that the error message you are facing is strictly related to the validator or may relate to a different error in your CSV import, or even if the message difference is caused by the platform difference (Cloud vs Server).
Let us know if you have any questions.