+ Start a Discussion
sai manojsai manoj 

Process Automation Specialist-Step-5 Automate Opportunities Getting #Error

Continue From Recent Post
For Criteria-3 Conditions are
User-added image
For Criteria-3 i invoked approval process
User-added imagehere my approval process design
User-added image
here my 
Entry CriteriaOpportunity: AmountEQUALS 100000
Record EditabilityAdministrator ONLY
Allow Submitters to Recall Approval Requests : unchecked
Approval Assignment Email TemplateSALES: Opportunity Needs Approval
Initial SubmittersOpportunity Owner

Initial Submission Actions 
Initial  Record Lock--Lock the record from being edited
for this i taken filed update
Name--Awaiting Approval  
Unique Name--- Awaiting_Approval  

Object---Opportunity  
Field to UpdateOpportunity: Stage
Field Data TypePicklist
Re-evaluate Workflow Rules after Field Change--uncheck
New Field Value--Awaiting Approval

Approval Steps
Name -opportunity owner's manager  
Assigned Approver---Manager
Reject Behavior--Final Rejection

Final Approval Actions 
for this i have taken 2 filed updates and 1 email alert
Field Update one 
Name---Approved  
Unique Name---Approved  
Object---Opportunity  
Field to UpdateOpportunity: Stage
Field Data Type---Picklist
Re-evaluate Workflow Rules after Field Change---unchecked
New Field Value---Closed Won
Field Update Two
NameApproved check  
Unique Name---Approved_check  
Object---Opportunity  
Field to Update---Opportunity: Approved
Field Data Type---Checkbox
Re-evaluate Workflow Rules after Field Change--unchecked
New Field Value---True
Email Alert
Description--Opportunity Approved
Unique Name--Opportunity_Approved
Email Template---Sales: Opportunity Approval Status Email
-Object---Opportunity
From Email Address----Current User's email address  
Recipients---Opportunity Owner

Final Rejection Actions
one Field Update and one Email Alert
 Name---Nego  
Unique Name---Nego  
Object----Opportunity  
Field to UpdateOpportunity: Stage
Field Data Type---Picklist
Re-evaluate Workflow Rules after Field Change- uncheck
New Field Value---Negotiation/Review
Email Alert - 
DescriptionOpportunity Rejected
Email TemplateSales: Opportunity Approval Status Email
Unique Name--Opportunity_RejectedObjectOpportunity
From Email Address---Current User's email address  
Recipients---Opportunity Owner

For Criteria-4 conditions are
User-added image
For criteria-4 i invoked Email alert and Create Robot setup
User-added image

Please Help guys i doing This from 4 days 

Thanks & Regards
Sai Manoj
Meghna Vijay 7Meghna Vijay 7
Hi,
What is the error that you are getting?
 
sai manojsai manoj
Hi @Meghna Vijay 7
i Stuck at Process Automation Specialist-Step-5  Automate Opportunities
I Getting Error While Process Builder has Activated
Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Opportunity PB” process failed. Give your Salesforce admin these details. An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Error ID: 963069694-58213 (1684581515): []
Close errors

i getting Error while Process Builder has deactivated
Challenge Not yet complete... here's what's wrong: 
A new Opportunity with a 'Prospecting' stage for a 'Prospect' Account did not successfully create a Task for the Account owner with the Subject 'Send Marketing Materials'.
Close errors
Meghna Vijay 7Meghna Vijay 7
In your registered mail id of your dev org from which you login you may be getting a mail like Apex Execution Failed , scroll down to the very bottom and you'll see the error.
sai manojsai manoj
Hi @Meghna Vijay7 please refer this to see my post regarding error 
https://developer.salesforce.com/forums/ForumsMain?id=9062I000000Qw58QAC
Let me know
sai manojsai manoj
Finally I completed SuperBadge!!!!!!!!!!!!
ksarer Vanita Vanitaksarer Vanita Vanita
Hi Everyone, 
I am stuck with step 5 
keep on getting thsi error 
Challenge Not yet complete... here's what's wrong:
A new Opportunity with a 'Prospecting' stage for a 'Prospect' Account did not successfully create a Task for the Account owner with the Subject 'Send Marketing Materials
Action Name*
More InformationThis name appears in the canvas to help you distinguish this action from the other actions in the process.
Record Type*
Task
Set Field Values
Field*Type*Value*1 Field
Due Date Only1 Type
DateField ReferenceGlobal ConstantFormula1 Value
TODAY() + 7Build a formula...TODAY() + 7
2 Field
Assigned To ID2 Type
IDField ReferenceGlobal ConstantFormulaUser2 Value
[Opportunity].Account.OwnerId
Find a field...[Opportunity].Account.OwnerId
3 Field
Priority3 Type
PicklistField ReferenceGlobal ConstantFormula3 Value
Select OneHighNormalLow
4 Field
Status4 Type
PicklistField ReferenceGlobal ConstantFormula4 Value
Select OneNot StartedIn ProgressCompletedWaiting on someone elseDeferred
5 Field
Subject5 Type
StringField ReferenceGlobal ConstantFormula5 Value
6 Field
Related To ID6 Type
IDField ReferenceGlobal ConstantFormula6 Value
[Opportunity].Id
Find a field...[Opportunity].Id
 
Bhawna MehrotraBhawna Mehrotra
@Sai Manoj please help .. i am getting the same error again........

There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Opportunity Approval” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Assigned To ID: id value of incorrect type: 0012w000002saNlAAI. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 1450013916-139492 (-1779685733): []
Close errors
Sridevi PonnuchamySridevi Ponnuchamy
Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Opportunity Process” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: Assigned To ID: id value of incorrect type: 0016g00000AONPAAA5. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 26849049-3617 (-1779685733): []

@sai manoj, same error.. could u please help..
Pallavi D 22Pallavi D 22
Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Opportunity Process Buliding” process failed. Give your Salesforce admin these details. This approval request requires the next approver to be determined by the Manager field. This value is empty. Please contact your administrator for more information. Error ID: 1184655518-93377 (1571110496): []

can anyone help me with this error plzz

 
Pratiksha InamkePratiksha Inamke
Hi Pallavi
     Im not sure if you found the solution or not .I was also facing same issue.You can solve it by following these steps
1)Go to user
2)Edit
3)find manager field and choose Nushi 
4) And Save
JeevanKumarJeevanKumar
Hey Can soem one help with this.. I got stuck at this stage for the past few hours
"
Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “Opportunities Automation” process failed. Give your Salesforce admin these details. No applicable approval process was found. Error ID: 1759611139-97402 (1571110496): []

------------------------------------------
and my Email ERROR Details
-------------------------------------------


Error element myRule_6_A1 (FlowActionCall).
No applicable approval process was found.

Flow Details
Flow API Name: Opportunities_Automation
Type: Record Change Process
Version: 4
Status: Active
Org: Canada Drives (00D5w000000XRp7)

Flow Interview Details
Interview Label: Opportunities_Automation-4_InterviewLabel
Current User: Jeevan Kumar (0055w00000Ah6SN)
Start time: 6/23/2020, 4:05 AM
Duration: 0 seconds

How the Interview Started
Jeevan Kumar (0055w00000Ah6SN) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = Opportunity (0065w000023qIyqAAE)

DECISION: myDecision
Skipped this outcome because its conditions weren't met: myRule_1
Outcome conditions:
1. {!myVariable_current.Account.Type} (Customer - Channel) Equals Customer - Direct
2. {!myVariable_current.AccountId} (0015w00002Dxw7cAAB) Does not equal null
Logic: All conditions must be true (AND)

Default outcome executed.

DECISION: myDecision2
Skipped this outcome because its conditions weren't met: myRule_3
Outcome conditions:
1. {!myVariable_current.Account.Type} (Customer - Channel) Equals Prospect
2. {!myVariable_current.AccountId} (0015w00002Dxw7cAAB) Does not equal null
3. {!myVariable_current.StageName} (Negotiation/Review) Equals Prospecting
Logic: All conditions must be true (AND)

Default outcome executed.

DECISION: myDecision5
Outcome executed: myRule_6
Outcome conditions:
1. {!myVariable_current.StageName} (Negotiation/Review) Equals Negotiation/Review
2. {!myVariable_current.Amount} (101,000) Greater than 100,000
Logic: All conditions must be true (AND)

SUBMIT FOR APPROVAL: myRule_6_A1
Inputs:
objectId = {!myVariable_current.Id} (0065w000023qIyqAAE)
comment = null
processDefinitionNameOrId = Opportunity_Prospecting
skipEntryCriteria = false

Error Occurred: No applicable approval process was found.