Re: EvaluateJsonPath error: Unable to return a scalar value for the expression

2015-11-16 Thread Aldrin Piri
The documentation is a little unclear and light. Made a ticket [1] to clarify how these properties are interpreted. Thanks! [1] https://issues.apache.org/jira/browse/NIFI-1177 On Mon, Nov 16, 2015 at 3:52 PM, Sumanth Chinthagunta wrote: > Thanks Aldrin. > it works after I changed Return Type

Re: EvaluateJsonPath error: Unable to return a scalar value for the expression

2015-11-16 Thread Sumanth Chinthagunta
Thanks Aldrin. it works after I changed Return Type to JSON. > On Nov 16, 2015, at 12:47 PM, Aldrin Piri wrote: > > Sumo, > > The scalar option has the processor looking for the resultant value of the > expression to provide a non-Map/List representation of the targeted > expression. In this

Re: EvaluateJsonPath error: Unable to return a scalar value for the expression

2015-11-16 Thread Aldrin Piri
Sumo, The scalar option has the processor looking for the resultant value of the expression to provide a non-Map/List representation of the targeted expression. In this case, if you change the property to json, it should work as anticipated. The property itself is more of a validation of the dat

EvaluateJsonPath error: Unable to return a scalar value for the expression

2015-11-16 Thread Sumanth Chinthagunta
I am trying to extract data into attribute using EvaluateJsonPath. when what JsonPath return complex type, I am getting error: Unable to return a scalar value for the expression $['data'] for FlowFile 152. Evaluated value was {id=1…..}. Transferring to failure data - $.data <— Error id