- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Column name with Special Character ($) and (#) causing Special Character Error Apache NiFi
- Labels:
-
Apache Hadoop
-
Apache NiFi
Created on ‎04-19-2019 01:28 PM - edited ‎08-17-2019 03:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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#
any help or solutions would be greatly appreciated!
Created ‎04-19-2019 01:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎04-19-2019 03:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created ‎04-20-2019 09:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
