<?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>article 'Duplicate variable' compilation error when using several tELTHiveOutput components in a Job in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Duplicate-variable-compilation-error-when-using-several/ta-p/2150429</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;H1&gt;Problem Description&lt;/H1&gt; 
 &lt;P&gt;When using more than one &lt;STRONG&gt;tELTHiveOutput&lt;/STRONG&gt; component in a Talend 6.5.1 standard Job, the Job cannot be built, and fails with the following compilation error:&lt;/P&gt; 
 &lt;PRE&gt;"
&lt;STRONG&gt;org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "J00200_PRO_CDA_CONTACT2" has a compile errors, please fix and export again.&lt;/STRONG&gt;
Error Line: 1051
Detail Message: Duplicate local variable queryIdentifier
"&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Root Cause&lt;/H1&gt; 
 &lt;P&gt;Checking the generated code show the variables &lt;STRONG&gt;dateStrFormat&lt;/STRONG&gt; and &lt;STRONG&gt;queryIdentifier&lt;/STRONG&gt; are duplicated:&lt;/P&gt; 
 &lt;PRE&gt;"
java.text.DateFormat dateStrFormat = new java.text.SimpleDateFormat(
"yyyyMMddHHmmss");
final String queryIdentifier = projectName + "_" + jobName
+ "" + jobVersion.replace(".", "")
+ "tELTHiveOutput_2"
+ dateStrFormat.format(new Date(startTime));
"&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Solution&lt;/H1&gt; 
 &lt;P&gt;This issue is fixed.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Against Talend 6.5.1, the solution consists of applying &lt;STRONG&gt;Patch_20180712_TPS-2591_v1-6.5.1.zip&lt;/STRONG&gt;.&lt;/P&gt; 
 &lt;OL&gt;&lt;LI&gt;Contact &lt;A href="https://www.talend.com/services/technical-support/" target="_blank"&gt;Talend Support&lt;/A&gt; to request &lt;STRONG&gt;Patch_20180712_TPS-2591_v1-6.5.1.zip&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Use the patch Readme file steps (embedded in the patch zip file) to apply the patch.&lt;/LI&gt;&lt;/OL&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2024-02-09T18:22:49Z</dc:date>
    <item>
      <title>'Duplicate variable' compilation error when using several tELTHiveOutput components in a Job</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Duplicate-variable-compilation-error-when-using-several/ta-p/2150429</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;&lt;DIV class="lia-message-template-content-zone"&gt; 
 &lt;H1&gt;Problem Description&lt;/H1&gt; 
 &lt;P&gt;When using more than one &lt;STRONG&gt;tELTHiveOutput&lt;/STRONG&gt; component in a Talend 6.5.1 standard Job, the Job cannot be built, and fails with the following compilation error:&lt;/P&gt; 
 &lt;PRE&gt;"
&lt;STRONG&gt;org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "J00200_PRO_CDA_CONTACT2" has a compile errors, please fix and export again.&lt;/STRONG&gt;
Error Line: 1051
Detail Message: Duplicate local variable queryIdentifier
"&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Root Cause&lt;/H1&gt; 
 &lt;P&gt;Checking the generated code show the variables &lt;STRONG&gt;dateStrFormat&lt;/STRONG&gt; and &lt;STRONG&gt;queryIdentifier&lt;/STRONG&gt; are duplicated:&lt;/P&gt; 
 &lt;PRE&gt;"
java.text.DateFormat dateStrFormat = new java.text.SimpleDateFormat(
"yyyyMMddHHmmss");
final String queryIdentifier = projectName + "_" + jobName
+ "" + jobVersion.replace(".", "")
+ "tELTHiveOutput_2"
+ dateStrFormat.format(new Date(startTime));
"&lt;/PRE&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;H1&gt;Solution&lt;/H1&gt; 
 &lt;P&gt;This issue is fixed.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Against Talend 6.5.1, the solution consists of applying &lt;STRONG&gt;Patch_20180712_TPS-2591_v1-6.5.1.zip&lt;/STRONG&gt;.&lt;/P&gt; 
 &lt;OL&gt;&lt;LI&gt;Contact &lt;A href="https://www.talend.com/services/technical-support/" target="_blank"&gt;Talend Support&lt;/A&gt; to request &lt;STRONG&gt;Patch_20180712_TPS-2591_v1-6.5.1.zip&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Use the patch Readme file steps (embedded in the patch zip file) to apply the patch.&lt;/LI&gt;&lt;/OL&gt; 
&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Feb 2024 18:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Duplicate-variable-compilation-error-when-using-several/ta-p/2150429</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2024-02-09T18:22:49Z</dc:date>
    </item>
  </channel>
</rss>

