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

UpdateAttribute to RouteOnAttribute in nifi problem

UpdateAttribute to RouteOnAttribute in nifi problem

Rising Star

Hi

I having problems using UpdateAttribute to select the file i want to pass on from RouteOnAtribute

My filename are "INCOIMING.D170322" where 170322 represents the current date.

my flow are build as following

13892-nifi1.png

My listFtp sends flowfiles INCOMING.D<yyMMdd> to UpdateAttribute,

the UpdateAttribute is configured as the picture shows

I have tried to configure my attributes in advanced settings creating a rule and conditions, but i get no match either way.

13893-nifi2.png

I wanted this to parse the Date, and FileStartWith value along the flowfile to the RouteOnAttrribute

i have configured it as follows

13894-nifi3.png

When i send my file INCOMING.D170322 through this flow i would expect it to match but it doesn't

2 REPLIES 2
Highlighted

Re: UpdateAttribute to RouteOnAttribute in nifi problem

Super Guru

This question looks like a duplicate of another one, please see the answer(s) there.

Highlighted

Re: UpdateAttribute to RouteOnAttribute in nifi problem

@Simon Jespersen

For the FileStartWith attribute, you don't need the quotes around INCOMING.D.

Also, for the Date attribute, you need a closed curly brace "}" to complete it.

Don't have an account?