3340: -- Event count context is set in xla_accounting_pkg.unit_processor.
3341: -- Build_Message for this error is called in xla_accounting_pkg.post_accounting
3342: -- to report it as a general error.
3343: --
3344: IF xla_context_pkg.get_event_count_context <> g_hdr_extract_count
3345: AND xla_context_pkg.get_event_nohdr_context <> 'Y' THEN
3346:
3347: IF (C_LEVEL_STATEMENT >= g_log_level) THEN
3348: trace
3341: -- Build_Message for this error is called in xla_accounting_pkg.post_accounting
3342: -- to report it as a general error.
3343: --
3344: IF xla_context_pkg.get_event_count_context <> g_hdr_extract_count
3345: AND xla_context_pkg.get_event_nohdr_context <> 'Y' THEN
3346:
3347: IF (C_LEVEL_STATEMENT >= g_log_level) THEN
3348: trace
3349: (p_msg => '# of extracted headers and events does not match'
3357: ,p_module => l_log_module);
3358:
3359: trace
3360: (p_msg => '# of events in xla_events_gt: '
3361: ||xla_context_pkg.get_event_count_context
3362: ,p_level => C_LEVEL_STATEMENT
3363: ,p_module => l_log_module);
3364:
3365: trace
3363: ,p_module => l_log_module);
3364:
3365: trace
3366: (p_msg => 'Event No Header Extract Context: '
3367: ||xla_context_pkg.get_event_nohdr_context
3368: ,p_level => C_LEVEL_STATEMENT
3369: ,p_module => l_log_module);
3370:
3371: END IF;
3370:
3371: END IF;
3372:
3373:
3374: xla_context_pkg.set_event_nohdr_context
3375: (p_nohdr_extract_flag => 'Y'
3376: ,p_client_id => sys_context('USERENV','CLIENT_IDENTIFIER'));
3377:
3378: IF (C_LEVEL_STATEMENT >= g_log_level) THEN