cancel
Showing results for 
Search instead for 
Did you mean: 

Failure: Related External ID: Cannot lookup a property on a null value, Reason: Value referenced in the sub-expression

NAl
Contributor

Hi all,

I am trying to conduct an upsert operation on a child record in Salesforce.
I have defined the External ID for the record and the related object but keep receiving this message:

Failure: Related External ID: Cannot lookup a property on a null value, Reason: Value referenced in the sub-expression

The null-safe access has been checked in each of the mapper snaps.

10 REPLIES 10

jlandells
Former Employee

It’s definitely that field that it’s complaining about, rather than the External-ID Field? (I’m not seeing any errors highlighted in that screenshot)

NAl
Contributor

Screen Shot 2021-07-28 at 12.09.35 PM

Supratim
Contributor III

@NAl Can you hardcoded the value and test, then we can understand the issue in salesforce or snap side.

del
Contributor III

@NAl,

I believe the Salesforce Upsert snap’s “External-ID Field” and “Related External ID” fields are expecting the actual field names - not the values from the fields. The values should be in your input payload - with matching key names.

Try unchecking the expression toggle “=” and removing the “$”. Or otherwise, uncheck the toggle and use the suggest feature.

image

NAl
Contributor

Hi all,

I ended up creating a new version of the pipeline and that worked.