[Zebralist] problem deleting record with zoom

Paul POULAIN paul.poulain at free.fr
Tue Jan 16 17:00:00 CET 2007


marc a écrit :
> paul.poulain at free.fr wrote:
>> Hello,
>>
>> I try to delete Koha records with ZOOM, but get the following answer :
>>> EsRequest  ERROR 224 Cannot delete/update record: does not exist
> ....
> 
> Please try version 2.0.8 where this has been fixed - bug #815

I specified that I tried with <dummy/> without any success, but I gave a 
try to zebra 2.0.8 :
- upgrading yaz
- upgrading zebra
- reindexing zebra DB
- doing a small test script :
#!/usr/bin/perl
use C4::Context;
use C4::Biblio;

use strict;

my $Zconn=C4::Context->Zconn('biblioserver', 0, 1);
# parameters : 0 means async=no,  1 means authentification=yes
my $Zpackage = $Zconn->package();
$Zpackage->option(action => 'recordDelete');
$Zpackage->option(record => "<dummy/>");
$Zpackage->option(recordIdOpaque => '11');
$Zpackage->send("update");
$Zpackage->send('commit');
$Zpackage->destroy();
$Zconn->destroy();

Hélas, I still can search & find record 11.


here are my zebra logs :
> 16:32:05-16/01 zebrasrv(8) [session] Session - OK 8 tcp:::1 11204
> 16:32:05-16/01 zebrasrv(8) [request] Auth idPass kohaadmin -
> 16:32:05-16/01 zebrasrv(8) [request] Init OK - ID:81/81 Name:ZOOM-C/YAZ Version:1.108/2.1.46
> 16:32:05-16/01 zebrasrv(8) [log] function: 1
> 16:32:05-16/01 zebrasrv(8) [log] Waitaction: 2
> 16:32:05-16/01 zebrasrv(8) [log] Received DB Update
> 16:32:05-16/01 zebrasrv(8) [log] action
> 16:32:05-16/01 zebrasrv(8) [log] recordDelete
> 16:32:05-16/01 zebrasrv(8) [log] database: biblios
> 16:32:05-16/01 zebrasrv(8) [log] enabling shadow spec=/home/zebradbs/sanop/biblios/shadow:4G
> 16:32:05-16/01 zebrasrv(8) [log] cache_fname = /home/zebradbs/sanop/biblios/shadow/cache
> 16:32:05-16/01 zebrasrv(8) [log] record 0 type XML
> 16:32:05-16/01 zebrasrv(8) [log] 8 bytes
> <dummy/>
> 16:32:05-16/01 zebrasrv(8) [log] key_block_create t=1
> 16:32:05-16/01 zebrasrv(8) [log] sorting section 1
> 16:32:05-16/01 zebrasrv(8) [log] writing section 1
> 16:32:05-16/01 zebrasrv(8) [log] finished section 1
> 16:32:05-16/01 zebrasrv(8) [log] Iterations            10
> 16:32:05-16/01 zebrasrv(8) [log] Distinct words         6
> 16:32:05-16/01 zebrasrv(8) [log] Updates                4
> 16:32:05-16/01 zebrasrv(8) [log] Deletions              1
> 16:32:05-16/01 zebrasrv(8) [log] Insertions             1
> 16:32:05-16/01 zebrasrv(8) [log] Records: 0 i/u/d 0/0/0
> 16:32:05-16/01 zebrasrv(8) [request] Extended Service: Update (failed)
> 16:32:05-16/01 zebrasrv(8) [request] EsRequest  ERROR 224 Cannot delete/update record: does not exist
> 16:32:05-16/01 zebrasrv(8) [session] Connection closed by client

-- 
Paul POULAIN et Henri Damien LAURENT
Consultants indépendants
en logiciels libres et bibliothéconomie (http://www.koha-fr.org)
Tel : 04 91 31 45 19



More information about the Zebralist mailing list