I am using component tRowGenerator to populate Date dimension. I have one date column with Function TalendDate.addDate. Env variables are date, nb, dateType. I set the values for these 3 parameters and ran the job. The job ran successfully and populated few columns of the table. I need to map more columns of the table and run the job again.
Every time I closed the job and opened it again the parameters are reset to their default values, now if I run the job it throws an error stating myDate cannot be resolved to a variable. addValue cannot be resolved to a variable.
I set the parameters back several times, saved the job but still they are not retained. Is this a bug in Talend DI? How to resolve?
I am using Version: 5.6.1
Build id: V5.6.1_20141207_1530
Hi, How did u add the date variable for TalendDate.addDate(). Use a static date and parse it using parsedate function of talend to avoid your issue. -Bhanu
Hi Bhanu,
This is how I have added the date variable. See screenshot. I was using context variable myStartDate as date variable and
passed that as parameter to the addDate function. I don't quite get what you mean by using static date and parse, can you post a screenshot.
Thanks
Shyni
Hi Shynicv
Where are your screenshots? V5.5.1 was an rather old version, can you test the latest version and see if the problem still exists?
Best regards
Shong
Hi
It seems you don't use the function TalendDate.addDate(Date mydate, int number, String datePattern) correctly. You can look into the definition of this function in
Repository-->Code-->Routine-->System-->TalendDate. Why you use this function on tRowGenerator?
Best regards
Shong