Email Workflow Is Not Firing Up (Doc ID 2147442.1)

Last updated on JUNE 08, 2016

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.1.10.0.0 and later
Information in this document applies to any platform.

Symptoms

Workflow emails are not being sent.
1. initial workflow condition was like

Object = Opportunity, Event Point = when record is updated

Event Condition = return isAttributeChanged('SalesStage')

2. go to opportunity records and make changes to sales stage field,  no emails were coming ; checked the workflow settings,
email notification = set for immediately execution,
field update = immediate update of one of the custom fields

3. but nothing was happening on opportunity update, modified sales stage field value

4. then changed workflow condition to

//return isAttributeChanged('SalesStage')
println("001 workflow condition - start")
println("Current SalesStage :"+ SalesStage)
if (isAttributeChanged('SalesStage'))
{
println("001 workflow condition - in if loop")
return true
}
else
{
println("001 workflow condition - in else loop")
return false
}
println("001 workflow condition - end")

5. enabled run time messages
6. go to an opportunity record, change the sales stage field value, click on save

7. no changes happened to the custom field

8. checked the soa composites, only composite fired is -- OpptyMgmtOpportunitiesAutoAssignmentComposite

9. tried changing sales stage field value from working to negotiation;
however on the run time messages, we see the below pintln statements :

Jun 03, 2016 09:23:37 AM UTC 15
Jun 03, 2016 09:23:37 AM UTC 001 workflow condition - start
Jun 03, 2016 09:23:37 AM UTC Current SalesStage :Working Opportunity
Jun 03, 2016 09:23:37 AM UTC 001 workflow condition - in else loop
Jun 03, 2016 09:23:37 AM UTC 001 workflow condition - start
Jun 03, 2016 09:23:37 AM UTC Current SalesStage :Working Opportunity
Jun 03, 2016 09:23:37 AM UTC 001 workflow condition - in else loop
Jun 03, 2016 09:38:22 AM UTC 001 workflow condition - start
Jun 03, 2016 09:38:22 AM UTC Current SalesStage :Working Opportunity
Jun 03, 2016 09:38:22 AM UTC 001 workflow condition - in else loop
Jun 03, 2016 09:38:31 AM UTC 15
Jun 03, 2016 09:38:31 AM UTC 001 workflow condition - start
Jun 03, 2016 09:38:31 AM UTC Current SalesStage :Waiting on PO
Jun 03, 2016 09:38:31 AM UTC 001 workflow condition - in else loop
Jun 03, 2016 09:38:31 AM UTC 001 workflow condition - start
Jun 03, 2016 09:38:31 AM UTC Current SalesStage :Waiting on PO
Jun 03, 2016 09:38:31 AM UTC 001 workflow condition - in else loop
Jun 03, 2016 09:39:34 AM UTC 15
Jun 03, 2016 09:39:41 AM UTC 15

10. not sure where from value 15 is coming ;
11. and always the loop is entering into else loop always not seeing it going to if loop

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms