<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Importing JSON Export into top-level NiFi Flow in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Importing-JSON-Export-into-top-level-NiFi-Flow/m-p/342488#M233747</link>
    <description>&lt;P&gt;If I took an export of the main flow (NiFi Flow) from a server via the Export to JSON option on the right-click menu, how can I import that into a new server as the top-level flow?&amp;nbsp; I know I can create new process groups with the export.&amp;nbsp; But I want to restore the controller services and parameter contexts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could import into a process group, and then move things out again.&amp;nbsp; But, that would also require re-creating all the controller services back at the top level...which would create new UUIDs...and require updating 400-500 processors manually to map them to the new controller services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen various posts about using NiFi registry and the toolkit.&amp;nbsp; But even when I look at that, I don't see how that works with the top-level group.&amp;nbsp; If there is some way to handle this that will require a minimum of reconfiguration on services, processors or process groups after the import, it would be appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 07:57:07 GMT</pubDate>
    <dc:creator>kellerj</dc:creator>
    <dc:date>2026-04-21T07:57:07Z</dc:date>
    <item>
      <title>Importing JSON Export into top-level NiFi Flow</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Importing-JSON-Export-into-top-level-NiFi-Flow/m-p/342488#M233747</link>
      <description>&lt;P&gt;If I took an export of the main flow (NiFi Flow) from a server via the Export to JSON option on the right-click menu, how can I import that into a new server as the top-level flow?&amp;nbsp; I know I can create new process groups with the export.&amp;nbsp; But I want to restore the controller services and parameter contexts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could import into a process group, and then move things out again.&amp;nbsp; But, that would also require re-creating all the controller services back at the top level...which would create new UUIDs...and require updating 400-500 processors manually to map them to the new controller services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen various posts about using NiFi registry and the toolkit.&amp;nbsp; But even when I look at that, I don't see how that works with the top-level group.&amp;nbsp; If there is some way to handle this that will require a minimum of reconfiguration on services, processors or process groups after the import, it would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:57:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Importing-JSON-Export-into-top-level-NiFi-Flow/m-p/342488#M233747</guid>
      <dc:creator>kellerj</dc:creator>
      <dc:date>2026-04-21T07:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Importing JSON Export into top-level NiFi Flow</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Importing-JSON-Export-into-top-level-NiFi-Flow/m-p/342525#M233752</link>
      <description>&lt;P&gt;I did end up finding a hacky way to do this.&amp;nbsp; But something using APIs or the registry would be preferred.&amp;nbsp; It was a multi-step process:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Bring up a new NiFi server.&lt;/LI&gt;&lt;LI&gt;Import the process group from the JSON file into the canvas.&lt;/LI&gt;&lt;LI&gt;Stop the server and copy out flow.xml.gz&lt;/LI&gt;&lt;LI&gt;Rebuild the server to get an empty flow.xml.gz, then stop it again.&lt;/LI&gt;&lt;LI&gt;Unzip and edit both files.&lt;OL&gt;&lt;LI&gt;Copy the contents of the only &amp;lt;processorGroup&amp;gt; tag to replace the contents of the &amp;lt;rootGroup&amp;gt;&lt;/LI&gt;&lt;LI&gt;Update the coordinates in the new root group to 0.0/0.0.&lt;/LI&gt;&lt;LI&gt;Copy the &amp;lt;parameterContexts&amp;gt; over &amp;lt;parameterContexts/&amp;gt; in the new file.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;re-zip the updated file and start up the server.&lt;/LI&gt;&lt;LI&gt;Re-enable broken controller services.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Not pretty, but it worked to restore a server from a JSON export copy I had made with minimal fixes in NiFi itself.&amp;nbsp; If there is no easier way, I hope this helps someone else.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 22:50:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Importing-JSON-Export-into-top-level-NiFi-Flow/m-p/342525#M233752</guid>
      <dc:creator>kellerj</dc:creator>
      <dc:date>2022-04-27T22:50:02Z</dc:date>
    </item>
  </channel>
</rss>

