totalCount error, number of items: 0 vs 1

Hi!

I´ve an error that I cannt resolve:

For this case, I load a grid with the data from my database. Then, I create a filter, and the error occurs when selecting a value that does not exist in the database for a column.

The query to the database returns 0 element and an empty list. But it seems that a record is loaded at null.


The code is:





And the ER answer:


Any idea where I could look?

  Discussion posts and replies are publicly visible