Focal Point
[SOLVED] REG:Rows Updated and Rejected

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/7677018786

September 21, 2017, 10:41 AM
srajeevan
[SOLVED] REG:Rows Updated and Rejected
Hi..

In one of my flows ,i need to store No of rows rejected,accepted,flow end time etc.
So i wrote a sql pass through to insert it into a table.
I have used &&CM_AUTHOR for name.
Is there variables to get no. of rows rejected or accepted.

This message has been edited. Last edited by: FP Mod Chuck,


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
September 22, 2017, 08:37 AM
Clif
When row-at-a-time processing is used (load type insert/update and others) once the load completes the variable &ACCEPTS has the number of rows accepted by the target table. There are several variables for rejected records depending on the reason. In the DMUG see the section "Statistical Variables" for details.
September 22, 2017, 12:18 PM
srajeevan
I have a flow1 and in the process flow i added that flow1 and kept a variable after that,
Then i set the variable to &ACCEPTS and then a procedure after the variable to input the variable to a audit table.
Does it work that way?

Another question along with this?
Whats the diff between single & variables and && variables?

This message has been edited. Last edited by: srajeevan,


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
September 25, 2017, 11:14 AM
Clif
Yes, although when you add a data flow to a process flow you must run the data flow as a stored procedure.



Variables with a single ampersand are local variables, with double ampersands are global variables.
October 04, 2017, 09:48 AM
srajeevan
I am running as a data flow not as a stored procedure.In that case how can i get no of rows updated?


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
November 27, 2017, 09:35 AM
srajeevan
@Cliff ,I was not able to see the image you uploaded and still cannot.
Can you please upload it again.
or send it to me.

Please let me know.


WF8202M,Windows 7,8,10
HTM,PDF,EXCEL
November 27, 2017, 10:26 AM
Clif
The image is stored at
http://i67.tinypic.com/2hmnck2.jpg