170889: -- Event count context is set in xla_accounting_pkg.unit_processor.
170890: -- Build_Message for this error is called in xla_accounting_pkg.post_accounting
170891: -- to report it as a general error.
170892: --
170893: IF xla_context_pkg.get_event_count_context <> g_hdr_extract_count
170894: AND xla_context_pkg.get_event_nohdr_context <> 'Y' THEN
170895:
170896: IF (C_LEVEL_STATEMENT >= g_log_level) THEN
170897: trace
170890: -- Build_Message for this error is called in xla_accounting_pkg.post_accounting
170891: -- to report it as a general error.
170892: --
170893: IF xla_context_pkg.get_event_count_context <> g_hdr_extract_count
170894: AND xla_context_pkg.get_event_nohdr_context <> 'Y' THEN
170895:
170896: IF (C_LEVEL_STATEMENT >= g_log_level) THEN
170897: trace
170898: (p_msg => '# of extracted headers and events does not match'
170906: ,p_module => l_log_module);
170907:
170908: trace
170909: (p_msg => '# of events in xla_events_gt: '
170910: ||xla_context_pkg.get_event_count_context
170911: ,p_level => C_LEVEL_STATEMENT
170912: ,p_module => l_log_module);
170913:
170914: trace
170912: ,p_module => l_log_module);
170913:
170914: trace
170915: (p_msg => 'Event No Header Extract Context: '
170916: ||xla_context_pkg.get_event_nohdr_context
170917: ,p_level => C_LEVEL_STATEMENT
170918: ,p_module => l_log_module);
170919:
170920: END IF;
170919:
170920: END IF;
170921:
170922:
170923: xla_context_pkg.set_event_nohdr_context
170924: (p_nohdr_extract_flag => 'Y'
170925: ,p_client_id => sys_context('USERENV','CLIENT_IDENTIFIER'));
170926:
170927: IF (C_LEVEL_STATEMENT >= g_log_level) THEN