000-349 · Question #32
Refer to the Exhibit. Consider the audit log fragment below: level="2" size="243" status="E07">CustomerOrder</object> level="3" size="36" status="E07">Detail Record</object> level="4" size="2"…
The correct answer is B. The component rule for the Trailer Record uses the ONERROR function. The E09 status code on the Trailer Record in the audit log indicates a user-defined error raised by the ONERROR function, not a system-detected data error.
Question
Refer to the Exhibit. Consider the audit log fragment below:
level="2" size="243" status="E07">CustomerOrder</object> level="3" size="36" status="E07">Detail Record</object> level="4" size="2" status="E01">UOM Field</object> <Text>NN</Text> level="3" size="9" status="E09">Trailer Record</object> <User>TotalLineItems Field contains invalid Count</User> Which one of the following statements is true?
Options
- AThe component rule for the Trailer Record uses the REJECT function.
- BThe component rule for the Trailer Record uses the ONERROR function.
- CThe data audit setting for CustomerOrder is set to Track=Error, Details=Error and Item
- DThe data audit setting for Trailer Record is set to Track=Error, Details=Error, and Item
How the community answered
(20 responses)- A10% (2)
- B80% (16)
- C5% (1)
- D5% (1)
Why each option
The E09 status code on the Trailer Record in the audit log indicates a user-defined error raised by the ONERROR function, not a system-detected data error.
The REJECT function causes an object to be discarded and produces a different audit status code - it does not generate a user-defined message string like the one shown for the Trailer Record.
The E09 status code is specifically assigned in the audit log when a component rule invokes the ONERROR function to raise a custom error condition. The accompanying user message 'TotalLineItems Field contains invalid Count' is the custom text passed as an argument to ONERROR, confirming that the rule programmatically detected an invalid count and called ONERROR to signal it rather than relying on built-in validation.
The CustomerOrder status E07 reflects an error propagated upward from child objects, and the statement incorrectly attributes a specific data audit track configuration to explain that status rather than the ONERROR condition on the Trailer Record.
The Trailer Record's E09 status is produced by the ONERROR function call in the component rule, not by a data audit Track=Error configuration, which would produce E07-type logging rather than a user-defined message.
Concept tested: ONERROR function and E09 audit log status code
Source: https://www.ibm.com/docs/en/b2b-integrator/6.1?topic=functions-onerror
Topics
Community Discussion
No community discussion yet for this question.