Question

4
Replies
629
Views
Hans Bernving (HansBernving)
Bernving
CSSA and Instructor
Bernving
NL
HansBernving Member since 2016 9 posts
Bernving
Posted: September 21, 2017
Last activity: September 22, 2017
Posted: 21 Sep 2017 10:01 EDT
Last activity: 22 Sep 2017 4:57 EDT
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:

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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.