Created 11-30-2016 08:02 AM
I split the file successfully using splitText into three file but when I try store using putfile its throwing error as 'file with same name'. Please suggest which processor do I need to use to save the files in same directory. I used update attribute to update file name but it still throwing the same error
Created on 11-30-2016 12:27 PM - edited 08-19-2019 02:35 AM
Suggestion is to use UpdateAttribute to append timestamp to filename.
Here is an example of how to do this:
If this is what you are looking for, let me know by accepting the answer; else, let me know of any gaps or followup questions.
Created on 11-30-2016 12:27 PM - edited 08-19-2019 02:35 AM
Suggestion is to use UpdateAttribute to append timestamp to filename.
Here is an example of how to do this:
If this is what you are looking for, let me know by accepting the answer; else, let me know of any gaps or followup questions.
Created 11-30-2016 12:56 PM
Depending on how fast the flow files are coming through, using the timestamp might result in the same filename as well. You could use ${uuid}, which is the UUID of the flow file (guaranteed to be unique), or ${nextInt()}, which is an auto-incrementing value
Created 12-01-2016 04:27 AM
Thank You @Matt Burgess and @greyKeys . Previously I used timestamp which results in error, then I changed it to ${uuid} its working fine.