Hi ,
I am facing issues in logging data (inserting) data in to mssql server.I am posting my flow..can someone please help me find issue..
[
{
"id": "196afc4293e110c7",
"type": "function",
"z": "6f4fb60b82629334",
"name": "",
"func": "temp = Number(global.get(\"rtdpco2\")).toFixed(2);\ndoorstatus = global.get(\"dipco2lwr\");\nupper_limit = global.get(\"pco2-up\");\nlower_limit = global.get(\"pco2-low\");\nmsg.topic = \"INSERT INTO pco2 (door_status,temp,upper_limit,lower_limit) VALUES(\" + doorstatus + \",\" + temp +\",\" + upper_limit +\",\" + lower_limit +\");\"\nreturn msg;",
"outputs": 1,
"noerr": 8,
"initialize": "",
"finalize": "",
"libs": [],
"x": 580,
"y": 360,
"wires": [
[
"ee57a1d4778d19aa"
]
]
},
{
"id": "ee57a1d4778d19aa",
"type": "MSSQL",
"z": "6f4fb60b82629334",
"mssqlCN": "358e71158db79bf8",
"name": "read",
"outField": "payload",
"returnType": 0,
"throwErrors": 1,
"query": "",
"modeOpt": "queryMode",
"modeOptType": "query",
"queryOpt": "payload",
"queryOptType": "editor",
"paramsOpt": "",
"paramsOptType": "editor",
"rows": "rows",
"rowsType": "msg",
"params": [],
"x": 770,
"y": 360,
"wires": [
[]
]
},
{
"id": "255a54677492919b",
"type": "inject",
"z": "6f4fb60b82629334",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 420,
"y": 360,
"wires": [
[
"196afc4293e110c7"
]
]
},
{
"id": "358e71158db79bf8",
"type": "MSSQL-CN",
"tdsVersion": "7_4",
"name": "",
"server": "localhost",
"port": "1433",
"encyption": false,
"trustServerCertificate": false,
"database": "DATA",
"useUTC": false,
"connectTimeout": "15000",
"requestTimeout": "15000",
"cancelTimeout": "5000",
"pool": "5",
"parseJSON": false,
"enableArithAbort": true
}
]
""TypeError: this.tail.search is not a function"---thats the error I am getting