Some time when we are pasting configuration on CLI of PA firewall we get “Invalid syntax.” even if the syntax is correct.It generally happens when you are pasting bulk configuration.
We can overcome “Invalid syntax error.” as follows:
admin@PA>set cli terminal width 500
admin@PA>set cli terminal height 500
admin@PA>set cli scripting-mode on
Now paste the commands.