Java Talend-将CSV文件发送到Postgres

Java Talend-将CSV文件发送到Postgres,java,csv,components,postgresql-9.1,talend,Java,Csv,Components,Postgresql 9.1,Talend,我试图使用Talend将csv文件上载到postgres中,在此过程中,我在tPostgresqlOutput组件中遇到错误 请帮我解决这个问题 Execution failed : Job compile errors At least job "Phase_1_data_movement" has a compile errors, please fix and export again. Error Line: 1297 Detail Message: pstmt_tPostgresql

我试图使用Talend将csv文件上载到postgres中,在此过程中,我在tPostgresqlOutput组件中遇到错误

请帮我解决这个问题

Execution failed : Job compile errors 
At least job "Phase_1_data_movement" has a compile errors, please fix and export again.
Error Line: 1297
Detail Message: pstmt_tPostgresqlOutput_1 cannot be resolved
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
Job Phase_1_data_movement ended at 11:39 27/04/2017. [exit code=0]

我也有同样的问题。当您查看java代码(位于designer选项卡后面的中间选项卡中)时,您将看到有一个变量pstmt_tPostgresqlOutput_1已使用但未定义。 所以这段代码不会编译

此代码由Talend生成,您不能通过编辑文本AFAIK来更改它。问题是什么导致Talend生成错误代码


在我的例子中,我没有定义输入文件的“模式”或元数据。定义了输入文件的列名和数据类型后,Talend生成的代码就没有错误了。

您在第1297行看到的代码是什么?请点击设计调色板中的“代码”按钮,查看代码中的错误,如果没有工作布局的图片,这将很难回答。