NB_Line_INSERTED not returning correct result

One Star

NB_Line_INSERTED not returning correct result

I verified that tMSSqlOutput_1 to indeed inserting records (truncate then insert).
However, when I use the following code, it is not assigning the inserted numbers. It returned -1.

context.QATargetInserted=context.QATargetInserted+((Integer)globalMap.get("tMSSqlOutput_1_NB_LINE_INSERTED"));
Confusing part is the following code IS RETURNING CORRECTLY.

context.QATarget=context.QATarget+((Integer)globalMap.get("tMSSqlOutput_1_NB_LINE"));
Any reason why?

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

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

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads