FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
smkml
Staff
Staff
Article Id 364840
Description

 

This article describes how to troubleshoot when importing the Jinja script fails showing 'response with errors'.

 

import jinja script error.png

Scope

 

FortiManager.

 

Solution

 

In FortiManager, jinja2 has an 'import' function where it uses a whole content/template as a variable.

 

For example,  two templates 'main' and 'header' below shows that 'main' uses 'header' content as a variable:

 

import header.png

 

import main.png

 

If only the 'main' template is imported, it will fail due to the unrecognized value of the 'header', and the error from the browser by enabling the GUI debug will appear.

 

gui debug.png

 

Proceed to import the 'header' template first and import the 'main' template following that.

import both.gif