When emptying the trash, the error "Can't delete a folder with child locked nodes" is raised

Symptoms

Cannot empty the trash and an error "Can't delete a folder with child locked nodes" is raised.

Cause

Because nodes are locked in the trash (being edited or locked), the application cannot empty the trash.

Resolution

Locked nodes in the trash must be unlocked before the trash can be emptied.

Follow the steps below to unlock nodes:

Use a user with OpenKM administration privileges

  • From Administration > Tools > Database query, execute the following 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), go to each node and unlock it.

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 into the browser and force a refresh to go to the node.

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

Properties

Properties

Date

2021-12-29

Applies to

  • Core

 

 

Keywords

  • 7.1.x_Pro
  •   
  • Professional
  •