Hopefully I have given enough detail / screen prints from someone to spot my issue quickly and point me in the right direction.
Am getting an error on a new process I have created.
The process is triggered on the updating of a new checkbox field on the Contacts object.
When the box is checked, a record is to be written to a custom object.
The custom object has a lookup field to the Contact object where I want the ContactID that the update has happened on to be written to the custom object.
This is the error log that has been sent to me by email:
Flow Details
Flow Name: Trigger_NPS_Survey
Type: Record Change Process
Version: 2
Status: Active
Flow Interview Details
Interview Label: Trigger_NPS_Survey-2_InterviewLabel
Current User: Patrick
Start time: 22/02/2018 12:30
Duration: 5 seconds
How the Interview Started
Patrick started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = 0032600000ZrnVwAAJ
myVariable_current = 0032600000ZrnVwAAJ
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "22/02/2018 12:30"
DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions: and
1. {!formula_myRule_1} (true) Equals true
Logic: All conditions must be true (AND)
RECORD CREATE: myRule_1_A1
Create one GetFeedback_Survey_Response__c record where:
AccountID__c = {!myVariable_current.Account.Id} (0012600000gNcKAAA0)
ContactID__c = {!myVariable_current.Id} (0032600000ZrnVwAAJ)
Name = NPS Survey
OwnerId = {!myVariable_current.LastModifiedById} (005b0000004lDPoAAM)
Send_Reminder_Date__c = {!formula_2_myRule_1_A1_3686684934} (28 February 2018)
Survey_Status__c = Pending
Trigger_Date_Check_Date__c = {!formula_3_myRule_1_A1_4448631853} (22 February 2018)
Trigger_Date__c = {!formula_4_myRule_1_A1_9314018864} (22 February 2018)
Result
Failed to create record.
Error Occurred: This error occurred when the flow tried to create records: CANNOT_EXECUTE_FLOW_TRIGGER: The record couldn’t be saved because it failed to trigger a flow. The flow couldn't find the myVariable_old resource. Contact your administrator for help.. For details, see API Exceptions.
This is the checkbox (field Trigger NPS) on the Contacts object:
This is the process definition that it triggered:
These are the create record values I am using
Is there some reason why it says it can't find and then pass the ContactID from the record being updated to the new Custom object record?
This is the ContactID field definition from the Custom object
Any help greatly received.
Kind Regards,
Patrick.
2 réponses
The best way to figure this out is to turn on the Debug Log and then try it again. The Debug Log will have specific details about what went wrong - not just the generic "it broke" message from the email.