ā12-13-2014 11:19 PM - edited ā03-17-2019 01:19 AM
I have problem that when I try to delete user in unity I got error:
"object not found"
In the server D.C I delete user
unity version 9.1.2
any idea?
ā05-27-2015 01:21 PM
I'm wondering if you =ever resolved this issue? I have not yet found any info on these forums or the Internet that provides a resolution for this specific error.
ā05-28-2015 09:41 AM
Hi Pat,
Jitender Bhandari
ā05-28-2015 02:25 PM
1. System version: 8.6.2.20000-2
2. two servers in cluster
3. no duplicate user
Somehow a duplicate user was created in unity - same username and same extension - I didn't do the setup. I found out about it when the user reported that he couldn't use the feature that forwards his phone to voicemail.
Here are the commands I have run with their results. The results are obviously not exactly the response from the system so NO RECORDS FOUND is my way of saying that nothing changed.
run cuc dbquery unitydirdb select * from vw_globalsubscribersearchallextensions where dtmfaccessid='1352'
NO RECORDS FOUND
run cuc dbquery unitydirdb SELECT ObjectId from vw_User WHERE Alias = 'username'
NO RECORDS FOUND
run cuc dbquery unitydirdb EXECUTE PROCEDURE csp_UserDelete (pObjectId = '31367f55-dbe5-435a-8803-67b8a660ff7d')
ABOVE IS OBJECT ID FOR OTHER USER ALREADY DELETED
run cuc dbquery unitydirdb EXECUTE PROCEDURE csp_UserDelete (pObjectId = '1ef61494-d7fb-4bb1-956b-21f4230cb8e6')
run cuc dbquery unitydirdb select * from vw_subscriberreference where objectid IN (select objectid from vw_subscriber where fn_tolower(alias) =fn_tolower('username'))
NO RECORDS FOUND
run cuc dbquery unitydirdb select objectid from tbl_User WHERE DisplayName='1352'
NO RECORDS FOUND
utils cuc users bulk_clean_orphans mapentries
COMMAND COMPLETED
run cuc dbquery unitydirdb delete from tbl_DtmfAccessId WHERE DtmfAccessId = '1352'
ROWS: 0
utils cuc users bulk_clean_orphans subscribers
COMMAND COMPLETED
ā05-28-2015 03:22 PM
Hi Pat,
Go to end user in unity, and try searching the user with a partition. Select Display Primary and Alternate Extensions in Selected Partition.
If you see a duplicate user with duplicate extension, delete it and ask the user to try.
Regards,
Ronak Agarwal
ā05-28-2015 04:53 PM
Try to run the following commands they will delete the user (1,1) (2,2)
1) run cuc dbquery unitydirdb select * from vw_user where alias='CF_Boyceze'
2) run cuc dbquery unitydirdb select * from vw_subscriber where alias='CF_Boyceze'
1) run cuc dbquery unitydirdb execute procedure csp_userdelete(pobjectid=ā<subscriber objectid from command 1>ā)
2) run cuc dbquery unitydirdb execute procedure csp_subscriberdelete(pobjectid=ā<subscriber objectid from command 2>ā)
ā06-02-2015 01:13 PM
Thanks for the suggestion. Both of the first two queries return No records found
ā06-02-2015 01:18 PM
Try this then
1) run cuc dbquery unitydirdb select * from tbl_globaluser where alias ='1234'
//Checked User Details; "objectid" value used next
2) run cuc dbquery unitydirdb select alias,objectid,object_globaluserobjectid from
tbl_alias where object_globaluserobjectid='2fd848dc-6665-4eab-9200-d4ed3aca01d6'
//Check tbl_alias for duplicates
//Results returned 2 rows with identical "object_globaluserobjectid" values matching
"Robert Weber" "objectid" from step 1
//note that tbl_alias "objectid" field is unique to the table
3) run cuc dbquery unitydirdb delete from tbl_alias where objectid='<objectid of
duplicate found in step 2>'
//delete duplicate entry
//deleting this entry automatically deletes object in vw_user table as well
4)run cuc dbquery unitydirdb execute procedure csp_userdelete(pobjectid='2a6ba228-cd2c-43fb-b43f-72ffb45b16b7')
ā06-02-2015 01:27 PM
running the first command the response is No records found. It is as if there is a phantom entry in a table somewhere.
ā06-02-2015 01:36 PM
sorry-alias is the username, not the extension, yes? Running your first query with alias - username does return an objectID but the second query returns No records found with that object ID
ā06-02-2015 01:49 PM
run these commands
1 (with alias = userid )
2 Put the object id from first command to second command
3 run cuc dbquery unitydirdb delete from tbl_alias where objectid='<objectid of
duplicate found in step 2>'
once you delete it go to admin page and try deleting the user if it did not let you run last comand
4 run cuc dbquery unitydirdb execute procedure csp_userdelete(pobjectid='use the object id)
whole process is
1) run cuc dbquery unitydirdb select * from tbl_globaluser where alias ='1234'
//Checked User Details; "objectid" value used next
2) run cuc dbquery unitydirdb select alias,objectid,object_globaluserobjectid from
tbl_alias where object_globaluserobjectid='2fd848dc-6665-4eab-9200-d4ed3aca01d6'
//Check tbl_alias for duplicates
//Results returned 2 rows with identical "object_globaluserobjectid" values matching
"Robert Weber" "objectid" from step 1
//note that tbl_alias "objectid" field is unique to the table
3) run cuc dbquery unitydirdb delete from tbl_alias where objectid='<objectid of
duplicate found in step 2>'
//delete duplicate entry
//deleting this entry automatically deletes object in vw_user table as well
4)run cuc dbquery unitydirdb execute procedure csp_userdelete(pobjectid='2a6ba228-cd2c-43fb-b43f-72ffb45b16b7')
ā06-02-2015 01:29 PM
try running the same command on sub and see if you get any object id
run cuc dbquery unitydirdb select * from tbl_globaluser where alias ='1234'
run cuc dbquery unitydirdb select * from vw_user where alias='CF_Boyceze'
run cuc dbquery unitydirdb select * from vw_subscriber where alias='CF_Boyceze'
ā06-02-2015 02:04 PM
I will be out of the office for the next 6 days but will try your suggestion when I return. I appreciate your efforts.
ā06-02-2015 01:24 PM
Ronak-
When I search using the settings you suggest, the user is not displayed at all. When I change to Display Only Primary Extensions in Selected Partition, the user is displayed but still cannot be deleted -
ā05-29-2015 05:34 AM
Hi Pat,
can you try below
(1) Stopped the replication on all the nodes by running the command "utils dbreplication stop" (1st on sub's and then on pub)
(2) Ran the command "utils dbreplication dropadmindb" on all the nodes (1st the pub and then the sub's)
(3) Ran the command "utils dbreplication reset all" on the publisher.
it is not production impacting, depending on the size of the database and deployment model it can take sometime.
HTH
Jitender Bhandari
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide