+ Start a Discussion
Odd Christopher Skarbø 10Odd Christopher Skarbø 10 

Process Automation Specialist Superbadge - Step 5

Hi,

I have followed several different solutions to this step, but still, I am recieving this error: 

"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: FIELD_CUSTOM_VALIDATION_EXCEPTION, error: [Name]"

Has anyone got any ideas on how to solve this? 

Please let me know what you need of information from this. I have the following validation rules on opportunity object :
"Approved field validation": 
AND( 
ISCHANGED(Approved__c), 
OR( 
$Profile.Name <> 'System Administrator', 
$Profile.Name <> 'Custom: Sales Profile' 

)

High Value Opportunity Validation:

AND( 
IsClosed = TRUE, 
Amount > 100000, 
Approved__c <> TRUE 
)

Odd Christopher Skarbø 10Odd Christopher Skarbø 10

Also: 

When I try a create a test opportunity in prospecting stage, the flow works fine, so it creates a Task for "Send Marketing Materials".

Prakash NawalePrakash Nawale
Hi All,

Here is complete documentation for Process Automation Specialist Superbadge
http://nawaleprakash.blogspot.in/p/blog-page.html
Bareera NoorBareera Noor
Hello Parkash,
I need help with the Process Automation Superbadge Challenge # 5.
Requirements : Automate Opportunities
Following the business requirements, create a process to alert the finance group and create tasks for account owners at appropriate times during the sales process. (Note: for the purpose of this superbadge, pretend “Integration User” is the finance group.) Make sure that your processes schedule robot setup dates and submit opportunities for approval.
For the purpose of approvals, assign Nushi Davoud as your manager and make sure your approval process automatically sends requests to the opportunity owner’s manager. Notify the opportunity owner when an opportunity is approved or rejected.

Upon Activating the process I am getting followoing error message
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: FIELD_CUSTOM_VALIDATION_EXCEPTION, You need Manager Approval: []

When I deactivated the process I got following error message
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'.​
Here is the snapshot of what I have done 
User-added image

User-added image
Please help me out with this one.
 
Bareera NoorBareera Noor
When I test the process it works in my org. It did create the task wit the subject " Send Marketing Materials". Upon checking the challenge I am still getting the error message.
 
Pavlo ShchurPavlo Shchur
Priority - High,
Related To Id - [Opportunity].Id
Prakash NawalePrakash Nawale
Hi Bareera Noor,

Assign Manager to User
Set Due Date = ([Opportunity].CloseDate + 180)
Set Related Id field value = Opportunity.Id

 
Pavlo ShchurPavlo Shchur
Hi everyone, instead of using  ([Opportunity].CloseDate + 180), use the following code.
CASE(MOD([Opportunity].CloseDate + 180 - DATE(1900, 1, 7),7), 0, [Opportunity].CloseDate + 181, 6, [Opportunity].CloseDate + 182, [Opportunity].CloseDate + 180)
Nicolas ScarrciNicolas Scarrci
I resolved the CUSTOM_FIELD_VALIDATION_ERROR by disabling the account name validation rule that I created during step 2.

I also kept getting the did not submit for approval error which turned out to be because my process evaluated the actions for new opportunities and then stopped (whereas while testing I was updating an existing opportunity)
veena penugonda 3veena penugonda 3
like many of you i face the same challenge :
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'.

I went though comments and made my process flow look same but could not resolve issue please guide me
 
veena penugonda 3veena penugonda 3
User-added image
Bareera NoorBareera Noor
Hello Veena,
I was getting this error when my process was deactivated make sure your process is activated.  Also please refer to this blog
https://trailheadbaby.blogspot.com/search/label/Process%20Automation
veena penugonda 3veena penugonda 3
@ Bareera I made my process active and went through the blog but still unable to resolve with the same same error.I tried deleting and recreating the process but still facing the error
Fenil Mehta 13Fenil Mehta 13
in prospecting u nedd to add
Opportunity.AccountID - does not equal - global constant- null
John Albano 7John Albano 7
Hi,
I am working on the Process Automation Specialist superbadge.  I am getting this error on step 5 when I check the challenge:

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: FIELD_CUSTOM_VALIDATION_EXCEPTION, Verify stage name.: []

Also when I check the challenge I get an "Opportunity for Approval" email with a link.  But when I click the link I get this error message:

 Looks like there's a problem.
We couldn't find the record you're trying to access. It may have been deleted by another user, or there may have been a system error. Ask your administrator for help.

Any help would be greatly appreciated.
Esten ØienEsten Øien
Hello, Odd Christopher,
did you figure this out?
Argenis Perez 8Argenis Perez 8
I m receiving the following error message

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: FIELD_CUSTOM_VALIDATION_EXCEPTION, NA: []


Any help will be appreciated
Argenis Perez 8Argenis Perez 8
I followed the steps on the following webpage 
https://techevangel.com/2018/06/02/superbadge-advanced-apex-specialist-2/
But still i am receiving the following error message:

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'.
snehal kansesnehal kanse
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 Approval Process2” 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: 995536898-15969 (1571110496): []

Mail is:-
Error element myRule_6_A1 (FlowActionCall).
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.

Flow Details
Flow API Name: opportunity_Approval_Process
Type: Record Change Process
Version: 3
Status: Active
Org: Exceptionaire technology (00D2w000004Lyah)

Flow Interview Details
Interview Label: opportunity_Approval_Process-3_InterviewLabel
Current User: Snehal Kanse (0052w000003KQgo)
Start time: 3/28/2020, 3:27 AM
Duration: 0 seconds

How the Interview Started
Snehal Kanse (0052w000003KQgo) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = null
myVariable_current = Opportunity (0062w000002Tl43AAC)

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} (0012w000007OiVEAA0) 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.AccountId} (0012w000007OiVEAA0) Does not equal null
2. {!myVariable_current.StageName} (Negotiation/Review) Equals Prospecting
3. {!myVariable_current.Account.Type} (Customer - Channel) Equals Prospect
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} (0062w000002Tl43AAC)
comment = null
processDefinitionNameOrId = Discount_Greater_than_10000
skipEntryCriteria = false

Error Occurred: 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.

Please help?
ColbridgeColbridge
Hi Christopher, or anyone else,

If any of you are getting the error "System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the..."

Make sure you ACTIVATE your APPROVAL PROCESS as well - To activate the approval process, you have to make sure you have atleast one Approval Step defined - you can give a name, say Step1 and make the assigned approver, Manager.

I was able to pass the challenge by doing this, if you don't have any other issues - Hope this helps. Thanks.
Kamaal Ahmad UsmaniKamaal Ahmad Usmani
Thnx @Colbridge, this worked for me.
RAHUL YADUVANSHIRAHUL YADUVANSHI
i am getting the error 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 “Automate Opportunities” process failed. Give your Salesforce admin these details. missing required field: [nextApproverIds] Error ID: 1362180700-225218 (1571110496): [] Please any one help me for that.
RAHUL YADUVANSHIRAHUL YADUVANSHI
i am getting the error 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 “Automate Opportunities” process failed. Give your Salesforce admin these details. missing required field: [nextApproverIds] Error ID: 1362180700-225218 (1571110496): [] Please any one help me for that.
Marcos Cruz 30Marcos Cruz 30

Guys, this worked for me:

Colbridge
Hi Christopher, or anyone else,

If any of you are getting the error "System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the..."

Make sure you ACTIVATE your APPROVAL PROCESS as well - To activate the approval process, you have to make sure you have atleast one Approval Step defined - you can give a name, say Step1 and make the assigned approver, Manager.

I was able to pass the challenge by doing this, if you don't have any other issues - Hope this helps. Thanks.

Go to Approval Step (Step 1) and assign User:Nushi Davoud as approver

Soumy Mangal 5Soumy Mangal 5
Hi Marcos Cruz 30, I also faced the same issue and solved by assigning proper manager name and deactivated previously created validation rules in opportunity.
Julián Vanegas LesmesJulián Vanegas Lesmes
Hi Marcos Cruz 30, thanks for your help, I changed the Approval Process and I added to Nushi Davoud in Approval Steps  and I solved the error. 
Mohammed Mehran R 5Mohammed Mehran R 5
Please go through this it will definitely help you - https://www.youtube.com/watch?v=Sy9-z-YXY7o
SouravGhosh_sfdcSouravGhosh_sfdc
Make sure if you have any other process builder on opportunity object, make all of them as deactivated.

It resolved my issue.
Parthajit BarmanParthajit Barman
I was having the same error but it was because I set the minimum amount for approval to be 1000000 instead of 100000. After I resolved it, I was able to complete the challenge.