Generate a file and send as attachment.
You might need to go with other mapping to pick that file and send as attachement.
You can use some script in the command task and send the email notification in the same taskflow .
Please refer below:
first thing to check is if HANA connector is really generating the error file. not all connector supports error file, some generates the error file with rejected data and some connectors just gives the count.
Assuming it generates the error file, there is no inbuilt functionality to pass that as an attachment.
some custom logic to be implemented to read that file through another task or some script to email that file as attachment. some kbs are provided above