Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. AttributeError: 'GXXmlWriter' Object Has No Attribute 'WriteEndElement'

AttributeError: 'GXXmlWriter' object has no attribute 'WriteEndElement'

By sgbubble, 18 March, 2025
Forums
Gurux.DLMS

Hi,

I'm starting by reading the object list from meter and then saving it in a file, but the saving process is giving me the following error:

File "\AppData\Local\Programs\Python\Python39\lib\site-packages\gurux_dlms\objects\GXDLMSObjectCollection.py", line 253, in save
it.save(writer)
File "\AppData\Local\Programs\Python\Python39\lib\site-packages\gurux_dlms\objects\GXDLMSFunctionControl.py", line 381, in save
writer.WriteEndElement() # Activations
AttributeError: 'GXXmlWriter' object has no attribute 'WriteEndElement'

I have successfully save the object's list when there is no function control object so I think it is related to that module. Any ideas?

Thank you in advance.

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi, Thank you for pointing…

Hi,

Thank you for pointing this out. This is fixed to version version 1.0.175.

BR,
Mikko

sgbubble

8 months 3 weeks ago

Thank you for your quick…

Thank you for your quick response. Related to Function Control, I have also detected that in GXDLMSConverter.py module methods objectTypeToString() and valueOfObjectType() Function control is missing.

Thanks

Profile picture for user Kurumi

Kurumi

8 months 3 weeks ago

Hi, Thank you for pointing…

Hi,

Thank you for pointing this out. This is fixed to version version 1.0.176.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • DLMS Meter Gurux DLMS Director Properties
  • Using MAX3232 + FT232RL to Energy meter with GXDLMS Director
  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin