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 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 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

7 months 4 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

  • 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
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801

New forum topics

  • how to get attribute 2 type for GXDLMSData object in python
  • Guidance on using the source codes
  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin