# TypeError: Cannot read property 'schema' of undefined

**URL:** <https://discourse.nodered.org/t/typeerror-cannot-read-property-schema-of-undefined/57307>\
**Category:** General\
**Tags:** database\
**Created:** [27 January 2022 05:59 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-schema-of-undefined/57307 "2022-01-27T05:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brudal1](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@brudal1](https://discourse.nodered.org/u/brudal1)\
**Post date:** [27 January 2022 05:59 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-schema-of-undefined/57307/1 "2022-01-27T05:59:19Z")

</div>

Hello,

i want to write some Values in a Influx Database (V1.8)  
If i send this, it works:

```auto
{
	"_msgid": "add6566.b6dd4a8",
	"payload": {
		"enaNewBatchData": true,
		"reqNewBatchData": false,
		"aknBatchData": false,
		"enaChgCurrentBatch": false
	},
	"topic": "NodeID;ns=3;s=\"Dev\".\"Out\".\"Org\"",
	"measurement": "Dev",
	"statusCode": {
		"value": 0
	},
	"serverTimestamp": "2022-01-27T05:34:17.167Z",
	"sourceTimestamp": "2022-01-27T05:34:17.167Z"
}

```

But when i send this i get the Error "TypeError: Cannot read property 'schema' of undefined" from the influx out Note.

```auto
{
	"_msgid": "add6566.b6dd4a8",
	"payload": {
		"x00": false,
		"x01": false,
		"x02": false,
		"enaNewBatchData": true,
		"reqNewBatchData": false,
		"aknBatchData": false,
		"enaChgCurrentBatch": false,
		"batchDataWrong": false,
		"nextBatchRcpTankNbrWrong": false,
		"enaChgCurrentMilkQty": false,
		"reqNewDataInactiv": false,
		"x13": false,
		"acidRequest": false,
		"lyeRequest": false,
		"coagOk": false,
		"x17": false
	},
	"topic": "NodeID;ns=3;s=\"Dev\".\"Out\".\"Org\"",
	"measurement": "Dev",
	"statusCode": {
		"value": 0
	},
	"serverTimestamp": "2022-01-27T05:34:17.167Z",
	"sourceTimestamp": "2022-01-27T05:34:17.167Z"
}

```

I dont no where i is the porperty "schema"?

Why work the first flow and not the second one?

My Versions:  
Node Red V1.2.9  
node-red-contrib-influxdb 0.6.1  
InfluxDB shell version: 1.8.6

I hope someone can help me

Thanks  
Matthias

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [27 January 2022 07:38 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-schema-of-undefined/57307/2 "2022-01-27T07:38:19Z")

</div>

Where does this come from ?

`"_msgid": "add6566.b6dd4a8",`

---

<div class="post-metadata">

**Author:** ![brudal1](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@brudal1](https://discourse.nodered.org/u/brudal1)\
**Post date:** [27 January 2022 07:53 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-schema-of-undefined/57307/3 "2022-01-27T07:53:45Z")

</div>

I read the Values with the OPCUA Client Note from a PLC (Trigger from a inject Node)

The "\_msgid" come from the "inject Node"

---

<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:** [28 March 2022 07:54 UTC](https://discourse.nodered.org/t/typeerror-cannot-read-property-schema-of-undefined/57307/4 "2022-03-28T07:54:00Z")

</div>

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