Fixed issues

ID Description
ANA-21 Historical ETL and batch retries are being inadvertently marked as failed or cancelled.
ANA-38 Event details are not extracted leading to a NULL entry being inserted into the event detail table.
ANA-254 dim_hour and dim_time are currently set to two hours and should be set to +/- the retention policy.