Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey,
I create the following pipeline
Parent: tWaitForFile--iterate--trunJob
Child:
I want after tSchemaCompliance to send the Logs to a file if it is Rejected : FileName, CurrentTime,"Failed" errorCode,errorMessage
and if it is Succeed: FileName,CurentTime,"Success"
Can anyone tell my what component to use in order to achieve that (thashoutput/input?/ tassertcatcher?) ? And what I have to write inside tJavarow to gain these informations like FileName, CurrentTime,"Failed" errorCode,errorMessage?
Thanks
schemacheck is row by row validation .
Why donot you want the detail of row which has failed or passed ?
FileName and current timestamp , you can add by using tJavaRow/Tmap for each sucess and reject record.
if you want to add in same file success and Reject , you can use tHashInput/output.
I want from the schema compliance TWO rows. One for success files in order to store the logs inside a csv and the OTHER for rejected files with log's too. I want if schema compliance find something rejected to stop the job and go back to the parent job.