function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jacques CONANJacques CONAN 

Automate Simple Business Processes with Process Builder

Hello,
My challenge for   Admin Intermediate > Lightning Flow  > Automate Simple Business Processes with Process Builder fails with errors.
Below is the email that I received.
Can someone help?
Thanks in advance.
Cheers.
Jacques
Here is the message I received from Trailhead.
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 0010X00004CxrMNQAZ; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save this record because the “keep contact addresses sync” process failed. Give your Salesforce admin these details. This error occurred when the flow tried to update records: FIELD_CUSTOM_VALIDATION_EXCEPTION: Contact must be in Account ZIP Code. You can look up ExceptionCode values in the SOAP API Developer Guide. Error ID: 138353171-26705 (1404636802): []

Here is the email I received from SalesForce:

Error element myRule_1_A1 (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Contact must be in Account ZIP Code. You can look up ExceptionCode values in the SOAP API Developer Guide.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Contact must be in Account ZIP Code. You can look up ExceptionCode values in the SOAP API Developer Guide.

Flow Details
Flow Name: keep_contact_addresses_sync
Type: Record Change Process
Version: 1
Status: Active
Org: looking4job (00D0X000000NIfC)

Flow Interview Details
Interview Label: keep_contact_addresses_sync-1_InterviewLabel
Current User: Jacques CONAN (0050X0000076z7s)
Start time: 7/2/2018 4:05 PM
Duration: 0 seconds

How the Interview Started
Jacques CONAN (0050X0000076z7s) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = 0010X00004CxrMNQAZ
myVariable_current = 0010X00004CxrMNQAZ

ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "7/2/2018 4:05 PM"

DECISION: isChangedDecision2_myRule_1_ShippingCity
Executed this outcome: isChangedRule_2_myRule_1_ShippingCity
Outcome conditions: and
1. {!myVariable_old} (0010X00004CxrMNQAZ) Is null false
2. {!myVariable_old.ShippingCity} (null) Does not equal {!myVariable_current.ShippingCity} (Staines)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision3_myRule_1_ShippingCountry
Executed this outcome: isChangedRule_3_myRule_1_ShippingCountry
Outcome conditions: and
1. {!myVariable_old} (0010X00004CxrMNQAZ) Is null false
2. {!myVariable_old.ShippingCountry} (null) Does not equal {!myVariable_current.ShippingCountry} (UK)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision4_myRule_1_ShippingGeocodeAccuracy

DECISION: isChangedDecision5_myRule_1_ShippingLatitude

DECISION: isChangedDecision6_myRule_1_ShippingLongitude

DECISION: isChangedDecision7_myRule_1_ShippingState
Executed this outcome: isChangedRule_7_myRule_1_ShippingState
Outcome conditions: and
1. {!myVariable_old} (0010X00004CxrMNQAZ) Is null false
2. {!myVariable_old.ShippingState} (null) Does not equal {!myVariable_current.ShippingState} (Middlesex)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision8_myRule_1_ShippingStreet
Executed this outcome: isChangedRule_8_myRule_1_ShippingStreet
Outcome conditions: and
1. {!myVariable_old} (0010X00004CxrMNQAZ) Is null false
2. {!myVariable_old.ShippingStreet} (null) Does not equal {!myVariable_current.ShippingStreet} (1 Street)
Logic: All conditions must be true (AND)

DECISION: isChangedDecision9_myRule_1_ShippingPostalCode
Executed this outcome: isChangedRule_9_myRule_1_ShippingPostalCode
Outcome conditions: and
1. {!myVariable_old} (0010X00004CxrMNQAZ) Is null false
2. {!myVariable_old.ShippingPostalCode} (null) Does not equal {!myVariable_current.ShippingPostalCode} (TW18 3AG)
Logic: All conditions must be true (AND)

DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: or
1. {!isChangedRule_2_myRule_1_ShippingCity} (true) Equals true
2. {!isChangedRule_3_myRule_1_ShippingCountry} (true) Equals true
3. {!isChangedRule_4_myRule_1_ShippingGeocodeAccuracy} (false) Equals true
4. {!isChangedRule_5_myRule_1_ShippingLatitude} (false) Equals true
5. {!isChangedRule_6_myRule_1_ShippingLongitude} (false) Equals true
6. {!isChangedRule_7_myRule_1_ShippingState} (true) Equals true
7. {!isChangedRule_8_myRule_1_ShippingStreet} (true) Equals true
8. {!isChangedRule_9_myRule_1_ShippingPostalCode} (true) Equals true
Logic: One condition must be true (OR)

RECORD UPDATE: myRule_1_A1
Find all Contact records where:
AccountId Equals {!myVariable_current.Id} (0010X00004CxrMNQAZ)
Update the records’ field values.
MailingCity = {!myVariable_current.ShippingCity} (Staines)
MailingCountry = {!myVariable_current.ShippingCountry} (UK)
MailingGeocodeAccuracy = {!myVariable_current.ShippingGeocodeAccuracy} (null)
MailingLatitude = {!myVariable_current.ShippingLatitude} (null)
MailingLongitude = {!myVariable_current.ShippingLongitude} (null)
MailingPostalCode = {!myVariable_current.ShippingPostalCode} (TW18 3AG)
MailingState = {!myVariable_current.ShippingState} (Middlesex)
MailingStreet = {!myVariable_current.ShippingStreet} (1 Street)
Result
Failed to update records that meet the filter criteria.

Error Occurred: The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Contact must be in Account ZIP Code. You can look up ExceptionCode values in the SOAP API Developer Guide.---The flow tried to update these records: null. This error occurred: FIELD_CUSTOM_VALIDATION_EXCEPTION: Contact must be in Account ZIP Code. You can look up ExceptionCode values in the SOAP API Developer Guide.


Salesforce Error ID: 138353171-26705 (1404636802)
 
Best Answer chosen by Jacques CONAN
Chandra@AtlantaChandra@Atlanta
Hi,

It looks the validation rule for the contacts object is still active from your previous excercise, so please deactive that validation rule before working on excercise.

By Falcon100 (if this useful, please give feedback)

All Answers

Chandra@AtlantaChandra@Atlanta
Hi,

It looks the validation rule for the contacts object is still active from your previous excercise, so please deactive that validation rule before working on excercise.

By Falcon100 (if this useful, please give feedback)
This was selected as the best answer
Jacques CONANJacques CONAN
Right on the spot Falcon100. Thanks.
Anand DolasAnand Dolas
Hello,  I am trying to create account with REST API for the challenge.
Executing POST method on account object,

/services/data/v47.0/sobjects/account

{
"Name": "Blackbeards Grog Emporium",
"description": "The finest grog in the seven seas."
}



However getting below error,

CANNOT_EXECUTE_FLOW_TRIGGER

message: We can't save this record because the “contact addresses sync” process failed. Give your Salesforce admin these details. <b>An unhandled fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Error ID: 588943896-195845 (1867836330)
errorCode: CANNOT_EXECUTE_FLOW_TRIGGER

Please help.