@Suhrid
Ghosh
Use record oriented processors for this case, as these processors validates the records based on the Record Reader controller service,Validate Record processor which does the same exact validation as you need.
Refer to this link for configuring/usage of Validate Record processor with example.
-
If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.