Rectified the error.
Mistake was in the defined JSON String.
Corrected string :
MSG_TXT = '{{"temperature": "{temperature}","time": "{time}","date":"{date}"}}'
Thanks.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am trying to store my telemetry data to SQL database through stream analytics, I am getting a below mentioned error while trying to run a streaming job.
"Source 'edgeinputstream' had 1 occurrences of kind 'InputDeserializerError.InvalidData' between processing times '2021-05-21T12:08:04.7795574Z' and '2021-05-21T12:08:04.7795574Z'. Could not deserialize the input event(s) from resource 'Partition: [0], Offset: [17181485296], SequenceNumber: [3925], DeviceId: [firstedge]' as Json. Some possible reasons: 1) Malformed events 2) Input source configured with incorrect serialization format."
I have attached the screenshot of the code and message received at the IoT Hub
Rectified the error.
Mistake was in the defined JSON String.
Corrected string :
MSG_TXT = '{{"temperature": "{temperature}","time": "{time}","date":"{date}"}}'
Thanks.