# ENGINE-02025 Variable 'execution.getVariable("mCollection").prop("marketingList").elements()' is not of the expected type 'Collection'

**URL:** <https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857>\
**Category:** Camunda 7 Topics\
**Created:** [January 11, 2024, 12:57pm UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857 "2024-01-11T12:57:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roshan](https://forum.camunda.io/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@Roshan](https://forum.camunda.io/u/Roshan)\
**Post date:** [January 11, 2024, 12:57pm UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/1 "2024-01-11T12:57:56Z")

</div>

ENGINE-02025 Variable ‘execution.getVariable(“mCollection”).prop(“arrLst”).elements()’ is not of the expected type ‘Collection’.

can anyone please help me to resolve this , in 7.20 camunda without using SPIN , how to use json data(arrLst) in Collection .  
tried : ${execution.getVariable(“mCollection”).get(“arrLst”)} as well

 ![image](https://forum.camunda.io/uploads/default/original/3X/3/a/3a6a3e059c73b15cbc5d81c885569a0c093ca146.png)

---

<div class="post-metadata">

**Author:** ![jonathan.lukas](https://forum.camunda.io/user_avatar/forum.camunda.io/jonathan.lukas/32/14911_2.png) [@jonathan.lukas](https://forum.camunda.io/u/jonathan.lukas)\
**Post date:** [January 12, 2024, 6:34am UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/2 "2024-01-12T06:34:46Z")

</div>

Hello @Roshan ,

the expression from the header requires spin to function properly. Why would you refuse to use Spin?

Jonathan

---

<div class="post-metadata">

**Author:** ![Roshan](https://forum.camunda.io/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@Roshan](https://forum.camunda.io/u/Roshan)\
**Post date:** [January 12, 2024, 8:31am UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/3 "2024-01-12T08:31:03Z")

</div>

SPIN function is giving an error and camunda engine is not getting started due to that.  
can you please share any example .

---

<div class="post-metadata">

**Author:** ![jonathan.lukas](https://forum.camunda.io/user_avatar/forum.camunda.io/jonathan.lukas/32/14911_2.png) [@jonathan.lukas](https://forum.camunda.io/u/jonathan.lukas)\
**Post date:** [January 12, 2024, 9:47am UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/4 "2024-01-12T09:47:18Z")

</div>

@Roshan ,

this means the root cause is different. What stops your engine from starting?

Do you have a stacktrace?

Jonathan

---

<div class="post-metadata">

**Author:** ![Roshan](https://forum.camunda.io/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@Roshan](https://forum.camunda.io/u/Roshan)\
**Post date:** [January 12, 2024, 11:25am UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/5 "2024-01-12T11:25:24Z")

</div>

@jonathan.lukas  
When I am using ${S(execution.getVariable(“mCollection”)).prop(“arrLst”).elements()},  
Getting below exception:  
groovy.lang.MissingMethodException: No signature of method: java.util.LinkedHashMap.prop() is applicable for argument types: (String) values.

This was working fine in 7.14 camunda version .

---

<div class="post-metadata">

**Author:** ![jonathan.lukas](https://forum.camunda.io/user_avatar/forum.camunda.io/jonathan.lukas/32/14911_2.png) [@jonathan.lukas](https://forum.camunda.io/u/jonathan.lukas)\
**Post date:** [January 15, 2024, 5:52am UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/6 "2024-01-15T05:52:18Z")

</div>

Hello @Roshan ,

what is the type of “mCollection”?

Jonathan

---

<div class="post-metadata">

**Author:** ![Roshan](https://forum.camunda.io/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@Roshan](https://forum.camunda.io/u/Roshan)\
**Post date:** [January 15, 2024, 6:09am UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/7 "2024-01-15T06:09:15Z")

</div>

> [@jonathan.lukas](#):
>
> mCollection

Its json string of map which has list param.

---

<div class="post-metadata">

**Author:** ![jonathan.lukas](https://forum.camunda.io/user_avatar/forum.camunda.io/jonathan.lukas/32/14911_2.png) [@jonathan.lukas](https://forum.camunda.io/u/jonathan.lukas)\
**Post date:** [January 26, 2024, 2:30pm UTC](https://forum.camunda.io/t/engine-02025-variable-execution-getvariable-mcollection-prop-marketinglist-elements-is-not-of-the-expected-type-collection/49857/8 "2024-01-26T14:30:48Z")

</div>

Hello @Roshan ,

I would like make my question more precise: What is the type of the process variable in cockpit?

Jonathan
