# Measurements are present for device, but the c8y\_SupportedSeries is returning empty json. Why?

**URL:** https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430
**Category:** Forum
**Tags:** cumulocity
**Created:** [August 11, 2022, 1:54pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430 "2022-08-11T13:54:54Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)
#### Post date: [August 11, 2022, 1:54pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430/1 "2022-08-11T13:54:55Z")

</div>

#### 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](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?

---

<div class="post-metadata">

### Author: ![Philipp\_Emmel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/philipp_emmel/32/19455_2.png) [@Philipp\_Emmel](https://community.cumulocity.com/u/Philipp_Emmel)
#### Post date: [August 11, 2022, 2:39pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430/2 "2022-08-11T14:39:03Z")

</div>

Can you give an example of a typical measurement for your device? Do these measurements follow the typical fragment-series-value data structure? (see: [https://cumulocity.com/api/10.13.0/#operation/postMeasurementCollectionResource](https://cumulocity.com/api/10.13.0/#operation/postMeasurementCollectionResource))

---

<div class="post-metadata">

### Author: ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)
#### Post date: [August 11, 2022, 2:48pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430/3 "2022-08-11T14:48:56Z")

</div>

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](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](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
        }
    },

```

---

<div class="post-metadata">

### Author: ![Tristan\_Bastian](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/tristan_bastian/32/18259_2.png) [@Tristan\_Bastian](https://community.cumulocity.com/u/Tristan_Bastian)
#### Post date: [August 11, 2022, 3:35pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430/4 "2022-08-11T15:35:53Z")

</div>

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

```auto
{
  "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](https://cumulocity.com/guides/concepts/domain-model/#naming-conventions-of-fragments)

---

<div class="post-metadata">

### Author: ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)
#### Post date: [August 12, 2022, 2:09pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430/5 "2022-08-12T14:09:46Z")

</div>

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

Regard,  
P. Sethu pandia raja

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [February 8, 2023, 2:09pm UTC](https://community.cumulocity.com/t/measurements-are-present-for-device-but-the-c8y-supportedseries-is-returning-empty-json-why/4430/6 "2023-02-08T14:09:50Z")

</div>

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