<?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: updateCSS error in Management</title>
    <link>https://community.cisco.com/t5/management/updatecss-error/m-p/3707213#M2969</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'index' attribute is the position in the list of partitions. So, if you already have 3 partitions in your CSS, then you want to use an index of 4 (or greater).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you're seeing is a 'unique constraint' violation, which means you're trying to duplicate something.&amp;nbsp; My guess is you already have a partition at index 0. Or possibly you have to start at 1. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be nice if you could tell AXL "add this partition to the end of the list", but I don't know if it works that way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 15:30:51 GMT</pubDate>
    <dc:creator>dcburleigh</dc:creator>
    <dc:date>2018-09-14T15:30:51Z</dc:date>
    <item>
      <title>updateCSS error</title>
      <link>https://community.cisco.com/t5/management/updatecss-error/m-p/3695850#M2954</link>
      <description>&lt;P&gt;I was trying to add an existing partition ("pt1") to an existing CSS ("Intl24HrsEnh-CSS833") and got the following server error.&amp;nbsp; How shall I solve this problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, where I can find document that explains each AXL API?&amp;nbsp; The reference guide is pretty much useless.&amp;nbsp; For example, in updateCSS API, there is "index" element.&amp;nbsp; What is it used for?&amp;nbsp; There's "sequence" attribute.&amp;nbsp; What's it used for?&amp;nbsp; Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOAP request:&lt;/P&gt;
&lt;P&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;" xmlns:ns="&lt;A href="http://www.cisco.com/AXL/API/11.5" target="_blank"&gt;http://www.cisco.com/AXL/API/11.5&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns:updateCss&amp;gt;&lt;BR /&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;name&amp;gt;Intl24HrsEnh-CSS833&amp;lt;/name&amp;gt;&lt;BR /&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;addMembers&amp;gt;&amp;lt;member&amp;gt;&amp;lt;routePartitionName&amp;gt;pt1&amp;lt;/routePartitionName&amp;gt;&amp;lt;index&amp;gt;0&amp;lt;/index&amp;gt;&amp;lt;/member&amp;gt;&amp;lt;/addMembers&amp;gt;&amp;lt;/ns:updateCss&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;BR /&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOAP response:&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;A href="http://schemas.xmlsoap.org/soap/envelope/&amp;quot;&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;Unique" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/"&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;Unique&lt;/A&gt; constraint (informix.mx_74_135_137) violated.&amp;lt;/faultstring&amp;gt;&amp;lt;detail&amp;gt;&amp;lt;axlError&amp;gt;&amp;lt;axlcode&amp;gt;-268&amp;lt;/axlcode&amp;gt;&amp;lt;axlmessage&amp;gt;Unique constraint (informix.mx_74_135_137) violated.&amp;lt;/axlmessage&amp;gt;&amp;lt;request&amp;gt;updateCss&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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 22:54:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/updatecss-error/m-p/3695850#M2954</guid>
      <dc:creator>luoht</dc:creator>
      <dc:date>2018-08-27T22:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: updateCSS error</title>
      <link>https://community.cisco.com/t5/management/updatecss-error/m-p/3707213#M2969</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'index' attribute is the position in the list of partitions. So, if you already have 3 partitions in your CSS, then you want to use an index of 4 (or greater).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error you're seeing is a 'unique constraint' violation, which means you're trying to duplicate something.&amp;nbsp; My guess is you already have a partition at index 0. Or possibly you have to start at 1. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be nice if you could tell AXL "add this partition to the end of the list", but I don't know if it works that way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 15:30:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/updatecss-error/m-p/3707213#M2969</guid>
      <dc:creator>dcburleigh</dc:creator>
      <dc:date>2018-09-14T15:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: updateCSS error</title>
      <link>https://community.cisco.com/t5/management/updatecss-error/m-p/4740877#M3979</link>
      <description>&lt;P&gt;+5 dcburleigh. This saved me some time. In case someone stumbles on this in the future the API will react differently depending on the AXL request.&amp;nbsp; In the past I've used getLineGroup to collect existing members and lineSelectionOrder, then updateLineGroup to append to the end of the list.&amp;nbsp; Trying to update CSS partitions with the same logic I was running into an issue returning 'unique constraint', turns out getLineGroup (return.lineGroup.members.member.lineSelectionOrder) starts at 0, whereas getCss (return.css.members.member.index) starts at 1.&amp;nbsp; So I guess the lesson is partitions are indexed in CSS' starting at 1 and make sure you analyze a get request before trying to update...every time I assume with this API it seems to bite me.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 21:31:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/updatecss-error/m-p/4740877#M3979</guid>
      <dc:creator>derek.fraser</dc:creator>
      <dc:date>2022-12-16T21:31:20Z</dc:date>
    </item>
  </channel>
</rss>

