Wednesday 24 April 2019

Troubleshooting Oracle E Business Suite Workflow Mailer and Notification issues


1.Run below query

SELECT component_name, component_status FROM fnd_svc_components WHERE component_type = 'WF_MAILER';

SQL> SELECT component_name, component_status FROM fnd_svc_components WHERE component_type = 'WF_MAILER';

COMPONENT_NAME                                                                   COMPONENT_STATUS
-------------------------------------------------------------------------------- ------------------------------
Workflow Notification Mailer                                                     RUNNING

SQL>



2. Check the log file of workflow mailer

Please run the following query to locate all current Workflow Mailer Service log:


set linesize 155; 
set pagesize 200; 
set verify off; 
column MANAGER format a15; 
column MEANING format a15; 
SELECT concurrent_queue_name manager, fcp.last_update_date, fcp.concurrent_process_id pid, meaning, fcp.logfile_name 
FROM fnd_concurrent_queues fcq, fnd_concurrent_processes fcp, fnd_lookups flkup 
WHERE concurrent_queue_name in ('WFMLRSVC') 
AND fcq.concurrent_queue_id = fcp.concurrent_queue_id 
AND fcq.application_id = fcp.queue_application_id 
AND flkup.lookup_code=fcp.process_status_code 
AND lookup_type ='CP_PROCESS_STATUS_CODE' 
AND meaning='Active';



SQL> @wfmailer_log.sql

MANAGER         LAST_UPDA        PID MEANING
--------------- --------- ---------- ---------------
LOGFILE_NAME
-----------------------------------------------------------------------------------------------------------------------------------------------------------
WFMLRSVC        24-APR-19    2714081 Active
/prodapps/inst/apps/PROD_abcapps/logs/appl/conc/log/FNDCPGSC2714081.txt



After setting app env file run the following command to collect the logs

grep ":ERROR:" $APPLCSF/$APPLLOG/FNDCPGSC2714081.txt > mlrerr.log
grep "Exception:" $APPLCSF/$APPLLOG/FNDCPGSC2714081.txt > mlrexc.log
grep ":UNEXPECTED:" $APPLCSF/$APPLLOG/FNDCPGSC2714081.txt > mlrunexp.log


3. Check If the notification for the user is going to discard folder

- First check, If the notifications approved through email are going to Discard folder for that user.
- Try to approve the notification from workflow worklist from Oracle EBS ERP and see if its going to Discard folder or processing successfully.

Please run below command to see notifications moved to Discard folder


grep ":DISCARD:"  $APPLCSF/$APPLLOG/FNDCPGSC2714081.txt  > mlrdiscard.log 
grep "Approver:" $APPLCSF/$APPLLOG/FNDCPGSC2714081.txt  > mlrapprover.log 


4. Check below queries if the messages are in ready state


select NVL(substr(wfe.corrid,1,50),'NULL - No Value') corrid,
decode(wfe.state,
 0,' 0 = Ready',
 1,'1 = Delayed',
 2,'2 = Retained',
 3,'3 = Exception',
 to_char(substr(wfe.state,1,12))) State,
 count(*) COUNT
from applsys.wf_notification_out wfe
group by wfe.corrid, wfe.state;


CORRID                                             STATE              COUNT
-------------------------------------------------- ------------- ----------
APPS:POAPPRV:EMAIL_PO_PDF                          3 = Exception          1
APPS:XXAIGCOS:APPROVED_FYI_MSG                     2 = Retained          31
APPS:OEOH:ORDER_REJECTED                           2 = Retained           1
APPS:REQAPPRV:PO_REQ_RETURNED_BY_BUYER_JRAD        2 = Retained           1
APPS:XXAIGCOS:APPROVAL_MESSAGE                     2 = Retained          36
APPS:REQAPPRV:PO_REQ_APPROVED_JRAD                 2 = Retained          32
APPS:FNDCMMSG:REQ_COMPLETION_W_URL                 3 = Exception          2
APPS:OEOH:OM_APPROVED                              2 = Retained         193
APPS:OEOH:APPROVAL_REQUIRED                        2 = Retained          50
APPS:POAPPRV:PO_PO_APPROVE_PDF                     2 = Retained          19
APPS:REQAPPRV:PO_REQ_APPROVE_JRAD                  3 = Exception          2
APPS:POAPPRV:PO_PO_HAS_BEEN_APPROVE                2 = Retained          49
APPS:REQAPPRV:PO_REQ_APPROVE_JRAD                  2 = Retained          53
APPS:WFERROR:RESET_ERROR_MESSAGE                   2 = Retained           3
APPS:XXAIGCOS:POST_FYI_MESSAGE                     2 = Retained          30
APPS:POAPPRV:PO_PO_HAS_BEEN_APPROVE                3 = Exception          1


SQL> select tab.msg_state, count(*) from applsys.aq$wf_notification_out tab group by tab.msg_state ;

MSG_STATE          COUNT(*)
---------------- ----------
EXPIRED                   6
PROCESSED               497

SQL> select count(*) from APPLSYS.AQ$WF_NOTIFICATION_OUT
where msg_state in ('READY','WAIT');  2

  COUNT(*)
----------
         0

SQL>

No comments:

Post a Comment