question

RehanAzher-7941 avatar image
1 Vote"
RehanAzher-7941 asked rkiss answered

Unmodeled data in IoT Central with Template Matching

My IoT Central is receiving the data successfully but still it goes to unmodeled data column.

My Template looks as following:
89050-screenshot-from-2021-04-19-21-16-15.png
And my data looks as following :
89137-screenshot-from-2021-04-19-21-17-07.png

All 3 are matching but still it goes to unmodeled data . Any hints what can be the root cause.

azure-iot-central
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

could you show your device template file?

also, try to create a DeviceId based on the alphanumeric, lowercase, and may contain hyphens, for instance, dtmi-myhomemonitor-myhomeraspberry53a


Thanks
Roman

1 Vote 1 ·

Hi Roman,

Please see my other comment.

Thanks

0 Votes 0 ·

Hi

I tried to change the template , more towards capabilities name made those all small characters. Followed your advise for renaming the device id to alphanumeric with some hyphens.

Below is my device registration Code:

![89282-image.png][2]

Below is my send telemetry Code:
89268-image.png

Below is my template how it looks like :
89244-image.png

Below is how my device is registered:

89220-image.png

Raw Data view:
89257-image.png

and attached is the new template (converted to txt a)

89174-home-monitor-template.txt

Any other hints are welcome.


[2]: /answers/storage/attachments/89200-image.png

0 Votes 0 ·
image.png (62.8 KiB)
image.png (72.5 KiB)
image.png (43.8 KiB)
image.png (70.1 KiB)
image.png (38.5 KiB)

1 Answer

rkiss avatar image
1 Vote"
rkiss answered

your device model has a default component, so its name should be empty, such as controller_component_name = ""

Thanks
Roman

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Roman , I will give it a try and will update here the result. Cheers.

0 Votes 0 ·

Thanks Roman , you were spot on , it worked by setting the controller_component_name to an empty String .

0 Votes 0 ·