Skip to content
Permalink
Browse files

0002749: Firebird "arithmetic exception, numeric overflow, or string

truncation" on extract
  • Loading branch information...
erilong committed Aug 24, 2016
1 parent ee732e0 commit 8f6d3d1e2fd95847b7b0a9615fe71856fa760830
@@ -20,6 +20,8 @@
*/
package org.jumpmind.symmetric.service.impl;

import static org.apache.commons.lang.StringUtils.isNotBlank;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
@@ -634,6 +636,11 @@ public FutureOutgoingBatch call() throws Exception {
changeBatchStatus(Status.LD, currentBatch, mode);
}
} catch (ExecutionException e) {
if (isNotBlank(e.getMessage()) && e.getMessage().contains("string truncation")) {
throw new RuntimeException("There is a good chance that the truncation error you are receiving is because contains_big_lobs on the '"
+ currentBatch.getChannelId() + "' channel needs to be turned on.",
e.getCause() != null ? e.getCause() : e);
}
throw new RuntimeException(e.getCause() != null ? e.getCause() : e);
} catch (InterruptedException e) {
throw new RuntimeException(e);

0 comments on commit 8f6d3d1

Please sign in to comment.
You can’t perform that action at this time.