Measurements are present for device, but the c8y_SupportedSeries is returning empty json. Why?

What product/components do you use and which version/fix level are you on?

cumulocity

Is your question related to the free trail, or to a production (customer) instance?

customer license

What are you trying to achieve? Please describe in detail.

I have ingested some measurements data for a device. Once the measurements are ingested for any device I used to see the name of the Series names when I hit the managedobjects API for supported series for any devicId. But today, I have created a device, ingested some data for measurements by bulk ingestion. But the https://dev.iot.solenis.com/inventory/managedObjects/deviceID/supportedSeries API returns
{
“c8y_SupportedSeries”:
}

Measurements are present for device, but the c8y_SupportedSeries is returning empty json. Why? Please help is there any other issue that prevents the supported series from returning the list of series names.

Do you get any error messages? Please provide a full error message screenshot and log file.

Have you installed all the latest fixes of the products and systems you are using?

Can you give an example of a typical measurement for your device? Do these measurements follow the typical fragment-series-value data structure? (see: Cumulocity IoT - OpenAPI Specification)

Hi Philip,
thanks for replying. Of course below is the sample of my measurements clubbed for a specific time stamp and ingested in cumulocity.

“measurements”: [
{
“self”: “https://t54905.iot.solenis.com/measurement/measurements/6279671”,
“time”: “2022-08-01T00:05:00.000Z”,
“id”: “6279671”,
“source”: {
“self”: “https://t54905.iot.solenis.com/inventory/managedObjects/5160078”,
“id”: “5160078”
},
“type”: “sol_onguardMeasurement”,
“Cond (S11)”: {
“unit”: “µS/cm”,
“value”: 4327
},
“ORP (S13)”: {
“unit”: “mV”,
“value”: 646
}
},

    {
        "self": "https://t54905.iot.solenis.com/measurement/measurements/6279672",
        "time": "2022-08-01T00:10:00.000Z",
        "id": "6279672",
        "source": {
            "self": "https://t54905.iot.solenis.com/inventory/managedObjects/5160078",
            "id": "5160078"
        },
        "type": "sol_onguardMeasurement",
        "Cond (S11)": {
            "unit": "µS/cm",
            "value": 4328
        },
        "ORP (S13)": {
            "unit": "mV",
            "value": 646
        }
    },

The datastructure you are using is not how Cumulocity would expect it to detect a series.
Try something like this instead:

{
  "self":"https://t54905.iot.solenis.com/measurement/measurements/6279672",
  "time":"2022-08-01T00:10:00.000Z",
  "id":"6279672",
  "source":{
    "self":"https://t54905.iot.solenis.com/inventory/managedObjects/5160078",
    "id":"5160078"
  },
  "type":"sol_onguardMeasurement",
  "sol_onguardMeasurement":{
    "Cond (S11)":{
      "unit":"µS/cm",
      "value":4328
    },
    "ORP (S13)":{
      "unit":"mV",
      "value":646
    }
  }
}

I guess ideally you would also get rid of spaces and specially characters within your attribute names, see: Cumulocity IoT's domain model - Cumulocity IoT Guides

1 Like

Hi Tristan,
Thank you for the help. I have done it. It worked as per the suggested structure.

Regard,
P. Sethu pandia raja

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.