Hello everyone,
I would like to take the number of rows rejected by a Flat File Format from a parameter/variable.
For example, when I see the trace that my job generates, I can see the following line:
22176 | 22320 | TRAN | 20/01/2016 17:51:48 | Transform <Fich_Ent_v3_F1__AL_ReadFileMT_Merge> is completed with <4> rows loaded and <2> rows rejected. |
But I don't know from where I can take that number "2" of rows rejected.
I've tried to get it using the Data Flow Auditing functionality. So I enable the auditing in my Data Flow and use over the Flat File Format the Count Audit Function and the labels $Count_* and $CountError_*. Unfortunately, $CountError_* gives me zero ("0") and not "2" (I have the error handling enabled). I realized afterwards that the Count Audit Function is mean to be for "Table or output schema" objects, so I guess is not valid for Flat File Formats, right?
In conclusion, is there any option to get the number of rows rejected by a Flat File Format in a Data Flow, for example, in a environment variable? Or if not, there is a way to get the trace line that contains it? Or can any SAP BODS scripting function get one thing or the other?
Thanks and best regards