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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem to execute a stored procedure with sybase on Talend Integratio

Hi,
We have a problem to execute a stored procedure with sybase on Talend Integration Suite Professionnal Edition 4.2.4.
We want to execute a Sybase stored procedure with a date in entry to update several tables values. We use in our job a tsybase connection, tsybaserow to "set chained off" and trowgenerator to generate the current date (TalendDate.formatDate("MM/dd/yyyy",TalendDate.getCurrentDate()) with the object tSybaseSP to launch the stored procedure (with our current date as IN parameter).
Finally we have a tsybasecommit to save the changes.
The procedure is running (during 10 minutes) but the tables are not updated.
When we launch the stored procedure with RapidSQL, the tables are updated.
The problem comes about Talend. Is there specials parameters to add or something wrong in our job ?

The parameter requiered in entry of our procedure is :
"Parameters in entry:     - @adt_end   (MM/DD/YYYY)  : End Date treatment"
 
Best regards
Labels (2)
11 Replies
Anonymous
Not applicable
Author

Hi,
Could you please upload your job design screenshot into forum? How did you define basic setting in tSybaseSP?
Best regards
Sabrina
Anonymous
Not applicable
Author

Hi,
A screenshot of my job design.
0683p000009MC2f.png 

The name of parameter in entry is "Date" but its format is String.
I create the row with the rowgenerator :

0683p000009MC1d.png 
Anonymous
Not applicable
Author

Anonymous
Not applicable
Author

Hi,
These are common problems when you use date parameters... I think there is an issue with the date format... date is format generated by the talend is not accepted by the database... you can connect a tlogrow next to db output component or connect a reject link and you should get the reason for rejection of records... and this is due to incorrect date format.
Thanks
vaibhav
Anonymous
Not applicable
Author

Hi,
Like I told in a precedent post, I don't think the problem is a date parameter or format because I have no error message from Talend or Sybase and with a log row the date format is correct? When the date format is different (DD/MM/YYYY for example) I have an error message and the treatment stops.
0683p000009MBvk.png
And as you can see on the screenshot, the treatment time is 10 minutes. When we launch the procedure directly onRapid SQL, the tretment time is the same but the tables are updated.
I think there is a problem with the object because we have no error message and the tables are not updated with the same parameters
Anonymous
Not applicable
Author

Can you remove that onComponentOk and connect with onSubjobOk from tfixedflow? and check again.
vaibhav
Anonymous
Not applicable
Author

I connected with the onSubjobOK :
0683p000009MC2k.png
but the tables are not updated.
Did I a mistake ?
Thanks
Anonymous
Not applicable
Author

Remove onComponentOk from tsybasesp_1 and connect with onSubjobOk from tfixedflow to tsybaserow_1? and check again.
remove  onComponentOk from  tsybaserow_2  and connect with onSubjobOk to commit component

Vaibhav
Anonymous
Not applicable
Author

It doesn't work, the tables are not updated.
0683p000009MC2p.png
Best regards,
Perrin GRANDNE.