# Value Processor Remove Selection removes all references

**URL:** <https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516>\
**Category:** Bug reports\
**Created:** [November 18, 2024, 9:42pm UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516 "2024-11-18T21:42:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eirik.k](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik.k/32/1800_2.png) [@eirik.k](https://community.appfarm.io/u/eirik.k)\
**Post date:** [November 18, 2024, 9:42pm UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516/1 "2024-11-18T21:42:23Z")

</div>

The Value Processor correctly adds references to a many cardinality property when using Add Selection, but removes all references when using Remove Selection, e.g. when trying to remove a single reference out of several.

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [November 20, 2024, 3:42pm UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516/2 "2024-11-20T15:42:12Z")

</div>

Hi @eirik.k,

I wasn’t able to reproduce the issue based on the information provided. Could you share some screenshots of how you’ve set up the remove selection? That would help me investigate further.

For reference, this is how I tested it on my side to give you an example:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/3/3d21a016b736d996aa8b70a77582ecb9e9a6055f.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/0/0b0fa270d69e90fd6ab97af428b35ef01b3f2c40.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![eirik.k](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik.k/32/1800_2.png) [@eirik.k](https://community.appfarm.io/u/eirik.k)\
**Post date:** [November 21, 2024, 11:47am UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516/3 "2024-11-21T11:47:06Z")

</div>

Hi. Thanks for looking into the issue. I have sent a DM with more details.

Eirik.

---

<div class="post-metadata">

**Author:** ![julie.bergem](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/julie.bergem/32/2639_2.png) [@julie.bergem](https://community.appfarm.io/u/julie.bergem)\
**Post date:** [January 6, 2025, 12:59pm UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516/4 "2025-01-06T12:59:12Z")

</div>

Hi!  
I’m facing the same problem as well. Have you found any solution to the issue?

Julie

---

<div class="post-metadata">

**Author:** ![Simona](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/simona/32/201_2.png) [@Simona](https://community.appfarm.io/u/Simona)\
**Post date:** [January 7, 2025, 11:31am UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516/5 "2025-01-07T11:31:15Z")

</div>

Hi @julie.bergem,

I wasn’t able to reproduce the issue that @eirik.k reported. I successfully removed a single subtask from the main task during my testing. Could you please double-check if you selected “context” in the removal selection?

Here is the setup I used to test with:

 ![Screenshot 2024-12-04 at 08.55.00](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/e/e6612518d5ebd0b1d049ae7e07d00d326b76737f.png)

 ![Screenshot 2024-12-04 at 08.55.07](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/7/78a944897622432df06a33fdd317b1119983e4f8.png)

 ![Screenshot 2024-12-04 at 08.55.14](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/d/d760d3148a0006120985c7509cdbc413af8bcdbe.png)

However, @eirik.k mentioned that he found a workaround. Could you share it here, @eirik.k?

---

<div class="post-metadata">

**Author:** ![eirik.k](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/eirik.k/32/1800_2.png) [@eirik.k](https://community.appfarm.io/u/eirik.k)\
**Post date:** [January 8, 2025, 10:28am UTC](https://community.appfarm.io/t/value-processor-remove-selection-removes-all-references/1516/6 "2025-01-08T10:28:25Z")

</div>

I used a runtime property to store the referenced objects, and there I was able to use remove selection.
