My excel file is defined on a XLS Data Reader which has an output EDGE connection to a Reformat Node. The Reformat node has output EDGE connection to a DB Output Table.
in Reformat Node, I would like to access the EXCEL Sheetname and insert the value to the DB table row.
Also, I would like to be able to pass a custom parameter value to be inserted to DB table row.
I am new to this product ( 2 days of reading), and would appreciate any help from this forum. thanks.
Hello,
1. it is impossible. You can only send it by another port.
2. Usage of parameters is described on Property and property file. You can do something like that: insert into my_table values ($inputField1, ${my_param});
Thanks for the property information. but I don’t see
how to access the Excel Sheetname or the INPUT RECORD name.
Although, I can see examples of accessing the input record fields ${in.record_ordinal_num. fieldname field_name} http://wiki.clovergui.net/doku.php?id=t … preprocess
I fixed my reformat Node and mapped my input fields from excel columns
to my DB table columns. However, when running the graph. I am getting
java.sql.SQLException: Missing IN or OUT parameter at index:: 1.
can you give me a clue or what parameters were set by the Prepared Statement? Thanks again.
org.jetel.exception.JetelException: Maximum # of errors exceeded when inserting record. Exeption thrown by: INSERT INTO BEN_BULKUPLOADDATA (SESSIONID, UPLOADTYPESTR, FILEID, UPLOADROWNUM, COLUMN01STR )
VALUES ($?, $?, $?, $?, $?). Message: Missing IN or OUT parameter at index:: 1 caused by: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
at org.jetel.component.DBOutputTable.runInNormalMode(DBOutputTable.java:667)
at org.jetel.component.DBOutputTable.execute(DBOutputTable.java:588)
at org.jetel.graph.Node.run(Node.java:371)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1681)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3280)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
at org.jetel.connection.SQLCloverStatement.executeUpdate(SQLCloverStatement.java:244)
at org.jetel.component.DBOutputTable.runInNormalMode(DBOutputTable.java:630)
… 5 more
Hi,
I don’t exactly understand what you want to do. If you want insert data from xls file to database it is enough to have XLSReader and DBOutputTable: