Support Questions
Find answers, ask questions, and share your expertise

Problem configure UpdateAttribute to RouteOnAttribute

Problem configure UpdateAttribute to RouteOnAttribute

Rising Star

I want to pass files from ftp to hdfs, using following flow

13895-nifi1.png

i want my UpdateAttribute parse the flowfile along with to attributes (variables )

I have configured by adding properties, i did try to create a rule and set condition and attributes either way it did not match

13896-nifi2.png

when it reach the RouteOnAttribute the filename INCOMING.D170322 should match my expression and parse on to fetchFtp but i doesn't

13897-nifi3.png

Any suggestions to why i not getting any match in my RouteOnAttribute

1 REPLY 1

Re: Problem configure UpdateAttribute to RouteOnAttribute

Explorer

Simon it looks like you have a single quotes around the value of 'FileStartWith' attribute. If you look at the attributes of the flow files that were routed to the 'unmatched' relationship I think you'd see values of something like "'INCOMING.D'170322" not "INCOMING.D170322". If you remove the quotes I think it should work as expected. Also, your attribute for date doesn't seem to be valid EL. It looks like you are missing a closing bracket.