10-01-2021 01:34 PM
Hi,
I am experiencing an issue where I have a Mapper Snap that gives the error: $[FieldName] is undefined when I input a field name in the expression box.
The fields that I am using are inside the input schema of the mapper snap (I have dragged and dropped) so I know that the fields are valid. I have tried refreshing the page, restarting my browser and clearing cache to eliminate the possibility of it being a browser issue.
Does anyone know what could be the cause of this problem?
10-01-2021 02:29 PM
Sure, I will attach screenshots to this response. Please see below;
Error from within the problematic snap after drag and drop:
pipeline overview:
10-01-2021 02:41 PM
You’re not showing us the input data but the error message means that the TAIX-POL field does not exist in some of the input documents. Try either the expression it’s recommending, $.get('TAIX-POL')
or avoid the issue more generally by checking the “Null-safe access” box at the top of the Mapper.
10-01-2021 02:00 PM
Are you using quotes around the field name, like this?
$['FieldName']
10-01-2021 02:02 PM
Thanks for your help.
Yes, i dragged the field from the input schema and it goes into the expression box with the quotes and brackets but it gives the undefined error
08-04-2023 05:11 PM
Might be that you need to enable Null-safe access checkbox