Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!

'Duplicate variable' compilation error when using several tELTHiveOutput components in a Job

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

'Duplicate variable' compilation error when using several tELTHiveOutput components in a Job

Last Update:

Feb 9, 2024 1:22:49 PM

Updated By:

Jamie_Gregory

Created date:

Apr 1, 2021 6:10:21 AM

Problem Description

When using more than one tELTHiveOutput component in a Talend 6.5.1 standard Job, the Job cannot be built, and fails with the following compilation error:

"
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.
Error Line: 1051
Detail Message: Duplicate local variable queryIdentifier
"

 

Root Cause

Checking the generated code show the variables dateStrFormat and queryIdentifier are duplicated:

"
java.text.DateFormat dateStrFormat = new java.text.SimpleDateFormat(
"yyyyMMddHHmmss");
final String queryIdentifier = projectName + "_" + jobName
+ "" + jobVersion.replace(".", "")
+ "tELTHiveOutput_2"
+ dateStrFormat.format(new Date(startTime));
"

 

Solution

This issue is fixed.

 

Against Talend 6.5.1, the solution consists of applying Patch_20180712_TPS-2591_v1-6.5.1.zip.

  1. Contact Talend Support to request Patch_20180712_TPS-2591_v1-6.5.1.zip.
  2. Use the patch Readme file steps (embedded in the patch zip file) to apply the patch.
Version history
Last update:
‎2024-02-09 01:22 PM
Updated by: