# Field mapping does not work as expected in node-red-contrib-oracledb-mod

**URL:** <https://discourse.nodered.org/t/field-mapping-does-not-work-as-expected-in-node-red-contrib-oracledb-mod/74745>\
**Category:** General\
**Tags:** database\
**Created:** [5 February 2023 18:58 UTC](https://discourse.nodered.org/t/field-mapping-does-not-work-as-expected-in-node-red-contrib-oracledb-mod/74745 "2023-02-05T18:58:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtrailrunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xtrailrunner/32/74959_2.png) [@xtrailrunner](https://discourse.nodered.org/u/xtrailrunner)\
**Post date:** [5 February 2023 18:58 UTC](https://discourse.nodered.org/t/field-mapping-does-not-work-as-expected-in-node-red-contrib-oracledb-mod/74745/1 "2023-02-05T18:58:03Z")

</div>

Hi,  
i'm using the contrib node for Oracle DB to insert some values into the database.  
There was already a thread with a similar issue: ([Writing Insert query inside node-red-contrib-oracledb-mod](https://discourse.nodered.org/t/writing-insert-query-inside-node-red-contrib-oracledb-mod/13390)).  
The incoming msg.payload of the Oracle node is a nested object

```auto
object
Time: "2023-02-05T19:51:17"
ED300L: object
Total_in: 9627.902
Power_cur: 681
Total_out: 27910.92
Meter_id: "02560000000000"

```

I can copy the path to each of these elements into the field mapping of the node

```auto
[
    "payload.Time",
    "payload.ED300L.Total_in",
    "payload.ED300L.Power_cur",
    "payload.EDL300L.Total_out"
]

```

In the query I reference the four elements using bind variables

```auto
insert into stromzaehler (zeitpunkt, bezug, aktuell, lieferung)
values (:zeitpunkt, :bezug, :aktuell, :lieferung)

```

Executing the flow only null values will be inserted into the database table.  
Any ideas what could have been going wrong here?

---

<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:** [6 April 2023 18:58 UTC](https://discourse.nodered.org/t/field-mapping-does-not-work-as-expected-in-node-red-contrib-oracledb-mod/74745/2 "2023-04-06T18:58:43Z")

</div>

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