# Deep copy from flow (array of objects) variable to payload oddness?

**URL:** https://discourse.nodered.org/t/deep-copy-from-flow-array-of-objects-variable-to-payload-oddness/65394
**Category:** General
**Created:** [20 July 2022 22:58 UTC](https://discourse.nodered.org/t/deep-copy-from-flow-array-of-objects-variable-to-payload-oddness/65394 "2022-07-20T22:58:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)
#### Post date: [20 July 2022 22:58 UTC](https://discourse.nodered.org/t/deep-copy-from-flow-array-of-objects-variable-to-payload-oddness/65394/1 "2022-07-20T22:58:27Z")

</div>

Read the description of deep copy on a change node, makes sense, but I think I am seeing odd behavior?

If I inject a change node, that copies a flow (array of objects) variable into payload then sends same to say a UI table, the table never updates.

If I inject a change node, with deep copy checked, that copies a flow (array) variable into payload then sends same to say a UI table, the table updates, as expected.

I have seen this several times now in different flows, that in 2.2.2 worked fine with no deep copy but in 3.0 deep copy checked seems to be required.

The way I read deep copy feature, the table should always update, because payload should always be set, as either a reference to the flow variable, or an explicit copy, of said flow variable, no? Is there some sublime issue or factor here I am missing?

I would create a flow to illustrate, but the issue is so far inconsistent. Some flows work as is, from 2.2.2 to 3.0, others while I have been testing 3.0 today, I have had to check deep copy. This has me scratching my head a bit.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [18 September 2022 22:59 UTC](https://discourse.nodered.org/t/deep-copy-from-flow-array-of-objects-variable-to-payload-oddness/65394/2 "2022-09-18T22:59:10Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
