I am attempting to update all part usage lines on a Task when task.user_def4 is set to a particular value.
I have setup a Custom Process XML business rule with TASK as the Primary Table and this is firing when task.user4 is set. The Custom Process is shown below.
![](https://uploads-eu-west-1.insided.com/ifs-en/attachment/7fd3dbbd-d06d-4861-a1d8-fdabbcfa7792.png)
I want to update part_usage.part_line_code on all part usage lines on the task. The Business Rule is shown below.
![](https://uploads-eu-west-1.insided.com/ifs-en/attachment/060569a3-b6e0-41d3-beb3-9700815b9d70.png)
The error I get when my BR fires is “Attempt to update a record without providing all Primary Key information”.
My XML is as follows.
<update_part_usage>
<part_usage>
<part_usage>@task_id</part_usage>
<part_line_code>MIS</part_line_code>
<update/>
</part_usage>
</update_part_usage>
Any guidance on where i have gone wrong would be appreciated.
Thanks,
Barry