Forum Discussion
Solved
jfpelletier
12 months agoContributor
Hey,
Looks like I've solved my own issue... In my script, I had to encode the input document using the ".encode('utf-8')" method.
I can now parse and correctly extract all the data that I need from the file.
JF
vfantidou Please use below expression-. From your example seems there are some typo (2nd record in input0 should have ID not ID_NUMERIC). If it's not typo you need make null safe in mapper.
input0.filter((val,index)=> $filterData.find((ele)=> ele['ID'] ==val['ID'] ) != null )
- SpiroTaleski2 years agoValued Contributor
Try this expression:
$input0.filter((elem) => $filterData.find(x => elem.ID == x.ID))
- SpiroTaleski2 years agoValued Contributor
- SpiroTaleski2 years agoValued Contributor
Try with this expression:
$input0.filter((elem) => $filterData.find(x => elem.ID == x.ID))
- SpiroTaleski2 years agoValued Contributor
Try with below expression:
$input0.filter((elem) => $filterData.find(x => elem.ID == x.ID))
Related Content
- 12 months ago
- 3 years ago
- 2 years ago
- 2 years ago