When empty trash it is raised the error Can't Delete a folder with child locked nodes

Symptons

Can not empty trash and it is raised an error "Can delete a folder with child locked nodes".

Cause

Because are nodes locked in the trash ( on edition or locked ) the application can not empty the trash

Resolution

The locked nodes in the trash must be unlocked to be able to empty the trash.

Follow the next steps to unlock nodes:

Use a user with OpenKM administration grants

  • Execute from Administration > Tools > Database query the next SQL script to find locked nodes in the trash
SELECT NBS_UUID, NBS_NAME FROM OKM_NODE_BASE WHERE NBS_LOCKED='T' AND NBS_CONTEXT='okm_trash';
  •  With the uuid of each node ( NBS_UUID column value ) jump to each node and unlock

If the UUID of a node is "a6dee0ea-7dc8-4918-af2c-c73540e18af0" the link to this node should be something like http://localhost:8080/openkm/kcenter/#/browser/uuid/a6dee0ea-7dc8-4918-af2c-c73540e18af0

Copy the link in the browser and force a refresh to jump to the node.

  •  If do not have the option from trash to unlock the node, restore into okm:root ( taxonomy ) and unlock from there. Then you can purge the node.

Properties

Properties

Date

2021-12-29

Applies to

  • Core

 

 

Keywords

  • 7.1.x_Pro
  •   
  • Professional
  •