I agree that the return result of LOCK_ID() should be checked. I've added code which causes an LDAP_OTHER error if LOCK_ID() fails, which in a quick check of DB4 code, is consistent with possible error conditions. Kurt