I just run into a similar issue but using the smart client.
Have an error caught within a try/catch
try{
my code….
} catch (_oErr) {
application.output("ERROR: " + _oErr, LOGGINGLEVEL.ERROR);
databaseManager.rollbackTransaction();
}
This is Servoy 7.3.0