07-28-2021 02:20 AM
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.
07-28-2021 04:02 AM
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)
07-28-2021 04:09 AM
07-28-2021 04:39 AM
@NAl Can you hardcoded the value and test, then we can understand the issue in salesforce or snap side.
07-28-2021 10:30 AM
@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.
08-04-2021 01:28 PM
Hi all,
I ended up creating a new version of the pipeline and that worked.