Error Handling in File Listener
I have a Listener and it should process 1 million records every day by saving them to a DB and how to handle errors if there is any issue after process say 1005 record .
My main questions are
1.How to roll back already processed records.
2. How to re run this after error
Thanks in advance