<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 10.5.2 Delete Softkey Error in Management</title>
    <link>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418524#M12</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Check that the pkid you are trying to delete is actually an existing row pkid in the softkeyset table (sure you've already done this)&lt;/P&gt;&lt;P&gt;- The Data Dictionary mentions this restriction when deleting rows from softkeyset: &lt;/P&gt;&lt;P&gt;Mandatory Softkeys cannot be removed from a Call State (except when a Service is removed&lt;/P&gt;&lt;P&gt;from the softkey template).&lt;/P&gt;&lt;P&gt;- Not sure if removing softkeys from the built-in templates is allowed (are you doing this?)&lt;/P&gt;&lt;P&gt;- Perhaps executing the SQL from the CUCM command line ('run sql delete from softkeyset where pkid="uuid"') might give a more helpful error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 16:06:33 GMT</pubDate>
    <dc:creator>dstaudt</dc:creator>
    <dc:date>2015-03-12T16:06:33Z</dc:date>
    <item>
      <title>10.5.2 Delete Softkey Error</title>
      <link>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418521#M9</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to delete a softkey via SQL.&lt;/P&gt;&lt;PRE&gt;delete from softkeyset
where pkid = '36b2c65e-f321-4bbe-851b-584ab2612efb';&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over the AXL I will just receive "Failure" as an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AXL Trace on the CUCM isn't really helping&lt;/P&gt;&lt;PRE&gt;2015-03-12 06:31:28,809 INFO&amp;nbsp; [http-bio-443-exec-21] servletRouters.AXLAlpha - AXL REQUEST : 

 delete from softkeyset
where pkid = '36b2c65e-f321-4bbe-851b-584ab2612efb'
2015-03-12 06:31:28,810 DEBUG [http-bio-443-exec-21] servletRouters.AXLAlpha - Request processed by AXIS
2015-03-12 06:31:28,814 DEBUG [http-bio-443-exec-21] axlapiservice.Handler - dbConnector Initialization in handler.java
2015-03-12 06:31:28,814 DEBUG [http-bio-443-exec-21] axlapiservice.Axl - Connection given to current thread
2015-03-12 06:31:28,815 DEBUG [http-bio-443-exec-21] axlapiservice.Axl - Thread is same so connection is reused, name of thread : http-bio-443-exec-21
2015-03-12 06:31:28,816 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - In begin transaction of AXLCallflow and created pub connector
2015-03-12 06:31:28,816 DEBUG [http-bio-443-exec-21] axlapiservice.AXLAPIServiceSkeleton - In ExecuteSQLQueryResponseDocument
2015-03-12 06:31:28,816 DEBUG [http-bio-443-exec-21] axlapiservice.ExecuteSqlHandler - delete from softkeyset
where pkid = '36b2c65e-f321-4bbe-851b-584ab2612efb'
2015-03-12 06:31:28,887 WARN&amp;nbsp; [http-bio-443-exec-21] axlapiservice.ExecuteSqlHandler - java.sql.SQLException: -1
2015-03-12 06:31:28,888 ERROR [http-bio-443-exec-21] axlapiservice.AXLAPIServiceSkeleton - SQL EXCEPTION has occurred, will be sending you the exact error Info
2015-03-12 06:31:28,888 DEBUG [http-bio-443-exec-21] axlapiservice.Axl - Thread is same so connection is reused, name of thread : http-bio-443-exec-21
2015-03-12 06:31:28,892 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - In rollback transaction and created pub connector
2015-03-12 06:31:28,893 DEBUG [http-bio-443-exec-21] axlapiservice.Axl - Connection closed and hashmap entry removed in AXL.java closing connection 
2015-03-12 06:31:28,893 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - Rollback transaction connector object closed
2015-03-12 06:31:28,894 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - In AXL CAll Flow class, method getSOAPError
2015-03-12 06:31:28,894 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - checking typeDBErrors for sql exception name
2015-03-12 06:31:28,903 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - Setting soap fault
2015-03-12 06:31:28,904 DEBUG [http-bio-443-exec-21] axlapiservice.AXLCallFlow - Setting soap fault2
2015-03-12 06:31:28,908 DEBUG [http-bio-443-exec-21] servletRouters.AXLAlpha - soapenv:ClientFailure-1FailureexecuteSQLUpdate2015-03-12 06:31:28,908 DEBUG [http-bio-443-exec-21] servletRouters.AXLAlpha - Finished processing request
2015-03-12 06:31:28,908 INFO&amp;nbsp; [http-bio-443-exec-21] filters.TimingFilter - Request 1426070393579 was processed in 132ms
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an Idea about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 13:28:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418521#M9</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2015-03-12T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: 10.5.2 Delete Softkey Error</title>
      <link>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418522#M10</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you are using &amp;lt;executeSqlQuery&amp;gt; for read-only SQL requests, and &amp;lt;executeSqlUpdate&amp;gt; for any write requests (like this 'delete' operation)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 15:13:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418522#M10</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2015-03-12T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: 10.5.2 Delete Softkey Error</title>
      <link>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418523#M11</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for the reply.&lt;/P&gt;&lt;P&gt;I checked it again and it IS an executeSqlUpdate.&lt;/P&gt;&lt;P&gt;Here is the complete SOAP Request:&lt;/P&gt;&lt;PRE&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;soap:Envelope xmlns:soap="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema" rel="nofollow" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soap:Body&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;executeSQLUpdate xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/10.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/10.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sql xmlns=""&amp;gt;delete from softkeyset where pkid = '36b2c65e-f321-4bbe-851b-584ab2612efb'&amp;lt;/sql&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/executeSQLUpdate&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soap:Body&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/soap:Envelope&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 15:21:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418523#M11</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2015-03-12T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: 10.5.2 Delete Softkey Error</title>
      <link>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418524#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Check that the pkid you are trying to delete is actually an existing row pkid in the softkeyset table (sure you've already done this)&lt;/P&gt;&lt;P&gt;- The Data Dictionary mentions this restriction when deleting rows from softkeyset: &lt;/P&gt;&lt;P&gt;Mandatory Softkeys cannot be removed from a Call State (except when a Service is removed&lt;/P&gt;&lt;P&gt;from the softkey template).&lt;/P&gt;&lt;P&gt;- Not sure if removing softkeys from the built-in templates is allowed (are you doing this?)&lt;/P&gt;&lt;P&gt;- Perhaps executing the SQL from the CUCM command line ('run sql delete from softkeyset where pkid="uuid"') might give a more helpful error message&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 16:06:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418524#M12</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2015-03-12T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: 10.5.2 Delete Softkey Error</title>
      <link>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418525#M13</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;- Perhaps executing the SQL from the CUCM command line ('run sql delete from softkeyset where pkid="uuid"') might give a more helpful error message&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;the result on the command line was "-1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;dstaudt wrote:&lt;/P&gt;
&lt;P&gt;- The Data Dictionary mentions this restriction when deleting rows from softkeyset:&lt;/P&gt;
&lt;P&gt;Mandatory Softkeys cannot be removed from a Call State (except when a Service is removed&lt;/P&gt;
&lt;P&gt;from the softkey template).&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That was the problem...&lt;/P&gt;&lt;P&gt;My first test was just a simple "Delete from softkeyset where fksoftkeytemplate = 'XXXXXXXXXX' and tkcallstate = 'X'"&lt;/P&gt;&lt;P&gt;this didn't work (with the error above) so I just grabbed a random guid and tried it also with it. And this guid was a mandatory field which leaded to my confusion because&amp;nbsp; I just wanted to delete a single entry.&lt;/P&gt;&lt;P&gt;I wanted to remove everything and then add the softkeys one by one with insert statements. But I guess I have to play with update/insert/and delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 08:42:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/10-5-2-delete-softkey-error/m-p/3418525#M13</guid>
      <dc:creator>Greenberet</dc:creator>
      <dc:date>2015-03-13T08:42:59Z</dc:date>
    </item>
  </channel>
</rss>

