How to count the number of records inserted into db while using the tmysqloutputbulkexec component

Five Stars

How to count the number of records inserted into db while using the tmysqloutputbulkexec component

Hi Team,

 

I am currently using tmysqloutputbulkexec component to load data into DB.

I need to calculate the number of rows inserted into db using tmysqloutputbulkexec  component, source may fetch some 1000 record for example whereas data loaded into db might be 500 since i used "ACTION ON DATA as ignore records in table" , if the records already present in db then those records will not be again loaded.

 

My requirement is to capture the number of records inserted for audit purpose.

This tmysqloutputbulkexec component will not have "((Integer)globalMap.get("tAmazonAuroraInput_3_NB_LINE"))" this kind of nb line as other db components have.

 

Kindly suggest me is there any way to calculate the number of row inserted in db  using tmysqloutputbulkexec  component.

Early Response will be helpful.

 

Thanks-

Gayathri S

Forteen Stars

Re: How to count the number of records inserted into db while using the tmysqloutputbulkexec component

@Gayathri,if you do not have global map variable  for tmysqloutputbulkexec,then you can do one thing is that you can write query to check counts from table based using either created date ,updated date column from target table on component ok and do where you want to load that count into audit tables.

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download