Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to captue feild name while validating record by using validate record processor . Can we also capture error while validating record

How to captue feild name while validating record by using validate record processor . Can we also capture error while validating record

New Contributor

Hello 

 

I have scenario as given below

I have CSV file which is generated from fixed width file. I want to validate data type of each field and capture which field is errored out while validating and error message. Can you please help here 

1 REPLY 1
Highlighted

Re: How to captue feild name while validating record by using validate record processor . Can we also capture error while validating record

Super Guru

@Rohit1981 

Try using ValidateRecord processor as described in this article with Strict Type Checking is set to "true" and to parse fixed width file refer to this link for detailed explanation for parsing.