object Data or Register attribute 2 has invalid dataType

8 posts / 0 new
Last post
MNN
object Data or Register attribute 2 has invalid dataType

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.

Kurumi
Kurumi's picture

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

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

MNN

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.

Kurumi
Kurumi's picture

Hi,

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

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

MNN

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

Kurumi
Kurumi's picture

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: 

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

MNN

Thank you.