Skip to main content
Solved

Custom Event on HISTORY_LOG_TAB

  • Nov 19, 2021 6:54 PM UTC
  • 7 replies
  • 520 views

COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11

Hello!

---Applications 9

---History Logging Enabled for a number of tables.

Today I have created an Event against the HISTORY_LOG_TAB. As soon as the event is enabled records stopped being created by history logging. Disable the event and the history logging begins working as expected.

Anyone came across this before?

Thanks,

Jamie

Best answer by knepiosko

Hi @MitJamieB 

 

Please check predefined event: HISTORY_LOG_MODIFIED. Try this achive your goal.

 

View original
This topic has been closed for replies.

7 replies

NickPorter
Superhero (Customer)
Forum|alt.badge.img+18
  • Superhero (Customer)
  • Nov 19, 2021 6:56 PM UTC

Could depend on how your event is configured.

If you set it to run BEFORE the write to the table, you could then prevent it from completing the write, depending on what you event/action was defined to do.

Nick


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Author
  • Hero (Partner)
  • Nov 19, 2021 7:33 PM UTC

Hi Nick. Thanks for the response. 
 

the event is set to trigger after a new record is created. 


Forum|alt.badge.img+12
  • Hero
  • Nov 19, 2021 7:46 PM UTC

Could there be some sort of failsafe against recursive effects? If your event does something that writes to a table with history logging turned on, your event could cause an infinite loop, no? Not sure how IFS would know that, though, unless Oracle has built-in circular reference checks.

 

Joe Kaufman


COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Author
  • Hero (Partner)
  • Nov 19, 2021 7:54 PM UTC

Hi Joe,

 

I did think they initially, however I checked this by creating a custom LU and updating that instead. Custom LU didn’t have logging on and still the same issue ☹️


Forum|alt.badge.img+6
  • Sidekick (Customer)
  • Dec 16, 2021 2:45 PM UTC

I am having the same issue so I’m also interested if someone has a solution for this :)

 


Forum|alt.badge.img+17
  • Superhero (Partner)
  • Answer
  • Jan 25, 2022 4:40 PM UTC

Hi @MitJamieB 

 

Please check predefined event: HISTORY_LOG_MODIFIED. Try this achive your goal.

 


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • Feb 17, 2022 5:15 PM UTC

“After” triggers will still cause the whole transaction to fail if something goes wrong. If you feel comfortable posting your event action code, we might be able to help you more.