Friday, 10 March 2023

force_error and force_abort

 force_error

Produces an error, and sends the specified error message and error code to the component’s error-handling port.

You can also use force_error to filter records with particular values or to handle records with badly formatted data. To do this:

1.Test for the value to filter. If the value is found, call force_error with an appropriate message and error code.

2.Set the component’s reject-threshold parameter to one of the following:

##Never abort — To filter out all badly formatted records.

##Limit/Ramp — To set a limit on the number of badly formatted records to filter before stopping graph execution


force_abort -

Sends the specified message to the standard error stream and exits the process with error status. 

If this function is called in a component, it causes the graph containing the component to abort. You can use this function to terminate a graph if a component’s transform logic encounters a severe error, and the component’s reject-threshold parameter is set to Never abort.

reject-threshold parameter’s limit/ramp setting do not affect the behavior of force_abort.


No comments:

Post a Comment

how to create dml dynamically in Ab-initio

 $[ begin let int i = 0; let string(int) complete_list = "emp_nm,billable,age,designation,location"; let string(int) file_content ...