# Row was not updated in Operation scripts

**URL:** <https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879>\
**Category:** Q&A\
**Created:** [18 August 2021 01:21 UTC](https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879 "2021-08-18T01:21:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yosi.p](https://avatars.discourse-cdn.com/v4/letter/y/e19b73/32.png) [@yosi.p](https://community.ofelia.com/u/yosi.p)\
**Post date:** [18 August 2021 01:21 UTC](https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879/1 "2021-08-18T01:21:10Z")

</div>

Hi,

I'm trying to use script to update the value in my Task's Operations. But whenever I submit the task, it's just never works.&nbsp; Suppose I want to set the value not based on User's input, but on computed value, how exactly can I do that?

Any examples? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [18 August 2021 08:43 UTC](https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879/2 "2021-08-18T08:43:58Z")

</div>

Hello,

could you please give us a bit more of context? What is your Bonita version?&nbsp;

Can you please share a screenshot of your operation, your process definition and the script?&nbsp;

Thank you

---

<div class="post-metadata">

**Author:** ![yosi.p](https://avatars.discourse-cdn.com/v4/letter/y/e19b73/32.png) [@yosi.p](https://community.ofelia.com/u/yosi.p)\
**Post date:** [19 August 2021 02:40 UTC](https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879/3 "2021-08-19T02:40:53Z")

</div>

I'm trying to follow the Getting started tutorials.

&nbsp;

In the task:

1. I have defined the Contract that will update the data I want to update

2. In the Operations, I use the following:

&nbsp; &nbsp; &nbsp; - Operations type: Use java method

&nbsp; &nbsp; &nbsp; - In "Edit expression", I use script that simply `return true`

3. The task then ended.

&nbsp;

In the task form, I set a button that if clicked should submit the Task (and hoping that it will set the value above). Is there anything else need to be done?

---

<div class="post-metadata">

**Author:** ![nasrin788\_1384620](https://avatars.discourse-cdn.com/v4/letter/n/2acd7d/32.png) [@nasrin788\_1384620](https://community.ofelia.com/u/nasrin788_1384620)\
**Post date:** [23 August 2021 07:08 UTC](https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879/4 "2021-08-23T07:08:20Z")

</div>

Did you see logs?

In help menu -\> Bonita Engine log

---

<div class="post-metadata">

**Author:** ![yosi.p](https://avatars.discourse-cdn.com/v4/letter/y/e19b73/32.png) [@yosi.p](https://community.ofelia.com/u/yosi.p)\
**Post date:** [24 August 2021 08:12 UTC](https://community.ofelia.com/t/row-was-not-updated-in-operation-scripts/10879/5 "2021-08-24T08:12:00Z")

</div>

I am not sure what happen, but after recreating the process diagram, it works as expected. Thanks!
