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?