<?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 insert device using sql - incorrect name validation in Management</title>
    <link>https://community.cisco.com/t5/management/insert-device-using-sql-incorrect-name-validation/m-p/3573214#M2287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that I've been unable to somehow change the name my created device templates (see other threads), I've figured I'd give a direct SQL insert a go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created a simple SQL query to generate a TCT template. The idea then being to update the device with AXL later (copying all the values from something that's already there). So here's my insert SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('TCTMTRATEMPLATE2', 253, 562, 449, 11, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That returns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specified name has invalid characters or is not formatted correctly for this device type.Valid characters include [a-zA-Z0-9._-]{1,50}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and obviously that's incorrect. I mean.. the name of the insert should easily satisfy the regex. But it seems to be the same regex that is being returned when you try to change the name later one (be it with AXL or an SQL update). And I wonder how on earth this does not trip up ccmadmin. Shouldn't the DBL perform the same kind of data validation regardless of where the data originates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AXL log is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,492 DEBUG [http-bio-443-exec-127] filters.TimingFilter - Received request 1505911709320 from sdkuser at IP 10.90.28.61&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,492 DEBUG [http-bio-443-exec-127] wrappers.RequestHeaderWrapper - Inside Request Header Wrapper&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,493 DEBUG [http-bio-443-exec-127] filters.AuthenticationFilter - Operation:executeSQLUpdate api:executeSQLUpdate&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,513 DEBUG [http-bio-443-exec-127] filters.ThrottlingFilter - DBLCNQueue Count: 0&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,513 DEBUG [http-bio-443-exec-127] filters.ThrottlingFilter - Successfully set the value of counter: 4 value: 0&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,514 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Checking request version [11.5]&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,514 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Checking if requested api [executeSQLUpdate] the implementedHandlers list&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,514 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - [executeSQLUpdate] is not in the implementedHandlers list&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,515 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Checking if version is 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,515 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - function to check if the version is 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,516 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - version is not 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,516 INFO&amp;nbsp; [http-bio-443-exec-127] servletRouters.AXLAlpha - Executing api: executeSQLUpdate in axis&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,516 DEBUG [http-bio-443-exec-127] wrappers.RequestNamespaceWrapper - Inside Request Wrapper&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,517 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - AXL REQUEST : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &amp;lt;soapenv:Envelope xmlns:soapenv="&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:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Header/&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;ns:executeSQLUpdate sequence="0"&amp;gt; &amp;lt;sql&amp;gt;insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values(&amp;amp;apos;TCTMTRATEMPLATE2&amp;amp;apos;, 253, 562, 449, 11, &amp;amp;apos;cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d&amp;amp;apos;, &amp;amp;apos;5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076&amp;amp;apos;)&amp;lt;/sql&amp;gt;&amp;lt;/ns:executeSQLUpdate&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,518 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Request processed by AXIS&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,520 DEBUG [http-bio-443-exec-127] axlapiservice.Handler - dbConnector Initialization in handler.java&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,521 DEBUG [http-bio-443-exec-127] axlapiservice.Axl - Connection given to current thread&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,521 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - In begin transaction of AXLCallflow and created pub connector&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,521 DEBUG [http-bio-443-exec-127] axlapiservice.AXLAPIServiceSkeleton - In ExecuteSQLQueryResponseDocument&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,522 DEBUG [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('TCTMTRATEMPLATE2', 253, 562, 449, 11, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,522 DEBUG [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - sqlQuery:insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('tctmtratemplate2', 253, 562, 449, 11, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,522 DEBUG [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - userRankTable:&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,658 WARN&amp;nbsp; [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - java.sql.SQLException: 491&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,658 ERROR [http-bio-443-exec-127] axlapiservice.AXLAPIServiceSkeleton - SQL EXCEPTION has occurred, will be sending you the exact error Info&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,659 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - In rollback transaction and created pub connector&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,659 DEBUG [http-bio-443-exec-127] axlapiservice.Axl - Connection closed and hashmap entry removed in AXL.java closing connection &lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,659 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - Rollback transaction connector object closed&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,660 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - In AXL CAll Flow class, method getSOAPError&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,660 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - checking typeDBErrors for sql exception name&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,660 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - Setting soap fault&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,661 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - Setting soap fault2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-10-27 14:42:16,664 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - &amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&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;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Client&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;The specified name has invalid characters or is not formatted correctly for this device type.Valid characters include [a-zA-Z0-9._-]{1,50}&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;491&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;The specified name has invalid characters or is not formatted correctly for this device type.Valid characters include [a-zA-Z0-9._-]{1,50}&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;executeSQLUpdate&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,664 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Finished processing request&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,665 INFO&amp;nbsp; [http-bio-443-exec-127] filters.TimingFilter - Request 1505911709320 received from sdkuser at ip 10.90.28.61 was processed in 173ms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Oct 2017 12:54:07 GMT</pubDate>
    <dc:creator>stephan.steiner</dc:creator>
    <dc:date>2017-10-27T12:54:07Z</dc:date>
    <item>
      <title>insert device using sql - incorrect name validation</title>
      <link>https://community.cisco.com/t5/management/insert-device-using-sql-incorrect-name-validation/m-p/3573214#M2287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that I've been unable to somehow change the name my created device templates (see other threads), I've figured I'd give a direct SQL insert a go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I created a simple SQL query to generate a TCT template. The idea then being to update the device with AXL later (copying all the values from something that's already there). So here's my insert SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('TCTMTRATEMPLATE2', 253, 562, 449, 11, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That returns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specified name has invalid characters or is not formatted correctly for this device type.Valid characters include [a-zA-Z0-9._-]{1,50}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and obviously that's incorrect. I mean.. the name of the insert should easily satisfy the regex. But it seems to be the same regex that is being returned when you try to change the name later one (be it with AXL or an SQL update). And I wonder how on earth this does not trip up ccmadmin. Shouldn't the DBL perform the same kind of data validation regardless of where the data originates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AXL log is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,492 DEBUG [http-bio-443-exec-127] filters.TimingFilter - Received request 1505911709320 from sdkuser at IP 10.90.28.61&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,492 DEBUG [http-bio-443-exec-127] wrappers.RequestHeaderWrapper - Inside Request Header Wrapper&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,493 DEBUG [http-bio-443-exec-127] filters.AuthenticationFilter - Operation:executeSQLUpdate api:executeSQLUpdate&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,513 DEBUG [http-bio-443-exec-127] filters.ThrottlingFilter - DBLCNQueue Count: 0&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,513 DEBUG [http-bio-443-exec-127] filters.ThrottlingFilter - Successfully set the value of counter: 4 value: 0&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,514 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Checking request version [11.5]&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,514 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Checking if requested api [executeSQLUpdate] the implementedHandlers list&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,514 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - [executeSQLUpdate] is not in the implementedHandlers list&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,515 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Checking if version is 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,515 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - function to check if the version is 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,516 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - version is not 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,516 INFO&amp;nbsp; [http-bio-443-exec-127] servletRouters.AXLAlpha - Executing api: executeSQLUpdate in axis&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,516 DEBUG [http-bio-443-exec-127] wrappers.RequestNamespaceWrapper - Inside Request Wrapper&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,517 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - AXL REQUEST : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &amp;lt;soapenv:Envelope xmlns:soapenv="&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:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Header/&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;ns:executeSQLUpdate sequence="0"&amp;gt; &amp;lt;sql&amp;gt;insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values(&amp;amp;apos;TCTMTRATEMPLATE2&amp;amp;apos;, 253, 562, 449, 11, &amp;amp;apos;cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d&amp;amp;apos;, &amp;amp;apos;5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076&amp;amp;apos;)&amp;lt;/sql&amp;gt;&amp;lt;/ns:executeSQLUpdate&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,518 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Request processed by AXIS&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,520 DEBUG [http-bio-443-exec-127] axlapiservice.Handler - dbConnector Initialization in handler.java&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,521 DEBUG [http-bio-443-exec-127] axlapiservice.Axl - Connection given to current thread&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,521 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - In begin transaction of AXLCallflow and created pub connector&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,521 DEBUG [http-bio-443-exec-127] axlapiservice.AXLAPIServiceSkeleton - In ExecuteSQLQueryResponseDocument&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,522 DEBUG [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('TCTMTRATEMPLATE2', 253, 562, 449, 11, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,522 DEBUG [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - sqlQuery:insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('tctmtratemplate2', 253, 562, 449, 11, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,522 DEBUG [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - userRankTable:&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,658 WARN&amp;nbsp; [http-bio-443-exec-127] axlapiservice.ExecuteSqlHandler - java.sql.SQLException: 491&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,658 ERROR [http-bio-443-exec-127] axlapiservice.AXLAPIServiceSkeleton - SQL EXCEPTION has occurred, will be sending you the exact error Info&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,659 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - In rollback transaction and created pub connector&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,659 DEBUG [http-bio-443-exec-127] axlapiservice.Axl - Connection closed and hashmap entry removed in AXL.java closing connection &lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,659 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - Rollback transaction connector object closed&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,660 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - In AXL CAll Flow class, method getSOAPError&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,660 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - checking typeDBErrors for sql exception name&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,660 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - Setting soap fault&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,661 DEBUG [http-bio-443-exec-127] axlapiservice.AXLCallFlow - Setting soap fault2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-10-27 14:42:16,664 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - &amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&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;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Client&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;The specified name has invalid characters or is not formatted correctly for this device type.Valid characters include [a-zA-Z0-9._-]{1,50}&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;491&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;The specified name has invalid characters or is not formatted correctly for this device type.Valid characters include [a-zA-Z0-9._-]{1,50}&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;executeSQLUpdate&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,664 DEBUG [http-bio-443-exec-127] servletRouters.AXLAlpha - Finished processing request&lt;/P&gt;&lt;P&gt;2017-10-27 14:42:16,665 INFO&amp;nbsp; [http-bio-443-exec-127] filters.TimingFilter - Request 1505911709320 received from sdkuser at ip 10.90.28.61 was processed in 173ms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 12:54:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/insert-device-using-sql-incorrect-name-validation/m-p/3573214#M2287</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2017-10-27T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: insert device using sql - incorrect name validation</title>
      <link>https://community.cisco.com/t5/management/insert-device-using-sql-incorrect-name-validation/m-p/3573215#M2288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I finally figured out how to bypass the incorrect validation. But, more validation in the DBL that is erroneous. Inserting a TCT like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprofile, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('TCT MTRATEMPLATE2', 253, 562, 449, 0, 4, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Security Profile is not supported for this device-Security Profile is not supported for this device-430&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahem... when I look at my Jabber for iPhone templates, I see that they do have the same security profile assigned as I'm trying to assign. So, I just wonder how ccmadmin manages to insert records that not only contain a value, but the very specific value I'm trying to insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AXL logs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,004 DEBUG [http-bio-443-exec-212] filters.TimingFilter - Received request 1505911709604 from sdkuser at IP 10.90.28.61&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,004 DEBUG [http-bio-443-exec-212] wrappers.RequestHeaderWrapper - Inside Request Header Wrapper&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,004 DEBUG [http-bio-443-exec-212] filters.AuthenticationFilter - Operation:executeSQLUpdate api:executeSQLUpdate&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,024 DEBUG [http-bio-443-exec-212] filters.ThrottlingFilter - DBLCNQueue Count: 0&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,024 DEBUG [http-bio-443-exec-212] filters.ThrottlingFilter - Successfully set the value of counter: 4 value: 0&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,024 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - Checking request version [11.5]&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,025 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - Checking if requested api [executeSQLUpdate] the implementedHandlers list&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,025 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - [executeSQLUpdate] is not in the implementedHandlers list&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,025 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - Checking if version is 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,025 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - function to check if the version is 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,025 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - version is not 8.x&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,025 INFO&amp;nbsp; [http-bio-443-exec-212] servletRouters.AXLAlpha - Executing api: executeSQLUpdate in axis&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,026 DEBUG [http-bio-443-exec-212] wrappers.RequestNamespaceWrapper - Inside Request Wrapper&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,026 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - AXL REQUEST : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &amp;lt;soapenv:Envelope xmlns:soapenv="&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:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/11.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;soapenv:Header/&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;ns:executeSQLUpdate sequence="0"&amp;gt; &amp;lt;sql&amp;gt;insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprofile, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values(&amp;amp;apos;TCT MTRATEMPLATE2&amp;amp;apos;, 253, 562, 449, 0, 4, &amp;amp;apos;cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d&amp;amp;apos;, &amp;amp;apos;5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076&amp;amp;apos;)&amp;lt;/sql&amp;gt;&amp;lt;/ns:executeSQLUpdate&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,026 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - Request processed by AXIS&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,028 DEBUG [http-bio-443-exec-212] axlapiservice.Handler - dbConnector Initialization in handler.java&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,029 DEBUG [http-bio-443-exec-212] axlapiservice.Axl - Connection given to current thread&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,029 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - In begin transaction of AXLCallflow and created pub connector&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,029 DEBUG [http-bio-443-exec-212] axlapiservice.AXLAPIServiceSkeleton - In ExecuteSQLQueryResponseDocument&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,030 DEBUG [http-bio-443-exec-212] axlapiservice.ExecuteSqlHandler - insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprofile, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('TCT MTRATEMPLATE2', 253, 562, 449, 0, 4, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,030 DEBUG [http-bio-443-exec-212] axlapiservice.ExecuteSqlHandler - sqlQuery:insert into device(name, tkclass, tkmodel, tkproduct, tkdeviceprofile, tkdeviceprotocol, fkphonetemplate, fksecurityprofile) values('tct mtratemplate2', 253, 562, 449, 0, 4, 'cfd9c6fb-b9fa-4a2b-935c-fc5e8a859f5d', '5cd3a1a0-98b9-4a97-acb0-b7a50e5c5076')&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,030 DEBUG [http-bio-443-exec-212] axlapiservice.ExecuteSqlHandler - userRankTable:&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,119 WARN&amp;nbsp; [http-bio-443-exec-212] axlapiservice.ExecuteSqlHandler - java.sql.SQLException: 430&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,120 ERROR [http-bio-443-exec-212] axlapiservice.AXLAPIServiceSkeleton - SQL EXCEPTION has occurred, will be sending you the exact error Info&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,120 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - In rollback transaction and created pub connector&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,121 DEBUG [http-bio-443-exec-212] axlapiservice.Axl - Connection closed and hashmap entry removed in AXL.java closing connection &lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,121 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - Rollback transaction connector object closed&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,121 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - In AXL CAll Flow class, method getSOAPError&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,122 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - checking typeDBErrors for sql exception name&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,122 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - Setting soap fault&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,122 DEBUG [http-bio-443-exec-212] axlapiservice.AXLCallFlow - Setting soap fault2&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2017-10-27 17:32:21,126 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - &amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&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;"&amp;gt;&amp;lt;soapenv:Body&amp;gt;&amp;lt;soapenv:Fault&amp;gt;&amp;lt;faultcode&amp;gt;soapenv:Client&amp;lt;/faultcode&amp;gt;&amp;lt;faultstring&amp;gt;Security Profile is not supported for this device&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;430&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;Security Profile is not supported for this device&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;executeSQLUpdate&amp;lt;/request&amp;gt;&amp;lt;/axlError&amp;gt;&amp;lt;/detail&amp;gt;&amp;lt;/soapenv:Fault&amp;gt;&amp;lt;/soapenv:Body&amp;gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,126 DEBUG [http-bio-443-exec-212] servletRouters.AXLAlpha - Finished processing request&lt;/P&gt;&lt;P&gt;2017-10-27 17:32:21,126 INFO&amp;nbsp; [http-bio-443-exec-212] filters.TimingFilter - Request 1505911709604 received from sdkuser at ip 10.90.28.61 was processed in 122ms&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 15:42:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/insert-device-using-sql-incorrect-name-validation/m-p/3573215#M2288</guid>
      <dc:creator>stephan.steiner</dc:creator>
      <dc:date>2017-10-27T15:42:26Z</dc:date>
    </item>
  </channel>
</rss>

