<?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: Custom URL Category update via API returns &amp;quot;Edit breaks config validity&amp;quot; error in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39630#M917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did... I think it turned out to be a bug in my script, but I can't remember exactly what it was.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 18:12:28 GMT</pubDate>
    <dc:creator>${userLoginName}</dc:creator>
    <dc:date>2014-11-03T18:12:28Z</dc:date>
    <item>
      <title>Custom URL Category update via API returns "Edit breaks config validity" error</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39626#M913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to excellent guidance found elsewhere (&lt;A href="https://live.paloaltonetworks.com/message/16433"&gt;using panxapi to update a custom-url-category profile from a file&lt;/A&gt;), I was successfully and reliably able to add and update custom URL categories via the API.&amp;nbsp; Recently something changed that caused my scripts to fail.&amp;nbsp; Whenever the API is used to update a custom URL category, it returns "Edit breaks config validity".&amp;nbsp; This happens when updates are made to existing ones or when new lists are added.&amp;nbsp; I can import the file via the GUI or do the same thing via the command line, and they work fine.&amp;nbsp; I've removed the categories, saved, committed, everything I can think of, but the API always returns the same result.&amp;nbsp; I cannot think of a change recently that would have caused this to happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a transcript of a config attempt I just made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;eric@leela:~$ cat testurl.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;&amp;lt;list&amp;gt;&amp;lt;member&amp;gt;www.foobarbaz.com&amp;lt;/member&amp;gt;&amp;lt;/list&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;eric@leela:~$ ~/PAN-perl-20120107/bin/panxapi -t panorama -e testurl.xml "/config/shared/profiles/custom-url-category/entry[@name='BrandNewList']/list"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;edit: Edit breaks config validity status="error" code="12"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;eric@leela:~$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;eric@leela:~$ ssh panapi@panorama&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;Password:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;Welcome panapi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;panapi@Panorama&amp;gt; configure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;Entering configuration mode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;[edit]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;panapi@Panorama# set shared profiles custom-url-category BrandNewList list [ www.foobarbaz.com ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;[edit]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;panapi@Panorama# commit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;.99%.......100%&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;Configuration committed successfully&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;[edit]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;panapi@Panorama#&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 19:17:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39626#M913</guid>
      <dc:creator>${userLoginName}</dc:creator>
      <dc:date>2013-11-18T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL Category update via API returns "Edit breaks config validity" error</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39627#M914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API is a community-supported function, and you may have better luck at the DevCenter, where scripts and such are posted:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://live.paloaltonetworks.com/community/devcenter" style="font-size: 10pt; line-height: 1.5em;"&gt;https://live.paloaltonetworks.com/community/devcenter&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always take a look at your config from a time you knew the script was working under Device &amp;gt; Config Audit, and selecting the current config and comparing it to one at a time the script worked. Maybe a change to something on the firewall is preventing the script from running correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 19:36:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39627#M914</guid>
      <dc:creator>gwesson</dc:creator>
      <dc:date>2013-11-18T19:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL Category update via API returns "Edit breaks config validity" error</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39628#M915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have done a config audit and nothing stands out at this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 20:09:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39628#M915</guid>
      <dc:creator>${userLoginName}</dc:creator>
      <dc:date>2013-11-18T20:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL Category update via API returns "Edit breaks config validity" error</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39629#M916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you ever able to figure this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 15:36:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39629#M916</guid>
      <dc:creator>jslabaugh1</dc:creator>
      <dc:date>2014-10-22T15:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL Category update via API returns "Edit breaks config validity" error</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39630#M917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did... I think it turned out to be a bug in my script, but I can't remember exactly what it was.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:12:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39630#M917</guid>
      <dc:creator>${userLoginName}</dc:creator>
      <dc:date>2014-11-03T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom URL Category update via API returns "Edit breaks config validity" error</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39631#M918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is '&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;-e testurl.xml' should be '-e ./testurl.xml'; otherwise it is not read as a file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;using the Python panxapi.py you could specify '&lt;/SPAN&gt;&lt;SPAN style="font-family: terminal, monaco; font-size: 8pt;"&gt;-e testurl.xml' &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 04:26:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/custom-url-category-update-via-api-returns-quot-edit-breaks/m-p/39631#M918</guid>
      <dc:creator>ksteves1</dc:creator>
      <dc:date>2014-11-04T04:26:58Z</dc:date>
    </item>
  </channel>
</rss>

