System error (Duplicate property names) while running ASA job at IoT edge

ankita m 66 Reputation points
2022-02-18T12:24:42.123+00:00

Hello,

I am trying to run the following query, but it shows the error as duplicate property name. However the names are different
175749-image.png

Questions:

  1. How can I name this property as I cannot use * for all selection?
  2. I am trying measure time for execution taken by ASA job on edge device, Could you please suggest the solution for exit time? I cannot use UDF function on edge solution.

Thanks..

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
598 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
397 questions
0 comments No comments
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP Volunteer Moderator
    2022-02-18T14:21:03.647+00:00

    I don't have an answer for your second question, maybe you could post that as a separate question. But for your first question:
    If you have properties with the same name (both of yours end with .temperature, so the property will be called temperature, you can give them an alias. Your query could be

    SELECT
      timeCreated,
      machine.temperature AS machineTemperature,
      machine.pressure AS machinePressure,
      ambient.temperature AS ambientTemperature,
      ambient.humidity AS ambientHumidity,
      System.Timestamp as t1
    

    This will make sure that you don't have duplicate property names.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 36,761 Reputation points MVP Volunteer Moderator
    2022-02-18T18:02:50.14+00:00

    Hello @ankita m ,

    to get insights about your Azure IoT Edge solution, host, and modules, check out this metrics collector module from Microsoft.

    Check out these visualizations.

    One of the views is:

    The Modules view shows how the individual modules on a device are performing.

    If this is not good enough for you, you can always try to compare the telemetry creation time and the output of your job using customer module logic and routing.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.