cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Expression error after inner join using join snaps

Sahil
Contributor

Hi,
Getting below expression error in mapper after join snaps:-
Expression worked for 7 previous documengts, but failed on document #8 with the error: $[โ€˜$โ€™] is undefined

1 ACCEPTED SOLUTION

del
Contributor III

@Sahil,

This error will occur if the key "$" does not exist in your 8th document. You can either:

  • change your expression to $.get('$') which will effectively produce a null value for $['$'] downstream
  • or if your error is in a Mapper, you can also check the image checkbox, which will also produce a null value (but also applies null-safe to all the fields in your mapper).

View solution in original post

2 REPLIES 2

bojanvelevski
Valued Contributor

You cannot use that expression. Thatโ€™ basically means โ€œGet root from rootโ€, or something like that, and is not valid. I know that your field is called โ€œ$โ€ so a smart thing to do is first to remap the field.

del
Contributor III

@Sahil,

This error will occur if the key "$" does not exist in your 8th document. You can either:

  • change your expression to $.get('$') which will effectively produce a null value for $['$'] downstream
  • or if your error is in a Mapper, you can also check the image checkbox, which will also produce a null value (but also applies null-safe to all the fields in your mapper).