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: 
GuptaN
Contributor
Contributor

CLOB datatype

While performing any kind of transformation with CLOB datatype getting null in target.

Please guide on this.

 

Thanks,

GuptaN

Labels (1)
2 Solutions

Accepted Solutions
lyka
Support
Support

Hello,

There is a replace function that you can use for string datatypes.

 

Replace() returns a string after replacing all occurrences of a given substring within the input string with another substring. The function is non-recursive and works from left to right.

Syntax:  

Replace(text, from_str, to_str)

Return data type: string

 

however i dont think this is applicable for lob columns. As what John said, 

  • The only supported transformation for LOB/CLOB data types is to drop the column
    on the target.

 

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/StringF...

 

Thanks

Lyka

View solution in original post

Heinvandenheuvel
Specialist III
Specialist III

This question is often about just about replacing some (exception) characters like new-line, carriage-return or accented characters. If that's the case, then checkout the replaceChars internal parameter. Search this forum (classic search) for it. Or jump to : https://community.qlik.com/t5/Qlik-Replicate/remove-LF-line-feeder/m-p/1898082

Also note the LOB/CLOB manipulation is NOT available through UDT functions either (User Defined Transformation)

Hein.

View solution in original post

4 Replies
john_wang
Support
Support

Hello @GuptaN ,

In general, yes, you cannot do any transformation for LOB columns, see User Guide Limitations  :

  • The only supported transformation for LOB/CLOB data types is to drop the column
    on the target.

However I'd like to understand what's the exact needs about the transformation and it's better a sample to see if any work around.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
GuptaN
Contributor
Contributor
Author

For example :- abcd is a string and i need to replace d to z
while i am doing this getting null iin target

lyka
Support
Support

Hello,

There is a replace function that you can use for string datatypes.

 

Replace() returns a string after replacing all occurrences of a given substring within the input string with another substring. The function is non-recursive and works from left to right.

Syntax:  

Replace(text, from_str, to_str)

Return data type: string

 

however i dont think this is applicable for lob columns. As what John said, 

  • The only supported transformation for LOB/CLOB data types is to drop the column
    on the target.

 

https://help.qlik.com/en-US/qlikview/May2021/Subsystems/Client/Content/QV_QlikView/Scripting/StringF...

 

Thanks

Lyka

Heinvandenheuvel
Specialist III
Specialist III

This question is often about just about replacing some (exception) characters like new-line, carriage-return or accented characters. If that's the case, then checkout the replaceChars internal parameter. Search this forum (classic search) for it. Or jump to : https://community.qlik.com/t5/Qlik-Replicate/remove-LF-line-feeder/m-p/1898082

Also note the LOB/CLOB manipulation is NOT available through UDT functions either (User Defined Transformation)

Hein.