Azure Stream Analytics job truncates data -


i'm having quite strange issue azure iot hub , azure stream analytics job.

long story short: configured azure iot hub instance weather data raspberry pi 3 had sensor attached it; then, configured azure stream analytics job take data iot hub , put documentdb collection - during configuration phase, set sensorid being partition key. after running job 3 days, bought more sensors (that have different ids) , add them raspberry pi - data being collected , sent azure iot hub without issues 3 attached sensors (checked transmission device explorer).

now comes weird part - data sent first sensor (the 1 run 3 days itself) getting through analytics job , sent documentdb - in portal see have lot of input events see 0 output events (though data getting through).

in order exclude other issues, wrote small console application "listens" iot hub incoming messages , indeed, sensors sending data iot hub.

the query used analytics job following:

    select     sensorid,     avg(humidity) avghumidity,     avg(temperaturefromhumidity) avgtemperaturefromhumidity,     avg(objecttemperature) avgobjecttemperature,     avg(temperaturefromir) avgtemperaturefromir,     avg(pressure) avgpressure,     avg(lux) avglux,     system.timestamp executiontime     [xxx-document-db]     [home-meteo] timestamp currenttime group      sensorid,     tumblingwindow(second, 30) 

i've seen other issues somehow similar accepted answer there bug @ microsoft.

there way on how debug thing?

thank you.

my bad.... accidentally found issue - in documentdb seeing records 1 sensor not other 2 , didn't understood why after looking @ query wrote in analytics console, realized fault.

the scenario this: configured job output documentdb have executiontime field row key value identical 3 sensors , imagine after first insert documentdb, other 2 gave sort of error (i'm not familiar documentdb - know sql server) , think happened.

i change query , took field row key , went fine. i'm clear enough.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -