| |
GeekInterview.com > Interview Questions > Data Warehousing > Abinitio
| Print | |
Question: Force_error Function
Answer: How does force_error function work ? If we set never abort in reformat , will force_error stop the graph or will it continue to process the next set of records ? |
| June 06, 2009 15:47:49 |
#2 |
| abhi_fresh_as_dew |
Member Since: September 2008 Total Comments: 12 |
RE: Force_error Function |
force_error, as the name suggests it works on as to force an error in case of not meeting of any conditions mentioned.
The function can be used as per the requirment.Viz.,
1. If you want to stop execution of graph in case of not meeting a specific condition,say,you have to compare the input and out put records reconcilation and the graph should fail if the input record count is not same as output record count, "THEN set the reject-threshold to Abort on first reject" so that the graph stops.
N.B - force_error directs all the records meeting the condition to reject port with the error message to error port.
2.In certain special circumstances, you can also use to treat the reject port as an additional data flow path leaving the component. When using force_error to direct valid records to the reject port for separate processing, you must remember that invalid records will also be sent there. When using force_error for this purpose, "set the reject-threshold to Never Abort" so that the graph doesnot fails and meets the purpose.
Njoi!! Abhi - fresh as dew! |
| |
Back To Question | |