<?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 Checkpoint - task from show-changes API command fails in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-task-from-show-changes-API-command-fails/m-p/129509#M6237</link>
    <description>&lt;P&gt;I would like to use the show-changes command but it fails with "&lt;SPAN&gt;The show-changes operation failed". The error does not tell me why it failed so I am not able to troubleshoot.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some experimentation. And here are the results. Let's say I have 90 changes in total during the past 30 days. If I run the show-changes command with the body:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "from-date": "2021-08-16",
    "to-date": "2021-09-15",
    "limit": 100
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Then I use the returned task-id to get the changes, I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "task-id": "&amp;lt;&amp;lt;TASK_ID&amp;gt;&amp;gt;",
    "task-name": "Show Changes",
    "status": "failed",
    "progress-percentage": 100,
    "progress-description": "The show-changes operation failed",
    "suppressed": false
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;---&lt;/P&gt;&lt;P&gt;So I tried to limit each task to 20, then use the offset to get succeeding changes. This led to the &lt;STRONG&gt;first task succeeding&lt;/STRONG&gt;, and &lt;STRONG&gt;the later task(s) failing&lt;/STRONG&gt; with the same returned body as the one above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am not able to get the entire changes made during the period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 12:44:59 GMT</pubDate>
    <dc:creator>toubar</dc:creator>
    <dc:date>2021-09-15T12:44:59Z</dc:date>
    <item>
      <title>Checkpoint - task from show-changes API command fails</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-task-from-show-changes-API-command-fails/m-p/129509#M6237</link>
      <description>&lt;P&gt;I would like to use the show-changes command but it fails with "&lt;SPAN&gt;The show-changes operation failed". The error does not tell me why it failed so I am not able to troubleshoot.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some experimentation. And here are the results. Let's say I have 90 changes in total during the past 30 days. If I run the show-changes command with the body:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "from-date": "2021-08-16",
    "to-date": "2021-09-15",
    "limit": 100
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Then I use the returned task-id to get the changes, I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{
    "task-id": "&amp;lt;&amp;lt;TASK_ID&amp;gt;&amp;gt;",
    "task-name": "Show Changes",
    "status": "failed",
    "progress-percentage": 100,
    "progress-description": "The show-changes operation failed",
    "suppressed": false
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;---&lt;/P&gt;&lt;P&gt;So I tried to limit each task to 20, then use the offset to get succeeding changes. This led to the &lt;STRONG&gt;first task succeeding&lt;/STRONG&gt;, and &lt;STRONG&gt;the later task(s) failing&lt;/STRONG&gt; with the same returned body as the one above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I am not able to get the entire changes made during the period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 12:44:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-task-from-show-changes-API-command-fails/m-p/129509#M6237</guid>
      <dc:creator>toubar</dc:creator>
      <dc:date>2021-09-15T12:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint - task from show-changes API command fails</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-task-from-show-changes-API-command-fails/m-p/129533#M6238</link>
      <description>&lt;P&gt;You may try restarting the management server.&lt;BR /&gt;Otherwise I recommend a TAC case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 15:53:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-task-from-show-changes-API-command-fails/m-p/129533#M6238</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-09-15T15:53:07Z</dc:date>
    </item>
  </channel>
</rss>

