Question

4
Replies
569
Views
HansBernving Member since 2016 9 posts
SmartRules
Posted: 3 years ago
Last activity: 3 years ago
Closed
Solved

Database Exception not catched in try catch block in an activity wotj a Java step

The following Java code is part of a loop in an activity:

ClipboardPage sp = tools.getStepPage();
try {
tools.getDatabase().save(sp, false, false, true);
} catch (DatabaseException ex) {
oLog.infoForced("Problem updating DB instance " + sp.getString("pzInsKey") + ":" + ex.toString(), ex);
}
Fails as seen in the tracer is:
Step Status FAIL
Step Status Info
 ** 	String was not a date "132520907" 
Now this error is OK as it indeed is no date value. My problems is that the catch block is not executed as I expected. How come?
Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn