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.
- Contact Talend Support to request Patch_20180712_TPS-2591_v1-6.5.1.zip.
- Use the patch Readme file steps (embedded in the patch zip file) to apply the patch.