You need to sign in to do that
Don't have an account?

TrailHead - Automating Processes with the Lightning Process Builder - CANNOT_EXECUTE_FLOW_TRIGGER
Hi there, I 'm trying to complete the "Automating Processes with the Lightning Process Builder" challenge in TrailHead but I get the following error :
Encountered unhandled fault when running process Update_contact_adress/
301240000004FXO exception by user/organization: 00D24000000JsNt/{4}
The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.
caused by element : FlowRecordUpdate.myRule_1_A1
caused by: The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.
Salesforce Error ID: 490660201-42718 (736882147)
Any idea what could be could wrong ?
Encountered unhandled fault when running process Update_contact_adress/
301240000004FXO exception by user/organization: 00D24000000JsNt/{4}
The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.
caused by element : FlowRecordUpdate.myRule_1_A1
caused by: The flow failed to access the value for myVariable_current.Account.ShippingCountry because it hasn't been set or assigned.
Salesforce Error ID: 490660201-42718 (736882147)
Any idea what could be could wrong ?
- You are editing/creating the lightning process in Process Builder?
- You are saving an account record in the UI?
- You are clicking on the "Check Challenge" button in Trailhead?
If you can provide any further information, specifics, screen shots of your process, it will help us determine if this is a problem with process builder or if this is something the Trailhead team need to address.Much thanks!
All Answers
Thanks for the information. Our internal team will look into this and will get back to you.
Thanks,
Pratik
- You are editing/creating the lightning process in Process Builder?
- You are saving an account record in the UI?
- You are clicking on the "Check Challenge" button in Trailhead?
If you can provide any further information, specifics, screen shots of your process, it will help us determine if this is a problem with process builder or if this is something the Trailhead team need to address.Much thanks!
It's actually happening when hitting the "Check challenge" button.
It's working when I interactively create or edit a contact.
Please find below screenshoots of the process details :
Thanks for your help.
The first is you solved the challenge incorrectly.
The second, is the Salesforce error.
The first can be fixed. And I think I'm going to revise the challenge wording to make this more clear. I won't just give it away, unless you want me too.
So here is a new try at the wording:
Does that make it more clear?
As for the Salesforce error, it is a bit strange I can't reproduce it. It sounds like it is objecting to copying a null value. I would think it would simply ignore an assignment like that. I'd be curious to see if you can fix the challenge and maybe the error will clear? Do you have any validations or special logic defined for any of these fields in this org by chance?
I had it a sencond try and it succeded !
Thanks a lot for your help.
I'm doing this chapter and got the same error that E GUICHARD got it.
But his solution started with a listener on Contact Object, but the challenger ask to fire this trigger when I have changes on Account object.
How about create one process for each field ? I could test the criteria if the source field is not null and not occur a like NullPointer error.
Thank you a lot for this amazing support.
Augusto
There I need to do a validation rule that Contacts must be in Account ZIP Code.
I only inactive this validation rule, and retake the challenger on currently module and its ok.
I suggest to change the challenger on Validation Rule module, to not affect or disturb to solve this currently exercise.
Best,
Augusto
If I follow the process trigger on Account object, the process works fine i.e. when accounts' address fields are changed and then contacts need to reflect the same addresses. But what if the use case is when I try to create a new contact to see if it also gets Accounts' addresses, it is throwing me error as shown below. It seems, the process may have to accomodate several more criterias to solve this or will we have to create another new process for same?
Workflow Action Failed to Trigger Flow
The record couldn’t be saved because it failed to trigger a flow.
A flow trigger failed to execute the flow with version ID 301d0000000PMku.
Contact your administrator for help.
Click here to return to the previous page.
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, The record couldn’t be saved because it failed to trigger a flow.
A flow trigger failed to execute the flow with version ID 301d0000000PMku.
Contact your administrator for help.: []
"Unfortunately, there was a problem. Please try again. If the problem continues, contact Salesforce Customer Support with the error ID shown here and any other related details. Error ID: 1178063101-3644 (1467034186)"
I'm not sure why.
From the debug logs what I found is we are mapping incorrect fields
We have to map below fields only.
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, The record couldn’t be saved because it failed to trigger a flow.
A flow trigger failed to execute the flow with version ID 30161000000Cw7B.
Contact your administrator for help.: []
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, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30128000000PRYr. Contact your administrator for help.: []
.
.
have a solution to this erorr plz reply....
Hello everyone!
Today i actually spent all day to solve this stupid problem)
First of all thanks everyone who tried to help each one with this error.
If you deactivate the validation rule created from a previous challenge, and this didn't help
the next step for you!
Can you make sure that:
1. All five parts of the Shipping Address on Accounts are covered under the criteria.
2. For the Conditions part , you have chosen AND.
3. All five parts of the Mailing Address on Contacts are covered under the Update records action and the Type us Reference for all field values.
Also a little image Hint!
This is for each one criteria position ((Street, City, State, Post Code, Country))
Good luck, and have fun!
Learned a lot from it. Andrew's answer above is the same as how I passed it!
IF([Account].ShippingCity != '', [Account].ShippingCity,' ')
I have a follow up question though. How would i know that the process is working? is there a log that i can check? or will i only know if it's working by checking the Contact Address if the Account Address is updated?
Thank you for your amazing help. Saleforce people rocks. (i came from a slightly primitive CRM system and the response here is AMAZING.. :)
Instead of "Conditions are met" I used "Formula evaluates to true" and put in a formula using ISCHANGED() on the various fields, separated by the OR operator (||). This should be equivalent to listing each field and using the "is changed" operator, type=Boolean, and value=True (with the OR condition radio button.
Thanks for all your help!
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: Update failed. First exception on row 0 with id 0013700000AqWvpAAF; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 30137000000HDmn. Contact your administrator for help.: []
Here's what I have -
My conditions are set to OR, I've used AND and still same problem
I have it for each one (Street, City, Stage, PostalCode, Country).
Any help would be greatly appreciated!
You should be getting an email when the error occurs, if you check that it will have more information as to what exactly is occuring.
I had this issue and it was caused by a null value in one of the fields. Apparently if it checks a field and it is null it throws an error.
Anyhow if you see my solution you can add a check for a null condition and if it is null just write '' to the field to remove the null condition if that is the problem you are having.
An error occurred at element myRule_1_A1 (FlowRecordUpdate).
UPDATE --- UPDATE FAILED --- ERRORS : (STRING_TOO_LONG) Mailing Zip/Postal Code: data value too large: [Account].ShippingPostalCode (max length=20),
If you do it the other way around you may have to go through and truncate a bunch of data.
Of course SF error messages can frequantly be cryptic at best.........do you have any other validation rules on the fields?
Please see Andrew's note above. Point 3 is how it must be done "All five parts of the Mailing Address on Contacts are covered under the Update records action and the Type as Reference for all field values". Check the image in his mail. Make the changes as suggested. You will clear this.
Bhanu
Check screenshot below.
Bhanu
It Finally Worked for me..
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: Update failed. First exception on row 0 with id 0013600000G1vNIAAZ; first error: FIELD_INTEGRITY_EXCEPTION, There's a problem with this country, even though it may appear correct. Please select a country from the list of valid countries.: [ShippingCountry]
I thought it will get fixed as it says There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException:
But this is third day and I am geeting same message.
any idea what is the problem?
Challenge Not yet complete... here's what's wrong:
An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated.
Thanks
?
what should I do
try to deactivare not only any validation rule but also the triggers on contact and/or on account.
Make sure all Field are update with the following below: (Street, City, Stage, PostalCode, Country)
Hey! Just a friendly notification.
The challenge at the bottom of the process builder section asks to trigger a change in contacts addresses when account address is changed. I tried the task and kept getting it wrong. Turns out, the logic to be "correct in the challenge" is that all 5 pieces of the address need to have been changed. This is clearly not the ideal situation - if my business moves offices, it will likely remain in the same country, more often than not in the same state, occasionally in the same zipcode and city, and then obviously usually a different street address. I initially put the five criteria using OR logic.. incase the country was the same, etc. I didn't complete the challenge until I put the logic as AND for all 5. I think it is better to use OR, but I don't want to teach y'all how to do your job.
Hope this is helpful!
Best,
Nick Budincich
An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated.
Order is same as trail head order still getting the error
Order is same and validation rule is not active and i tried both AND and OR
still getting the above error
See post from February 6, 2016. You have to check each field individually - so you end up with one criteria node, and one record update PER field.
At first I refused to admit that that was the correct way to handle this, but it is. If any of the fields you are trying to map are null on the parent record (in this case the Account) you will get the error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow.
Can you please help me out with this error
Error element myWaitEvent_myWait_myRule_3_event_0_SA1 (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3017A0000004X7T. Flow error messages: 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. Contact your administrator for help.. For details, see API Exceptions.
This report lists the elements that the flow interview executed. The report is a beta feature.
We welcome your feedback on IdeaExchange.
Flow Details
Flow Name: Accounting_Process_When_PO_Status_is_Closed_Issued_to_Vendor
Type: Workflow
Version: 5
Status: Active
Flow Interview Details
Interview Label: Accounting_Process_When_PO_Status_is_Closed_Issued_to_Vendor-5_InterviewLabel
Current User: Siva Kishore Nandyala (0057A000001aFk1)
Start time: 6/1/2017 9:26 AM
Duration: 3,575 seconds
How the Interview Started
Siva Kishore Nandyala (0057A000001aFk1) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = a4R7A000000S7CmUAK
myVariable_current = a4R7A000000S7CmUAK
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "6/1/2017 9:26 AM"
DECISION: myPreWaitDecision_myWait_myRule_5
ASSIGNMENT: myWaitAssignment_myWait_myRule_5
{!cancelWaits} Add myWait_myRule_5
Result
{!cancelWaits} = "[myWait_myRule_5]"
DECISION: myPreWaitDecision_myWait_myRule_3
Executed this outcome: myPreWaitRule_myWait_myRule_3
Outcome conditions: and
1. {!myVariable_current.Advance_Payment_Required__c} (false) Equals false
2. {!myVariable_current.Status__c} (Closed - Issued to Vendor) Equals Closed - Issued to Vendor
3. {!myVariable_current.PO_Final__c} (false) Equals false
4. {!myVariable_current.Invoice_Included__c} (false) Equals false
5. {!myVariable_current.Employee_Reimbursement__c} (false) Equals false
Logic: All conditions must be true (AND)
DECISION: myDecision
DECISION: myDecision2
Executed this outcome: myRule_3
Outcome conditions: and
1. {!myVariable_current.Advance_Payment_Required__c} (false) Equals false
2. {!myVariable_current.Status__c} (Closed - Issued to Vendor) Equals Closed - Issued to Vendor
3. {!myVariable_current.PO_Final__c} (false) Equals false
4. {!myVariable_current.Invoice_Included__c} (false) Equals false
5. {!myVariable_current.Employee_Reimbursement__c} (false) Equals false
Logic: All conditions must be true (AND)
DECISION: myRule_3_pmetdec
WAIT: myWait_myRule_3
The waiting conditions for the following wait events were met.
Wait Event: myWaitEvent_myWait_myRule_3_event_0
Waiting Conditions:
1. {!myWaitEvent_myWait_myRule_3_event_0_postActionExecutionVariable} (false) Equals false
Logic: All conditions must be true (AND)
Event Type: Alarm: Absolute Time
Base Time = {!myVariable_waitStartTimeVariable} (6/1/2017 9:26 AM)
Offset Unit = Hours
Offset Number = 1
Result
Started waiting at 6/1/2017 9:26 AM.
The interview started waiting at 6/1/2017 9:26 AM.
The interview was resumed at 6/1/2017 10:26 AM by Siva Kishore Nandyala (0057A000001aFk1).
WAIT: myWait_myRule_3
Wait event myWaitEvent_myWait_myRule_3_event_0 occurred.
The following values from the event were assigned to flow variables.
None.
RECORD UPDATE: myWaitEvent_myWait_myRule_3_event_0_SA1
Find all Purchase_Order__c records where:
Id Equals {!myVariable_current.Id} (a4R7A000000S7CmUAK)
Update the records’ field values.
PO_Final__c = true
Result
Failed to update records that meet the filter criteria.
Error Occurred: The flow tried to update these records: null. This error occurred: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 3017A0000004X7T. Flow error messages: 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. Contact your administrator for help.. For details, see API Exceptions.
Thanks Andrew Lokotosh, I followed the steps as mentioned (screenshot gives a clear understanding) and solved the challenge.
We accept both AND and OR functions for this challenge. I just ran through it now with the OR criteria and passed.
You are editing/creating the lightning process in Process Builder
You are saving an account record in the UI - SUCCESS
You are clicking on the "Check Challenge" button in Trailhead- BELOW ERROR
Error:
Challenge Not yet complete... here's what's wrong:
An update to an account record failed to update the mailing address fields of all child contact records. Make sure that the process is correct and that it is activated.
I am getting the below error. I tried in both Classic and Lightning environment. But, getting the following error while clicking the "Check Challenge" button. Please help
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_INSERT_UPDATE_ACTIVATE_ENTITY, ExampleTrigger: execution of AfterInsert caused by: line 5, column 22: Non static method cannot be referenced from a static context: void EmailManager.sendMail(String, String, String): []
I understand there is a trigger activated on Contact for one of the previous challenge like below. But, the expectation for this trigger is when a record is inserted in Account, it should affect the Contact record. In below trigger, the condition is only on the Contact Object. So, not sure why it throws the error. I get the error in my Developer Console also. Pls write me how to deactivate the trigger either in Classic or Lightning Experience. Should I delete this trigger inorder to proceed with the current Challenge ?
trigger ExampleTrigger on Contact (after insert, after delete) {
if (Trigger.isInsert) {
Integer recordCount = Trigger.New.size();
// Call a utility method from another class
EmailManager.sendMail('mymaildID', 'Trailhead Trigger Tutorial',
recordCount + ' contact(s) were inserted.');
Update Records On Contact