locked
Get an Error when use IoThub as the Job input RRS feed

  • Question

  • I create an IotHub and create an eventprocesshost to receive the events from the hub in a console application, then I create an ASA job and make the Iothub as the input with the default consumer group, but when I start the job, I get the exception:

    There is more than one receiver with different epoch value connected to the same Event Hub. Please ensure Service Bus Explorer or an EventProcessorHost application is not connected while Stream Analytics job is running.

    So the job input and the event processor host use the same consumer group make this happen???

    The input and host cannot use the same consumer group???

    Wednesday, June 29, 2016 8:30 AM

Answers

  • Hi Jordan,

    Event Hubs and IoT Hub are based on a client cursor meaning that each application reading from the buffer has a specific cursor state on the event buffer in the hub. This is why readers should be seperated by consumer groups.

    In your case both the ASA job and the console app are conflicting. Each ASA Job should have its own consumer group.


    Please mark answered question as anwered to let others know about it.

    • Marked as answer by Jordan--23 Thursday, June 30, 2016 1:11 AM
    Wednesday, June 29, 2016 8:04 PM