Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

probleme with insert or update with the date of the day

hello i want to insert or update into a table
when the join is realised i update informations
when it s a rejet i insert a new row into the table
i have a probleme with my job
it s the error message :
Starting job testdatemodifetcre at 14:17 18/02/2008.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
This method must return a result of type Date
This method must return a result of type Date
at decisionel.testdatemodifetcre.testdatemodifetcre.tRowGenerator_1Process(testdatemodifetcre.java:1309)
at decisionel.testdatemodifetcre.testdatemodifetcre.tOracleInput_1Process(testdatemodifetcre.java:289)
at decisionel.testdatemodifetcre.testdatemodifetcre.runJob(testdatemodifetcre.java:1469)
at decisionel.testdatemodifetcre.testdatemodifetcre.main(testdatemodifetcre.java:1405)
Job testdatemodifetcre ended at 14:17 18/02/2008.
Labels (3)
12 Replies
Anonymous
Not applicable
Author

Hi
Which version of TOS did you use?
Can you show the setup value of parseDate method? If the preview can work in the tRowGenerator? what's the data type and expression of column of row3 on tMap?
Best regards
shong
Anonymous
Not applicable
Author

hi,
this is the image i use talend 2.2.3 r7292
Anonymous
Not applicable
Author

i have changed the date pattern of the trow generator but i have also a error

tarting job testdatemodifetcre at 10:33 19/02/2008.
Exception in component tOracleOutput_2
java.sql.SQLException: ORA-00957: duplicate column name
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:623)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:543)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1028)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
at decisionel.testdatemodifetcre.testdatemodifetcre.tOracleInput_1Process(testdatemodifetcre.java:825)
at decisionel.testdatemodifetcre.testdatemodifetcre.runJob(testdatemodifetcre.java:1469)
at decisionel.testdatemodifetcre.testdatemodifetcre.main(testdatemodifetcre.java:1405)
Job testdatemodifetcre ended at 10:33 19/02/2008.
Anonymous
Not applicable
Author

what are your database column name?
Because this kind of error comes from your oracle database server.
Can you send us a screenshot of your toracleoutput schema and a description of your table where you want to insert/update your data?
cheers
cahsohtoa
Anonymous
Not applicable
Author

this is the decruption of my table for insert or update
CREATE TABLE TESTDATE
(
TEST VARCHAR2(10 BYTE) NOT NULL,
TEST2 INTEGER NOT NULL,
DATE_CRE DATE NOT NULL,
DATE_MODIF DATE
)
TABLESPACE TS_CREFIBASE_DATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
)
LOGGING
NOCACHE
NOPARALLEL;
Anonymous
Not applicable
Author

in your INSERT(output) and in your UPDATE(output) you have to replace newcolumn and newcolumn1 (in the DB column) by DATE_CRE and DATE_MODIF
Anonymous
Not applicable
Author

i don't understand ?
Anonymous
Not applicable
Author

If you have a look to the images in your last post, in your schema you've let in the column "dbcolumn" the value newcolumn. You have to replace it by the name of your database column.
Anonymous
Not applicable
Author

i have changed the the dbcolumn but i have always the same error