# FEEL/SCALA-01008 Error while evaluating expression: failed to parse expression

**URL:** <https://forum.camunda.io/t/feel-scala-01008-error-while-evaluating-expression-failed-to-parse-expression/39864>\
**Category:** Discussion & Questions\
**Tags:** dmn-engine-feel\
**Created:** [September 12, 2022, 11:16pm UTC](https://forum.camunda.io/t/feel-scala-01008-error-while-evaluating-expression-failed-to-parse-expression/39864 "2022-09-12T23:16:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayakovlev](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/ea666f/32.png) [@ayakovlev](https://forum.camunda.io/u/ayakovlev)\
**Post date:** [September 12, 2022, 11:16pm UTC](https://forum.camunda.io/t/feel-scala-01008-error-while-evaluating-expression-failed-to-parse-expression/39864/1 "2022-09-12T23:16:26Z")

</div>

Hello, i am using dependency camunda-engine-dmn 7.17.0 in java client,  
on an input context “event” which contains a list of “EventItems” and a list of “memberAttributes”, I’m trying to get the solution result as another context, like so:  
`{"actionType":"Accrual", "value": get value(event.eventItems[id = processingItem.eventItemId][1], "originalPrice") * 0.05, "pointType":"T1Bonus"}`  
but I always get an exception:

```auto
org.camunda.bpm.dmn.feel.impl.FeelException: FEEL/SCALA-01008 Error while evaluating expression: failed to parse expression '{"actionType":"Accrual", "value": get value(event.eventItems[id = processingItem.eventItemId][1], "originalPrice") * 0.04, "pointType":"T1Bonus"}': Expected (expressionWithContinuation | functionDefinition | forExpression | ifExpression | quantifiedExpression | expression2):1:1, found "{\"actionTy"
	at org.camunda.bpm.dmn.feel.impl.scala.ScalaFeelLogger.evaluationException(ScalaFeelLogger.java:77)
	at org.camunda.bpm.dmn.feel.impl.scala.ScalaFeelEngine.evaluateSimpleExpression(ScalaFeelEngine.java:84)

```

I can evaluate the expression `get value(event.eventItems[id = processingItem.eventItemId][1], "originalPrice") * 0.05` in an I/O block, but if I try to create an output context with that expression, I get an error.  
What am I doing wrong? How can I get the filtered value from the context’s list and use it in the output context?

Please see dmn attached bellow.  
[cashback.dmn](https://forum.camunda.io/uploads/short-url/kXmS2yfp3duHnJR2WO9inPyw9py.dmn) (4.4 KB)

---

<div class="post-metadata">

**Author:** ![Philipp\_Ossler](https://forum.camunda.io/user_avatar/forum.camunda.io/philipp_ossler/32/25299_2.png) [@Philipp\_Ossler](https://forum.camunda.io/u/Philipp_Ossler)\
**Post date:** [September 13, 2022, 5:44am UTC](https://forum.camunda.io/t/feel-scala-01008-error-while-evaluating-expression-failed-to-parse-expression/39864/2 "2022-09-13T05:44:04Z")

</div>

Hi @ayakovlev ,

thank you for reporting. 👍

It is a [known issue](https://github.com/camunda/feel-scala/issues/356) in the FEEL engine that is fixed since version `1.14.0`.

This version of the FEEL engine will be shipped with Camunda Platform version 7.18.0.

Until then, you could change the version of the FEEL engine but it depends on how you use the Camunda Platform (i.e. embedded, run, etc.). If you embed the engine then it should be possible to change the version by depending on a newer version of the FEEL engine (see the [pom](https://github.com/camunda/camunda-bpm-platform/blob/dece29344ea19786138598b177f45e8ac347bf3c/internal-dependencies/pom.xml#L21-L24)).

Best regards,  
Philipp

---

<div class="post-metadata">

**Author:** ![ayakovlev](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/ea666f/32.png) [@ayakovlev](https://forum.camunda.io/u/ayakovlev)\
**Post date:** [September 13, 2022, 11:09am UTC](https://forum.camunda.io/t/feel-scala-01008-error-while-evaluating-expression-failed-to-parse-expression/39864/3 "2022-09-13T11:09:08Z")

</div>

Thanks Philipp, after changing the version of the feel-engine dependency, the dmn context expression started working without errors.

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 31, 2024, 10:27am UTC](https://forum.camunda.io/t/feel-scala-01008-error-while-evaluating-expression-failed-to-parse-expression/39864/4 "2024-01-31T10:27:07Z")

</div>

Closed on January 31, 2024, 10:27am UTC


