<?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: Error when using Import/Export script - not in singular_to_plural_dictionary[client.api_version] in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277871#M9431</link>
    <description>&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;MDSM running R82 JHF Take 91&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2026 12:26:11 GMT</pubDate>
    <dc:creator>Andrew-OCD</dc:creator>
    <dc:date>2026-06-05T12:26:11Z</dc:date>
    <item>
      <title>Error when using Import/Export script - not in singular_to_plural_dictionary[client.api_version]</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277870#M9430</link>
      <description>&lt;P&gt;Dear Check Mates,&lt;/P&gt;&lt;P&gt;I recently uploaded the latest version of the following files:-&lt;/P&gt;&lt;P&gt;ExportImportPolicyPackage-master&lt;/P&gt;&lt;P&gt;cp_mgmt_api_python_sdk-master&lt;/P&gt;&lt;P&gt;to my MDSM and when I try to use the import_export_package.py I am getting the following error on a relatively simple policy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the error I get returned:-&lt;/P&gt;&lt;P&gt;Exporting Access Control layers&lt;/P&gt;&lt;P&gt;Exporting Access Layer [TEMPLATE-FWOT001-Policy Network]&lt;/P&gt;&lt;P&gt;Retrieved 14 out of 14 rules (100%)&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "/home/Andrew/Python/ExportImportPolicyPackage-master/import_export_package.py", line 73, in &amp;lt;module&amp;gt;&lt;BR /&gt;export_package(client, args)&lt;BR /&gt;File "/home/Andrew/Python/ExportImportPolicyPackage-master/exporting/export_package.py", line 44, in export_package&lt;BR /&gt;= export_access_rulebase(show_package.data["name"], access_layer["name"], access_layer["uid"], client, timestamp, tar_file)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/home/Andrew/Python/ExportImportPolicyPackage-master/exporting/export_access_rulebase.py", line 16, in export_access_rulebase&lt;BR /&gt;get_query_rulebase_data(client, "access-rulebase", {"name": layer, "uid": layer_uid, "package": package})&lt;BR /&gt;File "/home/Andrew/Python/ExportImportPolicyPackage-master/exporting/export_objects.py", line 118, in get_query_rulebase_data&lt;BR /&gt;check_for_export_error(general_object, client)&lt;BR /&gt;File "/home/Andrew/Python/ExportImportPolicyPackage-master/utils.py", line 474, in check_for_export_error&lt;BR /&gt;general_object["type"] not in singular_to_plural_dictionary[client.api_version]):&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;KeyError: '2.0.1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output I get in the import_export.log:-&lt;/P&gt;&lt;P&gt;Checking existence of package [TEMPLATE-FWOT001-Policy]&lt;/P&gt;&lt;P&gt;Exporting Access Control layers&lt;/P&gt;&lt;P&gt;Exporting Access Layer [TEMPLATE-FWOT001-Policy Network]&lt;/P&gt;&lt;P&gt;Getting layer information for layer [TEMPLATE-FWOT001-Policy Network]&lt;/P&gt;&lt;P&gt;Getting information from show-access-rulebase&lt;/P&gt;&lt;P&gt;Retrieved 14 out of 14 rules (100%)&lt;/P&gt;&lt;P&gt;##Show presented object of type RulebaseAction with name Accept&lt;/P&gt;&lt;P&gt;##Show presented object of type CpmiAnyObject with name Any&lt;/P&gt;&lt;P&gt;##Show presented object of type host with name BROADCAST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to perform this export with multiple policies and I get the same error message.&lt;/P&gt;&lt;P&gt;Has anybody else seen such behaviour and can suggest a course of action to track down the fault?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 12:24:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277870#M9430</guid>
      <dc:creator>Andrew-OCD</dc:creator>
      <dc:date>2026-06-05T12:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using Import/Export script - not in singular_to_plural_dictionary[client.api_version]</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277871#M9431</link>
      <description>&lt;P&gt;FYI&lt;/P&gt;&lt;P&gt;MDSM running R82 JHF Take 91&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 12:26:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277871#M9431</guid>
      <dc:creator>Andrew-OCD</dc:creator>
      <dc:date>2026-06-05T12:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using Import/Export script - not in singular_to_plural_dictionary[client.api_version]</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277872#M9432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/42228"&gt;@Andrew-OCD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will forward your post to the relevant owners in R&amp;amp;D to see if they can help&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2026 12:42:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-when-using-Import-Export-script-not-in-singular-to-plural/m-p/277872#M9432</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2026-06-05T12:42:03Z</dc:date>
    </item>
  </channel>
</rss>

