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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tOracleInput using regexp, Invalid escape sequence

Hello all

How to use in SQL query in tOracleInput statements like this?

"

select

...

REGEXP_COUNT(p.num,'[А-Яа-я]|[;]|(\,\ \ )|(\ \,)|(\w\ \w)|(\w\,\w)') field1,
REGEXP_COUNT(p.num,'([a-zA-Z0-9.\_\-])+[\@]+([a-zA-Z0-9.\_\-]){0,61}+[\.]+[a-zA-Z]{2,6}') field2,

....

"

When I build job I got error Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )

replace all '\' on '\' doesn't help

 

Labels (2)
1 Solution

Accepted Solutions
cterenzi
Specialist
Specialist

Your sql string is interpreted by Java first, then passed to Oracle. In your tOracleInput sql, replace all '\' with '\\'.

View solution in original post

4 Replies
cterenzi
Specialist
Specialist

Your sql string is interpreted by Java first, then passed to Oracle. In your tOracleInput sql, replace all '\' with '\\'.
Anonymous
Not applicable
Author

I've done this replace, don't help

cterenzi
Specialist
Specialist

If you get the same error message, you missed one.
Anonymous
Not applicable
Author

Thank yoy, I really missed one