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
Lionel KamdemLionel Kamdem 

Flow Is Not Firing Correctly

Hello 

I have a Flow that is producing an error everytime it fires. 

It's very basic at it's updates all the Opportunities of a related Record. 

Here is the criteria for the Flow Update: 

User-added image

This Is the error I am getting: 

Error element Update_Oppty_With_Matching_Account_ID (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: FIELD_FILTER_VALIDATION_EXCEPTION: The contact needs to be a contact associated with the account.. You can look up ExceptionCode values in the SOAP API Developer Guide.

Flow Details
Flow API Name: Update_Oppty_Owner_On_Renewal_And_Quote_To_CSM
Type: Autolaunched Flow
Version: 3
Status: Active
Org: Higher Logic LLC (00D290000001Ft3)

Flow Interview Details
Interview Label: Update Oppty Owner On Renewal And Quote To CSM 5/20/2020 2:29 PM
Current User: Lionel Kamdem (0050g0000063vBV)
Start time: 5/20/2020 2:29 PM
Duration: 4 seconds

How the Interview Started
Lionel Kamdem (0050g0000063vBV) started the flow interview.
Some of this flow's variables were set when the interview started.
PassedAccountFromProcessBuilderAction = Account (0017000001RhD0VAAV)

UPDATE RECORDS: Update_Oppty_With_Matching_Account_ID
Find all Opportunity records where:
AccountId Equals {!PassedAccountFromProcessBuilderAction.Id} (0017000001RhD0VAAV)
Update the records’ field values.
Opportunity_Lead_Source__c = Gainsight Campaign Lead
Result
Failed to update records that meet the filter criteria.

Error Occurred: The flow tried to update these records: null. This error occurred: FIELD_FILTER_VALIDATION_EXCEPTION: The contact needs to be a contact associated with the account.. You can look up ExceptionCode values in the SOAP API Developer Guide.


I don't understand the error as in I'm not trying to update a contact, but the Opportunities and the there are about 5 opportunities associated with that Account so it should definetely update them. 

Is there something I am missing please let me know. 

ShirishaShirisha (Salesforce Developers) 

Hi Lionel,

Greetings!

I would suggest you to enable the debug logs and capture while replicating the issue to see,if there is any other process which is being invoked while updating the Account record.

Also,can you please confirm,if this is failing for every record.If not then,I would suggest you to compare the working and non working debug logs to debug easily.

Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.

Warm Regards,
Shirisha Pathuri