We have business scenario like, if any business exception occurs, the current item need to rollback and continue with the next item. We don't know how many items will come at runtime so skip limit set to some 100 is not appropriate.
If all the records throw business exception, our batch need to skip all the items and completes successfully.
How to handle this?
Thanks for your reply in advance.