Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Resetting an attribute "seq" in updateattribute processor once it reaches lets say to 9

avatar
Expert Contributor

Hi All,

Thanks a lot to this awesome comunity

I am ingesting file through getfile processor and update the filename with date and time, in addition adding a tracker which resets after 9 is reached, below is how I approached

my updateattribute processor looks like below

47471-updateattribite.png

Then I configured advanced setting in the updateattribute processor attached ie the config

however the seq attribute is not resetting.

Any thoughts help please Thanks

Dheiru

47472-advanced.png

1 ACCEPTED SOLUTION

avatar

Hi @dhieru singh

The action should be seq = 0 and not $(getStateValue("seq")) = 0.

47473-screen-shot-2018-01-09-at-124412-am.png

View solution in original post

3 REPLIES 3

avatar

Hi @dhieru singh

The action should be seq = 0 and not $(getStateValue("seq")) = 0.

47473-screen-shot-2018-01-09-at-124412-am.png

avatar
Expert Contributor

@Abdelkrim Hadjidj worked Thanks a lot appreciate your help

avatar
New Contributor

Hi @Abdelkrim Hadjidj

I tried the same the thing and what it does in the count attribute the value is not getting reset to 0. In fact when you check view state of Update attribute a new "count" attribute is being generated with its value 0 whereas the previous count attribute keeps on increasing whenever it receives a flow file. 11.jpg1.jpg2.jpg5.jpg6.jpg

I'm using HDF - Nifi 1.5

Thanks

fffI I t