'$value' is undefined, was not found while evaluating the sub-expression

Sometimes I get the $value from third party application and sometimes I don’t get based on the filtering, so when I don’t get the $value field from third party application I’m getting this error in mapper : $value was not found while evaluating the sub-expression
"failure": "$value is undefined.

How can we fix this? Any suggestions would be helpful.

Do you have Null-safe access selected in the Mapper?

Outside of Null-safe access for the overall mapper, if you need field level handling, you might look at the object get() method with further guidance at this community post

$.get(‘value’) worked for me. Thanks!