talend mysql bulk load can reject records and not fail? -
i using tmysqlbulk load load data mysql , wanted know can silently reject records without fail ?
currently loading data mysql table using mysql bulk load feature of talend. not seeing error while process running , completes exit code of 0. can reject records while processing them.
for bulk db operations talend utilizes native bulk load operations (of db type using) called jdbc. talend not incorporate database options each db type. oracle supported , allows ignore configurable number of error on bulk load. mysql not have option ignore errors, never mind capturing errors.
so there 3 ways work around this:
the bulk output components provide ability utilize validation rules. if producing own file input mysql database, can use validation rules in outputbulk component , ensure data quality prior input. when utilize validation rules, validation reject flow becomes available can capture rejected records.
the second option validate file prior importing using tschemacompliancecheck component. has reject flow can capture rejected records. in case use bulk file input, run thru validation produce 'good file' , 'reject file'. use 'good file' input bulk load. of course, wrinkle on option, can avoid bulk load , perform not compliance check kinds of other validations, , use input flows records sqloutput component.
- load data stage tables using bulk load. use etl (either procs or talend) load data destination tables, providing data validation along way.
Comments
Post a Comment