This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

API import successful - but failed

I was importing a firewall rule on a remote XGS and used a XML file for that.

While the GUI showed green message after importing .tar file "API import successful" the rule got not created.

The apiparser.log shows issues with the XML structure.

INFO      Aug 10 09:49:06Z [28730]: Tar File : /sdisk/API-1660124945370225.tar is created.INFO      Aug 10 09:55:36Z [3748]: Sanity check not required. And XML file is valid. xml: /sdisk/api-2022-08-10-11-55-36/Entities.xml.
INFO      Aug 10 09:55:36Z [3748]: Start Set Handler,Component : FirewallRule
ERROR     Aug 10 09:55:36Z [3748]: Key:ISCrEntity is not found in RequestMap File for FirewallRule.
WARNING   Aug 10 09:55:36Z [3748]: Can't get the <Add/Update> element from map file, So Mode value is 'Add'.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="tempsourceid", xmlelement="/FirewallRule/NetworkPolicy/SourceNetworks/Network" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="srczones_exception", xmlelement="/FirewallRule/NetworkPolicy/Exclusions/SourceZones/Zone" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="dstzones_exception", xmlelement="/FirewallRule/NetworkPolicy/Exclusions/DestinationZones/Zone" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="sourceid_exception", xmlelement="/FirewallRule/NetworkPolicy/Exclusions/SourceNetworks/Network" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="serviceid_exception", xmlelement="/FirewallRule/NetworkPolicy/Exclusions/Services/Service" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="destinationid_exception", xmlelement="/FirewallRule/NetworkPolicy/Exclusions/DestinationNetworks/Network" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: json object not found with key="tempsourceid" to handle logicaloperator.
ERROR     Aug 10 09:55:36Z [3748]: Parser Error: xmlvalue for jsonkey="sourceid", xmlelement="/FirewallRule/NetworkPolicy/SourceNetworks/Network" cannot be found in request file.
ERROR     Aug 10 09:55:36Z [3748]: type != const in logicaloperator.So string comparision is done.
ERROR     Aug 10 09:55:36Z [3748]: type != const in logicaloperator.So string comparision is done.
ERROR     Aug 10 09:55:37Z [3748]: Flag setting for this opcode is 16.
INFO      Aug 10 09:55:37Z [3748]: Opcode response: status:500

Is a green success on the GUI OK when it actually fails?



This thread was automatically locked due to age.