Skip to main content
Hello,

 

I am trying to create a workflow using process builder to set address fields on the Opportunity on create or  edit:

 

There are three address field blocks on the Opp:

 

1. Bill-To

 

2. Ship-To

 

3. Install-To

 

Always set the Bill-To address block from the Opp Account's bill-to

 

If Ship-To is blank, set Ship-To address block from the Opp Account's ship-to fields

 

If Ship-To Name contains an ID, set Ship-To address blcok from the Ship-To ID's Ship-To fields

 

My Opp Bill To address fields are updating, but I run into a flow error as follows when the flow evaluates the Ship-To criteria:

 

********************************

 

Error element myDecision2 (FlowDecision).

 

The flow failed to access the value for myVariable_current.Ship_To_Account__r.Id because it hasn't been set or assigned.

 

Flow Details

 

Flow Name: Update_Opp_Address_Fields

 

Type: Record Change Process

 

Version: 11

 

Status: Active

 

Org: Lightspeed Technologies (00D3F000000CywC)

 

Flow Interview Details

 

Interview Label: Update_Opp_Address_Fields-11_InterviewLabel

 

Current User: Kim Ky-Zuccolo (00541000005RA9Z)

 

Start time: 8/27/2018 2:35 PM

 

Duration: 0 seconds

 

How the Interview Started

 

Kim Ky-Zuccolo (00541000005RA9Z) started the flow interview.

 

Some of this flow's variables were set when the interview started.

 

myVariable_old = null

 

myVariable_current = 0063F00000CBIGYQA5

 

ASSIGNMENT: myVariable_waitStartTimeAssignment

 

{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}

 

Result

 

{!myVariable_waitStartTimeVariable} = "8/27/2018 2:35 PM"

 

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 UPDATE: myRule_1_A1

 

Find all Opportunity records where:

 

Id Equals {!myVariable_current.Id} (0063F00000CBIGYQA5)

 

Update the records’ field values.

 

Bill_To_Account__c = {!myVariable_current.Account.Id} (0013F00000BCMCWQA5)

 

Bill_To_City__c = {!myVariable_current.Account.BillingCity} (SEATTLE)

 

Bill_To_Country__c = {!myVariable_current.Account.BillingCountry} (UNITED STATES)

 

Bill_To_State__c = {!myVariable_current.Account.BillingState} (WA)

 

Bill_To_Street__c = {!myVariable_current.Account.BillingStreet} (800 DUCK POND WAY)

 

Bill_To_Zip__c = {!myVariable_current.Account.BillingPostalCode} (98201)

 

Result

 

All records that meet the filter criteria are ready to be updated when the next Screen or Wait element is executed or when the interview finishes.

 

Any help would be appreciated.  

 

Thank you,

 

KIm
4 respostas
  1. 27 de ago. de 2018, 23:21
    Hi Kim,

     

    Does the Account record that you are pulling value from always has a Ship To address? YOu might need to add a criteria to make sure when your process is referring the Account Billing address info, the Account always has theBillling Address otherwise it will throw you error. Can you please post some screenshots of your PB here?
0/9000