<?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: Management API Error: delete-objects-batch failed in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194724#M8092</link>
    <description>&lt;P&gt;Anything you're aware of&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 20:48:48 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-10-10T20:48:48Z</dc:date>
    <item>
      <title>Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194649#M8088</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am unable to delete some objects via the &lt;FONT face="courier new,courier"&gt;delete-objects-batch&lt;/FONT&gt; call, I get the following error:&lt;/P&gt;&lt;PRE&gt;Batch operation failed. java.lang.RuntimeException: an eclipse error has occurred enable logging on EclipseLinkExceptionHandler to see full error; nested exception is javax.persistence.PersistenceException: java.lang.RuntimeException: an eclipse error has occurred enable logging on EclipseLinkExceptionHandler to see full error&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The request payload is just a list of group names:&lt;/P&gt;&lt;PRE&gt;{"objects":[{"type":"group","list":[{"name":"my_first_group"},{"name":"my_second_group"}]}]}&lt;/PRE&gt;&lt;P&gt;This call is made on the active server in a MDS domain running version R81.20. (Check Point Security Management Server R81.20 - Build 440)&lt;/P&gt;&lt;P&gt;Looking online I found an SK: &lt;A href="https://support.checkpoint.com/results/sk/sk152592" target="_blank" rel="noopener"&gt;https://support.checkpoint.com/results/sk/sk152592&lt;/A&gt;&lt;BR /&gt;However there are no pending changes and restarting the mds processes does not seem to solve the issue.&lt;/P&gt;&lt;P&gt;I cannot see any errors in the $FWDIR logs.&lt;/P&gt;&lt;P&gt;EDIT: The issue only occurs when there are 5 or more objects to be deleted, 1 to 4 objects works fine. The issues does not seem to be linked with a specific object.&lt;/P&gt;&lt;P&gt;EDIT 2: When reaching more than 100 objects to be deleted in the payload the error is masked and the task shows a "Batch operation completed successfully" message even though the operation failed (objects were not deleted).&lt;/P&gt;&lt;P&gt;Does someone have any leads where to search for ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 14:34:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194649#M8088</guid>
      <dc:creator>OSMOZ</dc:creator>
      <dc:date>2023-10-11T14:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194653#M8089</link>
      <description>&lt;P&gt;Single command or a script? Can you delete an object with the same command, if only a single group is in the list?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 11:16:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194653#M8089</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2023-10-10T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194662#M8090</link>
      <description>&lt;P&gt;This request was sent both manually and via a script but I got the same result on both.&lt;/P&gt;&lt;P&gt;I did manage to delete a single object via the batch api.&lt;/P&gt;&lt;P&gt;Would this indicate that one of the groups is causing the issue ? And if so would there be a way to see which one in the server logs ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:48:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194662#M8090</guid>
      <dc:creator>OSMOZ</dc:creator>
      <dc:date>2023-10-10T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194663#M8091</link>
      <description>&lt;P&gt;Experimenting further I figured that the issue only occured when there were 5 or more objects to be deleted, 1 to 4 objects works fine. The issues does not seem to be linked with a specific object.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 13:12:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194663#M8091</guid>
      <dc:creator>OSMOZ</dc:creator>
      <dc:date>2023-10-10T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194724#M8092</link>
      <description>&lt;P&gt;Anything you're aware of&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 20:48:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194724#M8092</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-10-10T20:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194830#M8093</link>
      <description>&lt;P&gt;Continuing my tests I found a new edge case :&lt;BR /&gt;When reaching more than 100 objects to be deleted in the payload the error is masked and the task shows a "Batch operation completed successfully" message even though the operation failed (objects were not deleted).&lt;BR /&gt;Hoping this could help narrow down the cause.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 14:35:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194830#M8093</guid>
      <dc:creator>OSMOZ</dc:creator>
      <dc:date>2023-10-11T14:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Management API Error: delete-objects-batch failed</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194887#M8094</link>
      <description>&lt;P&gt;I suspect the issue is that you're trying to do too many things at once without a "publish" operation.&lt;BR /&gt;We generally recommend this after 100 operations or so.&lt;BR /&gt;I would think the batch APIs would handle more than this, which is why it's probably worth a TAC case to investigate: &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However, I suspect you'll have to do this in smaller batches.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 20:58:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-Error-delete-objects-batch-failed/m-p/194887#M8094</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-10-11T20:58:17Z</dc:date>
    </item>
  </channel>
</rss>

