Bulk Delete Error 271

May 15, 2013 at 9:09 PM
I'm getting a strange error when doing a bulk delete.
using (var odb = OdbFactory.Open("dbname.ndb"))
{
    var allObjects = odb.QueryAndExecute<object>().ToList();
    foreach (var itemToDelete in allObjects)
    {
        odb.Delete(itemToDelete);
    }
}
Error:271:The Index has 1498 element(s) whereas the Class has 1497 objects. The two values should be equal

There's 1800+ objects in the db. Any ideas what I am doing wrong?

Cheers
May 15, 2013 at 9:54 PM
I'm not sure if this is correct if I delete the index first I don't get the error.
odb.IndexManagerFor<Page>().DeleteIndex("urlIndex");
Is this correct?
Coordinator
May 16, 2013 at 5:31 AM
Could you please rise the issue/bug on Issues tab ?

Thanks,
Jacek