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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Invalid Character Constant Inside tRedshiftRow Component.

I have the following Redshift Code -

select '"'||N.Name||'"' from (select cast('Sample' as varchar) as Name) N

Which gives the following output -

"Sample"

 

When i try to write this in the query part of the tRedshiftRow Component. It gives the Invalid Character Constant Error.

I checked the java code part and confirmed that the error lies near the " || " (double pipe) symbol.

 

How do i handle this error ?

 

Thanks in advance

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this
"select '\"'||N.Name||'\"' from (select cast('Sample' as varchar) as Name) N"

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Try this
"select '\"'||N.Name||'\"' from (select cast('Sample' as varchar) as Name) N"
Anonymous
Not applicable
Author

That worked ! I thought the error was the the pipe symbol. Never realized that it was the double quotes that was causing it.

 

Thank you