Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

anyDelineatedValue nifi expression is giving ArrayIndexOutOfBoundException

avatar
Master Collaborator

Hello,


I am observing quite strange behaviour of anyDelineatedValue expression when I use it with 'OR' operation.

If I use 'AND' operation there is no issues.


Input attribute value:

org.entitlement.list=AA,CC,DD,FF


Expression used in RouteOnAttribte/UpdateAttribute processor :

${anyDelineatedValue("${org.entitlement.list}", ","):equals('BB'):or(${anyDelineatedValue("${org.entitlement.list}", ","):contains('EE')})}


Above expression is giving ArrayIndexOutOfBoundException for OR operation for the given input (where both the values which expression is looking is not present)

If I use 'AND' operation expression works fine. What is the difference here?


If I pass BB or EE in the input then expression wont give exception !

Looks like defect, can some one please suggest if anything wrong in this?


Thanks

Mahendra

1 ACCEPTED SOLUTION

avatar
New Member

@Mahendra Hegde, I've built the flow as described. It works as expected without any exception.

107557-1554337878645.png


107568-1554337930682.png


I just have formatted the value of condition for RouteOnAttribute.

I've tested on latest build (1.10.0-SNAPSHOT).

Please verify your version. Please let us know version number and share the exception (logs).

View solution in original post

1 REPLY 1

avatar
New Member

@Mahendra Hegde, I've built the flow as described. It works as expected without any exception.

107557-1554337878645.png


107568-1554337930682.png


I just have formatted the value of condition for RouteOnAttribute.

I've tested on latest build (1.10.0-SNAPSHOT).

Please verify your version. Please let us know version number and share the exception (logs).