Support Questions

Find answers, ask questions, and share your expertise

Drop and/or replace a flowfile with FetchFile contents

avatar
Contributor

I need to replace all of the contents of my flowfile with a file on the disk. Seems like FetchFile just adds the contents to the flowfile, is there a way to drop the contents of my flowfile first?

2 REPLIES 2

avatar
Master Guru
@Andrew Riffle

Use ModifyBytes processor which will drop the contents of your flowfile.

Set the property value remove all content to true

Processor configs:-

83412-modify-bytes.png

avatar
Explorer

Thanks Shu, that was helpful!