When a databaseManager.commitTransaction() fails, is there any way to retreive the database error.
(it does show up in the serverlog. The solutions onerror method is not called)
when a databaseManager.saveData fails i do get failed records.
I tried :
- Code: Select all
if(!databaseManager.commitTransaction())
{
var _failedArray = databaseManager.getFailedRecords()
for( var i = 0 ; i < _failedArray.length ; i++ )
{
var _record = _failedArray[i];
application.output('Error in commitTransaction: ' + _record.exception);
}
.....
but the _failedArray.length is 0 and there is an error in the serverlog (violation of unique constraint)
Any ideas ?
B.t.w. this is in Servoy 3.5.9
Regards,
Hans Nieuwenhuis