Hi all,
we are trying to use the mssql BULK import feature, but we are failing due to an error that we are not able to find.
This is the table we want to write our data to:
The first column, ValueFloat_ID is an auto-increment column, so it should not matter using the BULK Import feature.
We prepare an object with data in format that should fit the BULK function:
var e = msg.payload;
var obj = {};
var columns = [ { name:'Sensor_ID', type:'nvarchar(500)' },
{ name:'Sensor_Value', type:'float' },
{ name:'Sensor_EpochTime', type:'datetime' },
{ name:'Sensor_q', type:'bit' }
] ;
obj = [{'Sensor_ID': "IOT/260/DB_OPC.something.something.else", 'Sensor_Value': parseFloat(1), 'Sensor_EpochTime': "2023-04-12T10:09:56.530Z" , 'Sensor_q': true}];
node.send ({columns:columns, payload:obj});
And this is how the SQL BULK node is configured:
But all we get is this unfriendly error message
Does anyone have an idea whats wrong here ?
BR