One Star

[resolved] Date Loop

Hi, im newbie in this kind of world. I found tutorial to build date loop by using talend from this link http://bekwam.blogspot.com/2011/02/talend-open-studio-date-dimension-job.html.
i've followed the steps but when i run the job, i hit an error as below:
Exception in thread "main" java.lang.Error: java.lang.Error: Unresolved compilation problems:
monthName cannot be resolved or is not a field
monthAbbrv cannot be resolved or is not a field
dayName cannot be resolved or is not a field
dayAbbrv cannot be resolved or is not a field
dayOfYear cannot be resolved or is not a field
at talenddemosjava.dateloop_0_1.dateloop.tLoop_1Process(dateloop.java:797)
at talenddemosjava.dateloop_0_1.dateloop.runJobInTOS(dateloop.java:1542)
at talenddemosjava.dateloop_0_1.dateloop.main(dateloop.java:1410)
could someone help me plz? Smiley Sad
thanks in advance
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] Date Loop

Hi Shong,
Thank you for your assistance Smiley Happy
It such a great pleasure for me...and actually that step i missed because i couldnt find where i can set the component. Now, i double checked it and fixed it, then the output successfully generated.
Thank you so much Smiley Happy
Warmest regards,
Haikal
3 REPLIES
Community Manager

Re: [resolved] Date Loop

Hi
Here it is a compilation error. Talend Studio is a Java code generator, if you open the Code tab, you will see which lines have error.
In your case, the variables such as monthName are not declared yet, they are the output fields of tJavaRow, I think you have forgot to define the schema of tJavaRow component.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] Date Loop

Hi Shong,
Thank you for your assistance Smiley Happy
It such a great pleasure for me...and actually that step i missed because i couldnt find where i can set the component. Now, i double checked it and fixed it, then the output successfully generated.
Thank you so much Smiley Happy
Warmest regards,
Haikal
Community Manager

Re: [resolved] Date Loop

Glad to hear that you found the problem and fix it! Thanks for your feedback!
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business