Stream Analytics Job Output Stuck

Lior Bahat 1 Reputation point
2021-11-12T14:36:21.217+00:00

I have a stream analytics job with an MQTT JSON input and a postgreSQL output.
I noticed that if a certain JSON parameter that is part of the message no output rows are generated. I couldn't find any related info in the logs. Restarting the stream analytics job fixes the issue until the next message with this parameter.
The only difference I see between this parameter and the previous ones is that it is an INT while the previous ones are VARCHAR and FLOAT.

This is the JSON (the problematic parameter is "tsen1":
{\"ppb\":117.35,\"pid\":155.40,\"temp\":22.50,\"humid\":29.10,\"pres\":1002.00,\"wspd\":0.00,\"wdir\":359.60,\"sflag\":0,\"tflag\":0,\"pstat\":1,\"estat\":0,\"batt\":13.31,\"chrg\":0.00,\"run\":113.86,\"tsen1\":2440,\"heat1\":15,\"tset1\":2492,\"sd\":1000,\"tcrh\":0,\"r232\":0,\"csq\":-92,\"snr\":5,\"brdv\":5,\"fwv\":594,\"misc\":166,\"cell\":115000,\"samp\":2,\"trig\":10,\"tstatic\":250,\"btime\":30,\"tl1\":250,\"tt1\":45,\"ds1\":0,\"df1\":360,\"ws1\":0,\"ev1\":129,\"ev2\":0,\"ev3\":0,\"ev4\":0}}"
}
}

Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
330 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sander van de Velde 28,386 Reputation points MVP
    2021-11-13T10:14:29.077+00:00

    Hello @Lior Bahat ,

    We see this postgreSQL error:

    2021-11-13 09:09:31 UTC-618f80b2.b810-ERROR: incorrect binary data format  
    

    The The Stream Analytics query is passing through all messages, it seems specific incoming data is rejected by PostgreSQL.

    Using the query language of Stream Analytics, you can change the output format of individual columns by eg. casting to an int or double.

    the PostgreSQL output is just release and still in public preview.


  2. 67391162 0 Reputation points
    2024-02-01T14:41:54.27+00:00

    Bonjour, est-ce que je peux configurer un stream analytics job avec un input « iot hub » et un output « mqtt » pour envoyer les données traitées à mon app NodeJS ?