<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; unity</title>
	<atom:link href="http://www.richstevenson.com/tag/unity/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richstevenson.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Dec 2011 18:41:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Can&#8217;t delete a user from Unity Connection</title>
		<link>http://www.richstevenson.com/2009/08/20/cant-delete-a-user-from-unity-connection/</link>
		<comments>http://www.richstevenson.com/2009/08/20/cant-delete-a-user-from-unity-connection/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 00:22:51 +0000</pubDate>
		<dc:creator>Rich Stevenson</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[delete user]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://www.richstevenson.com/?p=367</guid>
		<description><![CDATA[This week we closed one of our satellite offices and therefore I had to remove the office from, among other things, Cisco Unity Connection. I started deleting the users and hit a problem when I tried to delete the Operator User. The error I receive was: &#8220;Operation cannot be completed because the object is in [...]]]></description>
			<content:encoded><![CDATA[<p>This week we closed one of our satellite offices and therefore I had to remove the office from, among other things, Cisco Unity Connection. I started deleting the users and hit a problem when I tried to delete the Operator User. The error I receive was:</p>
<p><em>&#8220;Operation cannot be completed because the object is in use&#8221;</em></p>
<p>Now since I had just finished removing this<em> </em>office from the Cisco Unified Communications Manager box, I expected to have the option in Unity to actually see what object is using the User that I&#8217;m trying to delete, as I did in UCM. But no such luck.</p>
<p><span id="more-367"></span></p>
<p>After some digging around I discovered that this is actually a bug in the 7.0.2.10000-18 version of UC that I&#8217;m running. Here&#8217;s the original <a href="http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&amp;bugId=CSCsv34638" target="_blank">Bug Toolkit</a> from Cisco on the issue.</p>
<p>As you&#8217;ll see, the document gives you a number of queries to run on the UC box from a command line to help identify the object that is using the User that you&#8217;re trying to delete. The query that worked in identifying the object for me is the one shown below in <strong>bold</strong>.</p>
<p>When using these commands, replace the word SUBSCRIBER with the user alias you&#8217;re trying to delete and run them from the command line to get the name of the object that is referencing this user.</p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select displayname from vw_callhandler where  objectid = (select callhandlerobjectid from vw_menuentry where  targethandlerobjectid IN (select callhandlerobjectid from vw_subscriber where fn_tolower(alias) = lower(&#8216;SUBSCRIBER&#8217;)))</span></p>
<p><em>If the above SQL command does not tell you why the user can&#8217;t be deleted try  to following SQL commands in order:</em></p>
<p><span style="color: #00ccff;"><strong>run cuc dbquery unitydirdb select * from vw_subscriberreference where objectid IN (select objectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;SUBSCRIBER&#8217;))</strong></span></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select owner.displayname, &#8220;personal call xfer rule&#8221; as referenceype, owner.objectid as referrerobjectid, target.objectid from vw_personalrulecaller, vw_subscriber target, vw_subscriber owner where<br />
vw_personalrulecaller.calleruserobjectid = target.objectid and owner.objectid = vw_personalrulecaller.subscriberobjectid and target.objectid in (select objectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;SUBSCRIBER&#8217;))</span></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select owner.displayname, &#8220;exiting conversation&#8221; as referencetype, owner.objectid as referrerobjectid, target.objectid from vw_callhandler, vw_callaction, vw_subscriber target, vw_subscriber owner where target.callhandlerobjectid = vw_callaction.targethandlerobjectid and vw_callaction.objectid = owner.exitcallactionobjectid and vw_callaction.targethandlerobjectid = vw_callhandler.objectid and target.objectid in (select objectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;SUBSCRIBER&#8217;))</span></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select owner.displayname, &#8220;exiting conversation&#8221; as referencetype, owner.objectid as referrerobjectid, target.objectid from vw_callhandler, vw_callaction, vw_subscriber target, vw_subscribertemplate<br />
owner where target.callhandlerobjectid = vw_callaction.targethandlerobjectid and vw_callaction.objectid = owner.exitcallactionobjectid and vw_callaction.targethandlerobjectid = vw_callhandler.objectid and target.objectid in (select objectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;SUBSCRIBER&#8217;))<br />
</span><br />
<em>If you have UC 7 or later and you still can&#8217;t determine why you can&#8217;t remove a user try:</em></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select vw_subscriber.displayname, &#8220;smpp provider&#8221; as referencetype, vw_smppprovider.objectid as referrerobjectid, vw_subscriber.objectid from vw_smppprovider, vw_subscriber where<br />
vw_smppprovider.owner_subscriberobjectid = vw_subscriber.objectid and vw_smppprovider.owner_subscriberobjectid in (select objectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;SUBSCRIBER&#8217;))<br />
</span><br />
<em>If none of those work then try this:</em></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select objectid from tbl_callaction where targethandlerobjectid IN (select callhandlerobjectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;SUBSCRIBER&#8217;))</span></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb select objectid from tbl_callaction where targethandlerobjectid IN (select callhandlerobjectid from vw_subscriber where fn_tolower(alias) = fn_tolower(&#8216;kcharron&#8217;))<br />
</span></p>
<p><em>If this returns a result, there is an orphaned call action that is preventing the deletion of the user.<br />
Now run this query to remove the call action.</em></p>
<p><span style="color: #00ccff;">run cuc dbquery unitydirdb delete from tbl_callaction where objectid=&#8221;</span></p>
<p>Using puTTY to connect to the UC box, I logged in and executed the query command above in <strong>bold</strong>, which displayed the output in <strong>Figure A</strong>.</p>
<p style="text-align: center;"><a href="http://www.richstevenson.com/wp-content/uploads/2009/08/unity.jpg" target="_self"><img class="size-medium wp-image-374 aligncenter" title="FigureA" src="http://www.richstevenson.com/wp-content/uploads/2009/08/unity-300x134.jpg" alt="FigureA" width="300" height="134" /></a></p>
<p style="text-align: center;">Figure A: Click to enlarge.</p>
<p style="text-align: left;">As you can see in <strong>Figure A</strong>, the object &#8216;Whitema&#8217; is listed as an object using the User Object &#8216;KalamazooOperator&#8217; that I was trying to delete. And checking the Call Input of the &#8216;Whitema&#8217; user, I discovered that the number 0 (zero) key was set to send the caller to the KalamazooOperator User when pressed. So I selected another target and saved the change. Then I tried once more to delete the KalamazooOperator User and this time it was successful!</p>
<p style="text-align: left;">Now according to the Bug Toolkit, this problem was fixed in versions 7.1(0.51), 7.1(0.71) and  7.1(2a). I haven&#8217;t upgraded as of yet, so I don&#8217;t know if by fixed they mean that you can delete an object even if it&#8217;s in use, or if it means that they now give you a way to find the object within the web interface. Hopefully it&#8217;s the latter since we have this ability in CUCM already.</p>
<p style="text-align: left;">
<p style="text-align: center;">
<g:plusone href="http://www.richstevenson.com/2009/08/20/cant-delete-a-user-from-unity-connection/"  size="standard"   count="false"  ></g:plusone>]]></content:encoded>
			<wfw:commentRss>http://www.richstevenson.com/2009/08/20/cant-delete-a-user-from-unity-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

