How to fix message duplication in IoT Central

RossIoT 1 Reputation point
2022-08-10T13:05:13.627+00:00

Hi,

I'm currently doing some testing forwarding telemetry from two devices into IoT Central. Both devices are using node-red with the 'node-red-contrib-azure-iot-device' node, using different device IDs to forward messages onto IoT Central with identical node-red flows.

I've debugged within node-red and can see that messages are sent through every 5 minutes and are not duplicating. However, after some time IoT Central begins to duplicate messages in the raw data from one of the devices and not the other, starting with 2 messages, all the way up to 10+ duplicate messages.

Initially I thought it might be the IoT node but the issue doesn't occur on the other device with the same flow setup. Then I thought it might be a problem with the device, but I can see the messages coming through to the IoT node are never duplicated. To simplify I am just forwarding a debug message to IoT Central and can see it starts to duplicate after some time:

229985-centralduplication.png

What can cause duplication of messages within Central? Where can I debug this issue within Central or perhaps Centrals IoT Hub?

Many thanks in advance for any help given

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
359 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dom 1,631 Reputation points Microsoft Employee
    2022-08-10T15:20:18.137+00:00

    Can you share any more details of the flow you're using - in particular how are you generating the _eventcreationtime value?
    About how long does it take for the duplication to appear?

    1 person found this answer helpful.