Skip to main content
apocolis
Silver ⭐️
Dec 4, 2019 3:37 PM UTC
Solved

PublishKafkaRecord fails all flowfiles if any of them is invalid

I'm using PublishKafkaRecord processor. Everything works fine, but if I stop the processor and multiple flowfiles stuck in queue when I run the processor again if any of files is invalid all files get into failed queue. Is there any batch setting or any other way to solve this?

MattWho
MattWhoAnswer
Titanium ⭐️⭐️
Dec 4, 2019 10:55 PM UTC

@apocolis 

 

I recommend adding the ValidateRecord before your PublishKafkaRecord processor to filter out the invalid records from your dataflow.

Hope this helps,

Matt

2 replies

MattWho
Titanium ⭐️⭐️
MattWhoAnswer
Titanium ⭐️⭐️
Dec 4, 2019 10:55 PM UTC

@apocolis 

 

I recommend adding the ValidateRecord before your PublishKafkaRecord processor to filter out the invalid records from your dataflow.

Hope this helps,

Matt

Translate
apocolis
apocolisAuthor
Silver ⭐️
Dec 5, 2019 8:49 AM UTC

yes, this helped, thank you

Translate