Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Capture date format error

Hello everyone,
I want to log the rejected records and I have a problem that I can not solve.
I would like to capture date format error. I tried tUniqRow , tFilterRow and tSchemaComplianceCheck but no one of thoses components capture this error.
 

Any help would be appreciated.

 

Thanks.

0683p000009Lrrr.png
Labels (2)
5 Replies
Anonymous
Not applicable
Author

Hello,

Do you want to capture error printed on console?

Here are Logs & Errors components in talend. tStatCatcher component can gather the statistics log of Job execution and tLog component can operate as a log function triggered by one of the three: Java exception, tDie or tWarn, to collect and transfer log data.

Best regards

Sabrina

 

 

 

 

Anonymous
Not applicable
Author

@xdshi: thank for your answer. I use tStatCatcher, tAssertCatcher and tLogCatcher but no one of those components catch this error.
I launched the job this morning, the job was successfully executed. The error message doesn't failed the job. it doesn't take account the first row of my excel file.

0683p000009LrbQ.pngDate format error0683p000009LroF.pngLog file

 

Anonymous
Not applicable
Author

Hi,

From your attached screenshot, is your row 1 from tfileinputexcel component? Have you tried to drag "Rejects" row from it to see if this error message can be captured by rejects row?

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Hello @xdshi

 

From your attached screenshot, is your row 1 from tfileinputexcel component? No, it's my tStatCatcher file (log file) .

Have you tried to drag "Rejects" row from it to see if this error message can be captured by rejects row? i tried from tMap and tfileinputexcel , it doesn't work.

 

for information, the date I'm trying to insert is "31-04-2017". I know the April month have 30 days. I need to check invalid date and to capture date format error.

cterenzi
Specialist
Specialist

Right-click your input component and select Row -> Reject.  Connect that to an output component.  The default schema should be the schema of the input component plus two columns; errorCode and errorMessage.