0% found this document useful (0 votes)
130 views

Delete SSHR Transactions

This document provides instructions to delete stuck HR workflow notifications from Oracle HRMS tables. It outlines running SQL scripts to determine transaction IDs and then delete records from three tables in a specific order to remove notifications for a given item key. It also recommends running two concurrent programs to flag and purge obsolete workflow processes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views

Delete SSHR Transactions

This document provides instructions to delete stuck HR workflow notifications from Oracle HRMS tables. It outlines running SQL scripts to determine transaction IDs and then delete records from three tables in a specific order to remove notifications for a given item key. It also recommends running two concurrent programs to flag and purge obsolete workflow processes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Goal

How to delete HR workflow notifications from the tables. These notifications a


re stuck due to incorrect setup.
Solution
1- Determine the item key for the transaction by running wf_status.sql (from $FN
D_TOP/sql/wfstatus.sql)
2- Please run the following SQL:
Please note, you need to delete the data from the following tables in the follo
wing order
- hr_api_transaction_values
- hr_api_transaction_steps
- hr_api_transactions
otherwise you will get a unique constraint.
select transaction_id
,item_type
,item_key
,process_name
from hr_API_TRANSACTIONS
where item_type ='HRSSA'
and item_key = '&p_item_key';
delete from hr_api_transaction_values
where transaction_step_id in
(select transaction_step_id from hr_api_transaction_steps
where transaction_id = &p_transaction_id_from_1);
delete from hr_api_transaction_steps
where transaction_id = &p_transaction_id_from_1;
delete from hr_api_transactions
where transaction_id = &p_transaction_id_from_1;
3- Run the process: Complete Defunct HR Workflow Processes concurrent program -
this will flag any HR workflow process that are no longer in operation to be de
leted.
Users can use the following parameters:
Item Type HR
Age 365
Transaction Status ALL
4- Run the Purge Obsolete Workflow Runtime Data process to delete the actual wo
rkflow processes.
Any existing notifications that exit for the 3 item keys are now completely use
less.

You might also like