How to cancel DB-Error?

Hi

Can anyone please tell me how to cancel a db error without clicking severals thousand times Ok (once for each record)? See attached dialog.

Bad luck, but the method which contains the error is being called whenever form A ist started, and form A is defined as first form of my solution :-(

This problem occurred before. It is easier if the method is not called at startup time. But I had to shut down servoy. I had the same problem at the import: An db error could not be cancelled.

(Funny: After clicking Ok like an idiot I normally manage to quit the dialog. Why? Is there a “soft” quit?)

Thanks and regards
Birgit

I am not sure but might be worth the try. What if you surround your code with a try/catch?

Thanks

I’ll give it a thought. But, catching an error would not help with the import: I don’t write any code when I import (csv files). If e.g. I import values, which are null and which should not be nulll, I get an error which cannot be cancelled. I have to shut down the application Servoy itself. Any better idea?

Thanks
Birgit

Hmm, kind of ‘irritating’ idea probably… Script it. You could make it a little easier by using the (our) data plugin.