You need to sign in to do that
Don't have an account?
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
)
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".
Here is complete documentation for Process Automation Specialist Superbadge
http://nawaleprakash.blogspot.in/p/blog-page.html
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
Please help me out with this one.
Related To Id - [Opportunity].Id
Assign Manager to User
Set Due Date = ([Opportunity].CloseDate + 180)
Set Related Id field value = Opportunity.Id
CASE(MOD([Opportunity].CloseDate + 180 - DATE(1900, 1, 7),7), 0, [Opportunity].CloseDate + 181, 6, [Opportunity].CloseDate + 182, [Opportunity].CloseDate + 180)
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)
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
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
Opportunity.AccountID - does not equal - global constant- null
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.
did you figure this out?
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
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'.
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?
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.
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.
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.
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
It resolved my issue.