Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
louise119
Creator III
Creator III

data type change in data manager or script

When loading data from DBk, it is interpreted as a number even though it is a character string. How can I change the data type with data manager or script?

6 Replies
vinieme12
Champion III
Champion III

force the field as text using TEXT() function

example

TableName:

Load 

fieldA

,fieldB

,TEXT(fieldC) as  fieldC

; SQL Select

fieldA,fieldB,fieldC

From db.sqlTable;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
louise119
Creator III
Creator III
Author

Thank you ,

I have the same table in the auto-generated section, should I delete the original table?

vinieme12
Champion III
Champion III

you can modify the existing script

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
louise119
Creator III
Creator III
Author

How can I modify the auto-generated script?
If I unlock the auto-generated script, I can't see the data manager , right?

vinieme12
Champion III
Champion III

Unlock the Script and Edit it

 

You can continue to add new Data sets either using Data Load Manager or Data Load Editor

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
louise119
Creator III
Creator III
Author

I've tried, but the data manager becomes unusable. I tried synchronizing the table from the script, but it ends with an error.