Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Object Data or Register Attribute 2 Has Invalid DataType

object Data or Register attribute 2 has invalid dataType

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By MNN , 13 June, 2020
Forums
Gurux.DLMS.AMI

Hi,
When reading object Data or Register, for example, 0.0.94.27.1.255 attribute 2 is of type Uint16, but in ami comes dataType 0. And while process write, attribute has value "<String Value=\"30\"/>\r\n"
and an error occurs:
Access Error : Device reports a unmatched type.

Image
Profile picture for user Kurumi

Kurumi

5 years 12 months ago

Hi,

Hi,

The reason for this is that you haven't read value before template is added and data type is not Uint16.
This is now improved and if the data type is unknown, it's updated when the value is read the first time.

New version is released today.

BR,

Mikko

Profile picture for user Kurumi

Kurumi

5 years 12 months ago

Hi,

Hi,

Get the latest version. https://www.gurux.fi/node/16090

BR,
Mikko

MNN

5 years 12 months ago

Thank you.

Thank you.
I check new version, there is still problem. I try to read this object before create template. Then I create template, read object and try to write attribute, data in xml has type String. Other objects, for example Charge, write data (the type is correct) even if I did not read them before creating the template.

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Can you try to reset the data type from the database? Set DataType to 0. You find it from GXAttribute table.

BR,
Mikko

MNN

5 years 11 months ago

Hi,

Hi,
Thank you.
I set data type to 0. When writing the value, the data in xml has same type - String.

Profile picture for user Kurumi

Kurumi

5 years 11 months ago

Hi,

Hi,

Are you using the latest version from GXDLMSDirector and Gurux.DLMS.AMI? I tested this and the data type is correct.

BR,
Mikko

Image

MNN

5 years 11 months ago

Thank you.

Thank you.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin