Lior Kirshner
Lior Kirshner

Reputation: 706

Apache Nifi error: The specified template is not in a valid format

I saved a flow in JSON format, but when tried to load it as a template the following error appeared: "The specified template is not in a valid format".

enter image description here

I noticed the other templates I uploaded were XML files and not JSON. How can the template be saved as XML?

Upvotes: 0

Views: 1272

Answers (1)

Lior Kirshner
Lior Kirshner

Reputation: 706

Saving a flow is a different action than saving a template. The template should be saved by "Create Template" action, which saves it in the templates list of the Nifi instance. Then, it is accessible via the Templates menu item:

enter image description here

Under the templates list, there is an option to download a selected template as an XML file. With that, the template can be exported and uploaded into another Nifi instance correctly without any error.

Upvotes: 3

Related Questions