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. Failed To Read Object - Rows By Entry Error

Failed to read object - Rows By Entry Error

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 Techapirant , 19 November, 2019
Forums
Gurux.DLMS

Hello,

I am getting Failed to read object - Rows By Entry Error if data is not present using com_readRowsByRange function

Case 1 :
Start Time : 15-11-2019 10:00:00
End Time : 19-11-2019 10:00:00
Data Available Between 17-11-2019 to 19-11-2019
In above case I am getting error

Case 2 :
Start Time : 17-11-2019 10:00:00
End Time : 19-11-2019 10:00:00
Data Available Between 17-11-2019 to 19-11-2019
In above case I am not getting any error; Data is getting retrieved

How can I handle this for case 1, If data is present from 17-11-2019 then also case 1 should return data instead of error ?

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

Yes, some of the older meters are returning an error if there is no data in the giving range.
You just need to read the data from the meter and if error is returned expect that there is no data available. Returned error code is depending on the meter. New meters usually returns empty buffer and not an error.

There is nothing that you can do for this. :-)

BR,
Mikko

Techapirant

6 years 6 months ago

But with same meter DLMS

But with same meter DLMS Director works well. Whereas in ANSI C I am getting that error.

Profile picture for user Kurumi

Kurumi

6 years 6 months ago

Hi,

Hi,

GXDLMSDirector hides this error. Try to read the same profile generic with GXDMSDirector.
Before that select "PDU" and "Comments" from "View" and "Trace".

Now when you read that you should see error message in the trace view. If you are not seeing it, let me know and let's continue checking after that.

BR,

Mikko

Techapirant

6 years 6 months ago

In DLMS Director I am not

In DLMS Director I am not getting error.
Whereas In ANSCI C code I am getting error if start time and end time is like say 20 days

if ((ret = cl_readRowsByRange(&connection->settings, object, start, end, &data)) != 0 ||
(ret = com_readDataBlock(connection, &data, &reply)) != 0 ||
(ret = cl_updateValue(&connection->settings, (gxObject*)object, 2, &reply.dataValue)) != 0)
{
printf("ReadObject failed %s\r\n", hlp_getErrorMessage(ret));
}
In this case ret returns 258 ReadObject failed Invalid Parameter and because of this Rows By Entry Failed error

  • 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