Forum Discussion
The schema introspection is done on the first document read…Do later documents not have this field present?
Thanks for your help, later documents have this field present. I have a fixed width formatter snap in front of the problematic mapper that uses the field. I have noticed that in the mapper, the field name is: $[‘field-name’] (with brackets and quotes) and in the fixed width formatter, the field name is: $field-name (without brackets and quotes). The fixed width formatter snap works (i have confirmed this by running it) but the mapper before it doesn’t. Could this be related to the issue? I will attempt to change the filed names in the mapper to the field without quotes and brackets even though SnapLogic generates the field this way on drag and drop
- ptaylor4 years agoEmployee
Can you capture some sample input to post here, and a snapshot of your snaps configs so we can reproduce what you’re seeing?
- ptaylor4 years agoEmployee
Use the
</>
icon in the editor to post JSON. - JPaps4 years agoNew Contributor III
Sure, I will attach screenshots to this response. Please see below;
Error from within the problematic snap after drag and drop:
pipeline overview:
- ptaylor4 years agoEmployee
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.