on 2019 May 07 2:55 PM
Hi,
I am trying to find out an error regarding some logic in my map. Please find below next source and target structures:
The logic required is next one: each field is a map to map, excepts on the ones named "field".
Segment is 0..1 so it is possible that no fields should come here, and if exists then the segment1 may come 1 or more times. If there are segments (at least 1 to unbounded) then I need to search for value "AA" in field2 (on the source request). If the value exists then I need to send all those context values to the target (field1 to field1, field2 to field2, etc). If the value "AA" doesn't exist in field2 or if there is no segment then I need to send a 0 to all field target.
I am able to search for the AA value in field2 using an UDF:
field1 & field2 are the input parameters to the searchAA UDF and their context are at row level.
This is working for any test cases I've done:
But this is not working as expected when more than 1 row exist:
I might be missing something, or probable I need to avoid UDF and use only standard node functions but I can't understand the queue context error.
Is anyone able to let me know must I do this mapping logic so all test cases are good?
Thanks!!!!!!
Request clarification before answering.
Happy to be of some help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
29 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.