[ERROR] - deleteDocs implementation

Previous topic - Next topic

ymeunier

Hi,

we are implementing the deleteDocs method, but we are having a problem.
Indeed, with each attempt (while we are connected and we have the rights of suppression), we are rejected for rights problems.
Has anyone ever encountered this problem or implemented this method?
We are in version 9.5 (ODWEK and CMOD)


if (odHit.hasPermToDeleteDoc()) {
        // suppression de l'archive dans OnDemand (GODZILLA SADATA-1557)
Vector<ODHit> vectorODHit = new Vector<ODHit>();
vectorODHit.add(odHit);
odFolder.deleteDocs(vectorODHit);
} else {
TraceManager.info("[ERROR] - Pas de suppression autoris�e !!!!!");
}


This is permissions :



AG NAMEDocPerms valueDoc AddDoc UpdateDoc PrintDoc cutDoc deleteDoc ViewAGPerms valueAccessAdminLogical View
I_SAECDCMC_USERDEF245falsefalsetruetruetruetrue1truefalsefalse

Best regards,
Yann

tnvpandian

HI,
Did you check the id which you use to connect to ondemand server has update/delete permissions on this application group?