我只想将一些文件加载到Azure DB中。我正在使用"Microsoft“DB类型作为连接。
问题是,当我插入超过10.000行时,有时(90% )会出错:
Exception in component tMSSqlOutput_5
java.sql.BatchUpdateException: I/O Error: Connection reset
at net.sourceforge.jtds.jdbc.JtdsStatement.executeBatch(JtdsStatement.java:1091)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tFileInputDelimited_5Process(extractGC_child2.java:28852)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tFileList_6Process(extractGC_child2.java:32386)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tFileList_5Process(extractGC_child2.java:31540)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tMSSqlRow_1Process(extractGC_child2.java:30657)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tLoop_2Process(extractGC_child2.java:30440)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tFileList_4Process(extractGC_child2.java:29664)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tJava_3Process(extractGC_child2.java:34020)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tMSSqlInput_1Process(extractGC_child2.java:33593)
at dev_storch.extractgc_child2_0_1.extractGC_child2.tFTPConnection_2Process(extractGC_child2.java:33154)
[FATAL]: dev_storch.extractgc_child2_0_1.extractGC_child2 - tMSSqlOutput_5 I/O Error: Connection reset
[FATAL]: dev_storch.extractgc_child2_0_1.extractGC_child2 - tMSSqlRow_7 Invalid state, the Connection object is closed.但是当插入的数据量较小时,我不会收到任何错误。
我的配置如下所示:
tMSSQLConnection.然后,我有一些组件可以从文件夹中加载文件,并将其加载到表中。错误出现在tMSSQLOutput上。下面的作业是填充日志。

我试图更改批处理大小,以避免使用DBConnection,但不起作用。
我尝试使用一个通用JDBC组件,它似乎每次都能工作。但是我不想使用通用JDBC组件,因为在ouptut组件上,我们不能选择colume DB类型(但可能有人知道如何实现):
MSSQL:

通用JDBC:

谢谢你提前..。
发布于 2016-12-06 12:45:08
这里有一个解决方案,也许是您的:
https://stackoverflow.com/questions/40980420
复制相似问题