How to mark the job status as failed if any record has error?

Currently, when import job runs, the status is shown as success as the job execution was successful. However, some or all records were not imported due to maybe data validation which is correct but if that happens (1 or more records fails to import) I need to show the job execution status as failed as it shows false positive to non-tech savvy users.

As a technical person, I can understand the status if about Job being executed instead of the records being imported 100 % or not but as the users are from non-technical background, I need to show Job execution status as per import record count. How can I achieve it with no to minimal code changes?

Hello Aamir,

You’re right, this status applies to the Job execution, and whether there were any import errors and all the data was imported should be tracked in the “Errors” column. You can also generate an error file for each import job.