- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to modify text in csv file in Apache Nifi
- Labels:
-
Apache NiFi
-
NiFi Registry
Created on ‎10-19-2020 05:00 AM - edited ‎10-19-2020 05:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a csv file which has many lines of data and many fields, but whenever i have a file which has "9799678467\" under "boardingPointContactNo" field it throws error.
I want to replace "9799678467\" with "9799678467". I want to remove the "/" . Which processor should i be used to do this.
This is the snippet of my csv data.
serviceProviderName,serviceId,routeId,busType,sourceLocation,sourceLocationId,boardingPointId,boardingPointContactNo {fields}
"abc travels and Cargo","106123","15476562","A/C Sleeper (2+1)","Surat","473","21765854","9799678467\" {values of each field}
As you can see the data is comma separated.
Thanks in advance
Created ‎10-19-2020 01:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The solution you are looking for is: ReplaceText:
You can find loads of examples here in the forum with this search:
If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.
Thanks,
Steven
