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: 
Ravi_Rajagopal
Contributor III
Contributor III

integer assigning to string

Hi I have an sql call to the database which retrieves an Integer variable. This is done through a component tdbinput, the data is retrieved from an oracle table. I am assigning the value of it to a global variable called vInvitationID. through tsetglobalvar. When I run the same, I am getting an error and the error says that "

java.lang.Integer cannot be cast to java.lang.String"

I haven't defined the variable vInvitationID as a String, hence I am confused as to where the definition happens. Kindly help

Labels (2)
2 Replies
manodwhb
Champion II
Champion II

@Ravichandran Rajagopal​ , you are trying to integer column to string column in tSetglobalvar component, please check if your are not able to find share the component settings.

 

Thanks,

Manohar

 

 

 

 

Ravi_Rajagopal
Contributor III
Contributor III
Author

Manohar thanks. Yesterday I got someone from Talend look at my job and he pointed me to the fact that I had two RunIF triggers go out of tsetglobalvar component where I was incorrectly referring to the global variable as string. Once I corrected the same to Integer the job progressed forward.