# Need to find the length of the list

In Expression evalutor, I have used ${length('/Care')} to find out the length of the list but getting below error- EXPR_00 - Invalid expression '${length('/Care')}': com.streamsets.pipeline.api.el.ELEvalException: CTRCMN_0100 - Error evaluating expression ${length('/Care')}: javax.servlet.jsp.el.ELException: Attempt to convert String "/Care" to type "java.util.List", but there is no PropertyEditor for that type Input list looks like - > Care : {LIST [2]} [0] : {MAP} [1] : {MAP}  I have check the datatype of Care field, it is showing as "LIST" Documentation https://streamsets.com/documentation/... How to find the length of the list? edit retag close merge delete ## 1 Answer Sort by » oldest newest most voted You're almost there - you just need to use record:value() to get the actual list value, rather than the field name, like this: ${length(record:value('/Care'))}

more

I tried that as well but getting below error EXPR_00 - Invalid expression '${length(record:value('/Care'))}': com.streamsets.pipeline.api.el.ELEvalException: CTRCMN_0100 - Error evaluating expression${length(record:value('/Care'))}: java.lang.NullPointerException