Created 08-21-2025 08:37 PM
Hi everyone,
I'm a very new user and am currently using Nifi to design a system that will automatically download files from an SFTP server. I will be utilizing "Tracking Entities" as the listing strategy.
However, sometimes I might need to re-download files from the server, so I need a method to clear/reset the state of the ListSFTP processor. All of the replies I looked at said to right-click, select "View State" and click on the "Clear State" link.
But there's no such link, at least for 2.5.0 on my machine: I have the "filter" text box, a list where I can sort things by "key" or "value" and the "close" button. I'm at a loss as to how to do this.
Another post suggested that I delete the directories storing the data used by ListSFTP, but a) I feel that that is not a very elegant solution, and b) can someone point out to me which directories are these?
All help would be greatly appreciated.
Created 08-25-2025 08:21 AM
@Amry
The "clear state" option only appears if ListSFTP is configured to use "tracking timestamps" and there is state available to be cleared.
Since you are using "tracking entities", entities are being tracked in a NiFi MapCacheServer.
If your MapCacheServer has been configured with a "persistence Directory", you'll need to stop the cache server, delete the contents of the persistence directory and then restart the cache server to clear the data.
If your MapCacheServer has NOT been configured with a "persistence Directory", you'll need to stop the cache server and then restart the cache server to clear the data.
Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
Created 08-21-2025 10:31 PM
@Amry, Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts @MattWho and @SAMSAL, who may be able to assist you further.
Please feel free to provide any additional information or details about your query. We hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 08-22-2025 01:50 PM
Hello @Amry,
Strange, you should be able to see something like this:
Do you have that button?
Can you confirm your CFM version so I can take a look on a version like that as well?
Created on 08-23-2025 08:26 AM - edited 08-23-2025 08:30 AM
Hi @vafs ,
How odd, this is what my screen looks like, on both Linux and Windows:
https://i.imgur.com/3Lo8m2O.png
The version I'm using is 2.5.0.
Regards,
Created 08-25-2025 08:21 AM
@Amry
The "clear state" option only appears if ListSFTP is configured to use "tracking timestamps" and there is state available to be cleared.
Since you are using "tracking entities", entities are being tracked in a NiFi MapCacheServer.
If your MapCacheServer has been configured with a "persistence Directory", you'll need to stop the cache server, delete the contents of the persistence directory and then restart the cache server to clear the data.
If your MapCacheServer has NOT been configured with a "persistence Directory", you'll need to stop the cache server and then restart the cache server to clear the data.
Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt
Created 08-25-2025 09:18 PM
You did it! I changed my tracking strategy to "Tracking timestamps" and it now populated the "View State" window. Thank you very much for your assistance!