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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Problem refreshing a component in palette

Hello everybody,
Here is my problem :
1 I create a component in the component designer, I write some code, and I push into the palette. all right, it appears.
2 I use in a Job, all right, it works fine.
3 I modify my component in the designer, push again, all right, still in the palette
4 I run again my Job using this component, and, oh... doesn't take my changes...
5 I check the code generated by the job, indeed, no changes
6 I check the Java Code generated by the palette (Ctrl + Shift + R), it's ok, the code seems to be generated with my changes.
7 I close my job, reopen it, no modifications of my component, I close TOS and reopen TOS and my job, no changes too.
Any idea ?...
Thanks for your help !
Labels (3)
13 Replies
Anonymous
Not applicable
Author

Hello,
If you close your TOS, and reopen, you should have the last version of your component ! -> have you save your work ?
or any error during genarting of javajet ? Talend can keep the last java code of the job.

In Preference Have you set 2 folders, one for component designer, the other for talend palette , or only one ?
If you have set two folders it should work.
If you have set only one, i have some trouble too ! you can use CTRL+Shift+F3 to recompile palette ( and avoid to restart Talend )
No more idea.
Anonymous
Not applicable
Author

Thanks for your speedy message ;-)
Well,
If I close, and reopen TOS, indeed, I should have the last version... but if the java code generated is ok, the code 'inserted' in the job is not the good one. And yes, I've saved my work.
In preferences, yes, I've one for the designer and another one for the palette.
So... no more idea...
But the problem is still there...
More precisely, I've made another test :
1 Delete of the 'begin' javajet
2 Push my component => palette refresh ok, no errors
3 In the component palette directory, the 'begin' javajet has been deleted => ok
4 When I close my Job and reopen it, Talend doesn't 'popup' me that component xxx has changed...
5 Indeed, the code still include the code present in 'begin' javajet...
How Talend does to detect a component has changed ?...
Any idea ?...
Anonymous
Not applicable
Author

Hello,
My last ideas :
Have you try to run your job ?
Your javajet seems to be good, but talend can't generate the java code of your job, and it's always the last good java code witch is displayed
So the execution of the job fail, with a message like "error to generate code"
Have you change the family of your component between the two push component ?
- go to navigator view : .JETEEmiters /
scr/org/talend/designer/codegen/translators and delete old version.
runtime/org/talend/designer/codegen/translators delete old version too.
Anonymous
Not applicable
Author

Well, indeed, I haven't try to run my job...
So I've just ran my job, and... well.
The java code have been generated without error, but my job 'failed', simply because it's not the 'modified code' that have been integrated in the generation...
And, when I've checked the code after the run, the code haven't changed...
'Snif...'
Thanks for your help... but still not working...
Anonymous
Not applicable
Author

To answer to your edit,
I don't change the family of my component.
Another element in my manipulations of component, when I created my 'new' component, I reuse a component already existing, in the same category...
I've checked both directories, and... it's not the same content ?
In src/... I've all the files.
In runtime/... I've only the half : only files of the 'old' component are presents... the new component doesn't exist ?...
Anonymous
Not applicable
Author

Hello,

Can you upload your component (zip) and export your testing job.
Witch is your TOS version ?
Anonymous
Not applicable
Author

I've uploaded here :
https://www.srumip.fr/talend/
2 files, 1st = Job, 2nd = component
I use 4.0.2 r43696
Anonymous
Not applicable
Author

Hello,
I have download your files, i can see java code from component !
I have make some code update
Sorry, I can't reproduce your issue.
Anonymous
Not applicable
Author

aouch...
thanks for helping...
I think I'm gonna try to make another project and import all my Jobs & co.