Follow these steps to get the scenario:
create a loan with the create standing instructions enabled such that standing instructions are created upon disubursement
undo the disbursement
try disbursing the loan again, no error is raised on the front end
in the back end, an error about duplicate entry in the standing instructions table is raised
Resolution:
delete the standing instructions entry on undo disbursement
catch this error and communicate the same on the front end*
The same environment as the demo server