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

[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? 0683p000009MPcz.png
thanks in advance
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Shong,
Thank you for your assistance 0683p000009MACn.png
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 0683p000009MACn.png
Warmest regards,
Haikal

View solution in original post

3 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Hi Shong,
Thank you for your assistance 0683p000009MACn.png
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 0683p000009MACn.png
Warmest regards,
Haikal
Anonymous
Not applicable
Author

Glad to hear that you found the problem and fix it! Thanks for your feedback!
Best regards
Shong