Data Transformation Engine Functions and Expressions Reference Guide
Chapter 3 - Function Reference  ONERROR 
Functions and Expressions Reference Guide 
159 
If the component rule fails, the data section of the audit log shows the 
following information: 
<DataLog> 
<input card="1"> 
 <object ... status="E07">InsuranceClaim</object> 
 <object ... status="E09">Claim Date Field</object> 
 <Text>980725</Text> 
 <object ... status="E07">InsuranceClaim</object> 
 <object ... status="E09">Claim Date Field</object> 
 <Text>990526</Text> 
</input> 
</DataLog> 
Status code E09 for the Claim Date Field indicates that the data for that 
object failed its component rule, but does not provide any further detail. 
Using 
ONERROR, one or more error messages can be added to the data section 
of the audit log to provide more information as to how or why the component 
rule failed. For example, 
ONERROR ( Claim Date Field > Accident Date Field , 
 "Claim date before accident." ) & 
ONERROR ( Claim Date Field < ADDDAYS ( Accident Date Field , 
365 ) , 
 "Claim is more than one year old." ) 
If the component rule fails and ONERROR is used, the data section of the audit 
log can show the following messages: 
<DataLog> 
<input card="1"> 
 <object ... status="E07">InsuranceClaim</object> 
 <object ... status="E09">Claim Date Field</object> 
 <Text>980725</Text> 
 <User>Claim date before accident.</User> 
 <object ... status="E07">InsuranceClaim</object> 
 <object ... status="E09">Claim Date Field</object> 
 <Text>990526</Text> 
 <User>Claim is more than one year old.</User> 
</input> 
</DataLog> 










