Hi DeltaG,
I have the exact same error and it seems to be at the exact same rule number if i look in api.log 🙂
Did you manage to solve this ?
See below from my api.elg
"type" : "nat-rule",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"rule-number" : 39,
"method" : "static",
"auto-generated" : false,
"original-destination" : "af1d8fc3-f59e-476f-a233-c31de18d9fde",
"translated-destination" : "85c0f50f-6d8a-4528-88ab-5fb11d8fe16c",
"original-source" : "b58c828c-3293-44a8-baf5-f7c8b6e01c57",
"translated-source" : "da94a8fc-a41e-4b6f-8e6b-3e905c0d10dd",
"original-service" : "97aeb369-9aea-11d5-bd16-0090272ccb30",
"translated-service" : "85c0f50f-6d8a-4528-88ab-5fb11d8fe16c",
"meta-info" : {
"lock" : "unlocked",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1557088214832,
"iso-8601" : "2019-05-05T22:30+0200"
},
"last-modifier" : "System",
"creation-time" : {
"posix" : 1557088214832,
"iso-8601" : "2019-05-05T22:30+0200"
},
"creator" : "System"
},
"comments" : "",
"enabled" : true,
And the error when running the export :
Exporting NAT policy
Getting information from show-nat-rulebase
Retrieved 50 out of 388 rules (12%)
Traceback (most recent call last):
File "import_export_package.py", line 59, in <module>
export_package(client, args)
File "/home/darren/Downloads/Check Point/automation/cp_mgmt_apit_git_clone/ExportImportPolicyPackage/exporting/export_package.py", line 59, in export_package
nat_data_dict, nat_unexportable_objects = export_nat_rulebase(show_package.data["name"], client)
File "/home/darren/Downloads/Check Point/automation/cp_mgmt_apit_git_clone/ExportImportPolicyPackage/exporting/export_nat_rulebase.py", line 13, in export_nat_rulebase
rulebase_rules, general_objects = get_query_nat_rulebase_data(client, {"package": package})
File "/home/darren/Downloads/Check Point/automation/cp_mgmt_apit_git_clone/ExportImportPolicyPackage/exporting/export_objects.py", line 174, in get_query_nat_rulebase_data
if "Automatic Generated Rules : " in rulebase_item["name"]:
KeyError: 'name'
Any info would be appreciated 🙂