0

Please help me understand this thing. How organize check for correct of CSV-file header in NIFI.

I'm waiting CSV with header "c1, c2, c3". But I received the file with header "c2, c3, c4"

Need:in dataflow-file set c1 field to null and send message to email that c4 data field is not needed...

Please help!

1 Answer 1

1

You can go this way:

GetFile -> Extract Text -> RouteOnAttribte -> UpdateAttribute

Where in extract text you can use regex, fetching you the first line with the header.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.