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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

TalendDate.addDate Unresolved compilation problem

HI !
This is my first post because i'm new on Talend.
I got a problem in a tMap componant. I want to calculate an end contract date if my field end_contract_date is empty and my start_contract_date is filled. There is my code on the tMap expression field :

!Relational.ISNULL(out3.END_DATE)?out3.END_DATE:
Relational.ISNULL(out3.END_DATE)&&!Relational.ISNULL(out3.START_DATE)?
TalendDate.addDate(out3.START_DATE,row6.PARAM_VALUE,"yyyy"):
null 


My row6.PARAM_VALUE is an integer and out3.end_date&start_date are a java date type on the follow format ("yyyy-MM-dd").
When i test it i got this message :

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 


 
I don't understand why i get it, can anybody help me ?

P.S: Sorry for my English, I'm kind of learning it 0683p000009MA9p.png

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,

We usually  open the code tab and check the u nresolved compilation problem  in java code with red line.
TalendDate.[font=Calibri, sans-serif] addDate(Date date, int nb, String ):date type[/font]


Best regards
[font=Calibri, sans-serif] Sabrina[/font]
 
0683p000009MGWe.png