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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

"Variable can not be resolved" error for multiple tBigQueryInput's

I am getting the following error if there are more than one tBigQueryInput's:

Detail Message: jobId_tBigQueryInput_2 cannot be resolved to a variable

This is my job and the configuration of tBigQueryInput_2. But the config of tBigQueryInput_1 is the same:

0683p000009M2X1.png

In the source code, I am getting the following for tBigQueryInput_1, which is correct:

com.google.cloud.bigquery.JobId jobId_tBigQueryInput_1 = com.google.cloud.bigquery.JobId
		.of(java.util.UUID.randomUUID().toString());
com.google.cloud.bigquery.Job job_tBigQueryInput_1 = bigquery_tBigQueryInput_1
		.create(com.google.cloud.bigquery.JobInfo
			.newBuilder(queryConfiguration_tBigQueryInput_1)
			.setJobId(jobId_tBigQueryInput_1).build());

For tBigQueryInput_2, I am getting an error on the last line of the following code:

com.google.cloud.bigquery.JobId jobId_tBigQueryInput_1 = com.google.cloud.bigquery.JobId
		.of(java.util.UUID.randomUUID().toString());
com.google.cloud.bigquery.Job job_tBigQueryInput_2 = bigquery_tBigQueryInput_2
		.create(com.google.cloud.bigquery.JobInfo
			.newBuilder(queryConfiguration_tBigQueryInput_2)
			.setJobId(jobId_tBigQueryInput_2).build());

The error is on the first line of the above code. Variable `jobId_tBigQueryInput_1` is beeing initialized, but on the last line it references `jobId_tBigQueryInput_2`, which does not exist.

It works for tBigQueryInput_1, but fails for any other tBigQueryInput's.

 

Talend Version used: 7.1.1.20181026_1147

The same job has worked on Taled Version 7.0.1.2018.0411_1414

 

Best regards,

Simon

Labels (4)
16 Replies
dipanjan93
Contributor
Contributor

I think it is because of the Group By clause. Since, in the query no aggregation is involved to support a group by. Could you please check and confirm?

Anonymous
Not applicable
Author

Thank dipanjan93 for the reply. But I do not see how that can solve the problem. The job does not compile. So the query is never evaluated.

IMO it is an error in how Talend creates the code for tBigQueryInput processors.

Anyway, I tried your suggestion by simply removing the GROUP BY clause in both queries. The problem persists.

 

I've created a bug report: https://jira.talendforge.org/browse/TBD-8265

Anonymous
Not applicable
Author

Thank you for the reply dipanjan93. I tried removing the GROUP BY clause in the queries. It did not solve the problem.

But the problem is, that the job does not even build. I have the error in the Code view of the job, so the queries are not evaluated or executed.

 

I created a bug report: https://jira.talendforge.org/browse/TBD-8265

 

(my first response has vanished. No idea what happend)

Anonymous
Not applicable
Author

Hello,

It seems to be having troubles with the jobId for the second and additional tBigQueryInput components.

It is a bug on V 7.1.1 and our developpers are working on this issue. It could be fixed on V 7.2.1.

We will keep you posted.

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi Sabrina,

 

I have just encountered the exact same issue with my job also - and spotted the same issue with the generated java code re-intantiating the previously defined 

jobId_tBigQueryInput_1 instead of jobId_tBigQueryInput_2. 

 

What is the workaround for this whilst we wait for the bugfix?

 

Richard

badri-nair
Contributor
Contributor

I have encountered the same issue where in a tExtractxml component its trying to cast datatypes which has not been coded to cast. Like casting a decimal to Date and Date to a Big Decimal.

 

Thanks

Badri Nair

Anonymous
Not applicable
Author

I have too same problem and it is indeed a feature which is important. Glad that it is addressed as defect. But is there a temporary solution for it ? Thank you in advance.
Anonymous
Not applicable
Author

Hello @ssomanchi,

It is a bug and the fix versions are 7.1.2 and 7.2.1. Could you please clarify in which Talend version/edition you are?

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Hi Sabrina.

 

Thanks for this information, I am on version 7.1.1.

also I raised this issue, if you can confirm if this is known issue. 

https://community.talend.com/t5/Design-and-Development/Issue-when-Using-2-tBigQueryOutput-in-1-job/m...

 

we are in phase of evaluating the ETL as Talend. These are important tests and we are using BQ as our source/target.

thanks in advance