<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio. in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406953#M11337</link>
    <description>&lt;P&gt;I can confirm you can still use the expression &lt;I&gt;condition&lt;/I&gt;&lt;B&gt;&lt;I&gt;?&lt;/I&gt;&lt;/B&gt;&lt;I&gt;value if true&lt;/I&gt;&lt;B&gt;&lt;I&gt;:&lt;/I&gt;&lt;/B&gt;&lt;I&gt;value if false,&lt;/I&gt; have a try to remove the expression which is migrated from v5, and re-write it again on v7. &lt;/P&gt;&lt;P&gt;if you still have issue, can you please paste the expression in the post? I will test it on my sdie.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 05:07:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-12-10T05:07:58Z</dc:date>
    <item>
      <title>Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406950#M11334</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am migrating my Talend jobs version 5-java 7 to Talend 7-java 11. Installed JRE is correctly configured on java11.&lt;/P&gt;&lt;P&gt;Til now I had no issues, only some missing jars here and there which were solved rapidly and the jobs work correctly just as version 5.&lt;/P&gt;&lt;P&gt;Except for this 1 job. This job uses same configurations and setting as all previous successfully migrated jobs which is why I am unable to understand what is the problem. &lt;/P&gt;&lt;P&gt;On TOS 5 the same job is OK, but on TOS 7, the identical job has compilation issues.&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;The build shows this error :&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwOHBAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140947i3ACECE8313F940FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwOHBAA3.png" alt="0695b00000LwOHBAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;The java code on TOS 5 shows a difference on this part too. On TOS 5 the codes generated are exactly as I wrote in my expression builder. But on TOS 7, it is generating the codes and adding some more to it (see parts hightlighted in purple)&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwOHzAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140318i82FF9723DC91563E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwOHzAAN.png" alt="0695b00000LwOHzAAN.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grateful if someone could bring some light and help me solve this issue &lt;span class="lia-unicode-emoji" title=":crossed_fingers:"&gt;🤞&lt;/span&gt;. The migration task is almost halfway, I hope this is solved to not jeopardize the whole project undertaken til now &lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406950#M11334</guid>
      <dc:creator>SDHON</dc:creator>
      <dc:date>2024-11-15T23:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406951#M11335</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There were many changes between versions 5.x and 7.x, especially with what operations were removed, changed, and added in. One suggestion we can make is to validate if the function that your team is trying to accomplish, is in the tMap for 7.3.1. Can you let us know what specifically is being done in the tMap itself?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 16:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406951#M11335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-08T16:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406952#M11336</link>
      <description>&lt;P&gt;Hello. Thank you rpooya for your assistance.&lt;/P&gt;&lt;P&gt;Yes indeed the issue is on a tMap on 7.3.1. If I remove the expression in the expression builder of the tMap, the job builds without issue. &lt;/P&gt;&lt;P&gt;For info: I am migrating the job (export from TOS 5 and import in TOS 7) &lt;B&gt;as it is&lt;/B&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;U&gt;The tMap does this :&lt;/U&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;left join a table with links on keys (3 fields); one field DATE type contains the expression (in red below) to derive the correct date used as join key and col4 is used as output after this. The 2nd snapshot shows the full expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwYf3AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144374iD8A636F276F5A58F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwYf3AAF.png" alt="0695b00000LwYf3AAF.png" /&gt;&lt;/span&gt;compareDate (date1-1M, currentDate) if &amp;gt; 0 then (1st of currentDate-1M) else (1st of date1-1M)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwYLwAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147244i5350FB6A379A557B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwYLwAAN.png" alt="0695b00000LwYLwAAN.png" /&gt;&lt;/span&gt;All concerning fields linked are of type DATE&lt;/P&gt;&lt;P&gt;Individually when tested with getCurrentDate on the expression builder, all the above works fine. The expressions evaluate to correct values, but strangely when using syntax &lt;B&gt;&lt;U&gt;? : &lt;/U&gt;&lt;/B&gt;on DATE type, it seems problematic on TOS7. If am not mistaken, the syntax for TOS 7 is same right? &lt;I&gt;condition&lt;/I&gt;&lt;B&gt;&lt;I&gt;?&lt;/I&gt;&lt;/B&gt;&lt;I&gt;value if true&lt;/I&gt;&lt;B&gt;&lt;I&gt;:&lt;/I&gt;&lt;/B&gt;&lt;I&gt;value if false&lt;/I&gt;&lt;/P&gt;&lt;P&gt;If you need any other info please let me know.&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 06:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406952#M11336</guid>
      <dc:creator>SDHON</dc:creator>
      <dc:date>2021-12-09T06:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406953#M11337</link>
      <description>&lt;P&gt;I can confirm you can still use the expression &lt;I&gt;condition&lt;/I&gt;&lt;B&gt;&lt;I&gt;?&lt;/I&gt;&lt;/B&gt;&lt;I&gt;value if true&lt;/I&gt;&lt;B&gt;&lt;I&gt;:&lt;/I&gt;&lt;/B&gt;&lt;I&gt;value if false,&lt;/I&gt; have a try to remove the expression which is migrated from v5, and re-write it again on v7. &lt;/P&gt;&lt;P&gt;if you still have issue, can you please paste the expression in the post? I will test it on my sdie.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 05:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406953#M11337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T05:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406954#M11338</link>
      <description>&lt;P&gt;Thank you shong. &lt;/P&gt;&lt;P&gt;I have tried everything to rewrite in vain. When I do not include a condition in the expression there is no issue. e.g ony TalendDate.getCurrentDate() all is fine.&lt;/P&gt;&lt;P&gt;As soon as I include ? and :, the code generates the part in purple shown above and is in error - as if it genereates additional condition on my existig expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TalendDate.compareDate(&lt;/P&gt;&lt;P&gt;TalendDate.addDate(row16.BOM_Value_Date,-1,"MM"), TalendDate.getCurrentDate()) &amp;gt; 0 ?&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM", TalendDate.addDate(TalendDate.getCurrentDate(),-1,"MM"))+"-01")&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM", TalendDate.addDate(row16.BOM_Value_Date,-1,"MM"))+"-01")&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 05:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406954#M11338</guid>
      <dc:creator>SDHON</dc:creator>
      <dc:date>2021-12-10T05:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406955#M11339</link>
      <description>&lt;P&gt;@S DHON​&amp;nbsp;i use your expression and make a testing, it works in version 7.3.1, btw, I have JDK11 installation on my machine. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwkxsAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146580iE2F4C65320134C1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwkxsAAB.png" alt="0695b00000LwkxsAAB.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000LwkxnAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151206i9BBDBC375E4D6D19/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000LwkxnAAB.png" alt="0695b00000LwkxnAAB.png" /&gt;&lt;/span&gt;It seems you need to recreate this job in version 7.3.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 11:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406955#M11339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T11:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406956#M11340</link>
      <description>&lt;P&gt;Thank you shong - i have openjdk version "11.0.9.1" 2020-11-04 LTS installed on my machine.&lt;/P&gt;&lt;P&gt;i will re-create this job and see if it works. many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 12:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406956#M11340</guid>
      <dc:creator>SDHON</dc:creator>
      <dc:date>2021-12-10T12:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Talend 7 compile errors - The constructor Date is undefined - There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406957#M11341</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;I had to rework the job - not on the expression itself but on where it was located on my job.&lt;/P&gt;&lt;P&gt;It seems that on the tMap, IN shema (table1) join (table2) cannot be made from derived expression with if else directly.&lt;/P&gt;&lt;P&gt;I had to use the same expression in a previous tMap on my OUT shema to derive the expression value in a new column. Then on my current IN shema (table 1), use the new column (from new tMap on table1) to join my (table2).&lt;/P&gt;&lt;P&gt;Then the job works properly.&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OA1paAAD.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136179iC62F415382EEE6D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OA1paAAD.jpg" alt="0695b00000OA1paAAD.jpg" /&gt;&lt;/span&gt;Hope it can help others.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SDHON&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 12:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Talend-7-compile-errors-The-constructor-Date-is-undefined-There/m-p/2406957#M11341</guid>
      <dc:creator>SDHON</dc:creator>
      <dc:date>2022-02-07T12:02:49Z</dc:date>
    </item>
  </channel>
</rss>

