Skip to Content
0
Former Member
Nov 26, 2009 at 11:37 AM

RetrieveRecordsByIdCommand - never returns 0 records?

27 Views

Hi, All !!!

I have code::

.........................
RetrieveRecordsByIdCommand retrieveRecordsByIdCommand.addId(  new RecordId(5000)  );
.........................
retrieveRecordsByIdCommand.execute;
RecordResultSet resSet = retrieveRecordsByIdCommand.getRecords();
int n = resSet.getCount();
.........................

And record with RecordId=5000 does not exist in the table. (I am sure 100%)

But !!!

1) resSet.getCount() == 1 (always)

2) resSet always include record with RecordId=5000 and this record has all fields with NULL.

And I expect that resSet.getCount() should be 0

Where is my problem?

Thanks for your help!!!