Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Column name with Special Character ($) and (#) causing Special Character Error Apache NiFi

avatar
Contributor

Hey, I'm receiving a special character error in Apache Nifi, I have 4 columns that could be causing it:

UCR_COST_IN_$,

ACTUAL_COST_IN_$


or


REQUESTED#,

ASSIGNED#


108020-1555680268704.png


any help or solutions would be greatly appreciated!

3 REPLIES 3

avatar
Master Guru

@James Fowler

In executesql processor change Normalize Table/Column Names property value to true

(or)

in your select query add an alias name to the special character field names without special character.

avatar
Contributor

so how would I do the 2nd one? I tried the first one but it put "Null" into all the rows in the destination table.


avatar
Master Guru

@James Fowler

We need to use ReplaceText processor after GenerateTableFetch processor and replace select * with:

select col1, UCR_COST_IN_$ as UCR_COST_IN from table //replace * with column names and add an alias