<?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>topic Re: Modules Issue from Page Import Via API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178247#M83337</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/941678"&gt;@FaramarKolivand&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The json file doesn't contain paths for the modules. It has a reference to them by label, name, and id. I guessing&amp;nbsp; the name and id are going to be diferent depending on the portal the module is in. The labels match the modules correctly. Not sure how Hubspot is referencing the modules since the path is not included when you produce the json file with the API Get command. Maybe from the page template url which tells it the theme to look at? Currently, I have the page template url pointed to the child theme in the portal that I am importing into.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jul 2025 16:12:11 GMT</pubDate>
    <dc:creator>tmcmillan99</dc:creator>
    <dc:date>2025-07-18T16:12:11Z</dc:date>
    <item>
      <title>Modules Issue from Page Import Via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178196#M83333</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm using the API to import a batch of pages. The import is successful but I seem to have a disconnect with the modules once the pages are in the portal. I get the following attached error when viewing the modules in the page edit mode. Not sure what I am missing on the import. The file was created by exporting it out of another portal then adjusting the json so it could be used for the import. Both portals are using the same theme. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any suggestions on what I need to review in order to fix the module disconnect?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, should the page template urls in the import json file point to the main theme or the child theme?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Terry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 14:32:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178196#M83333</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-07-18T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modules Issue from Page Import Via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178236#M83336</link>
      <description>&lt;P&gt;Is the module path in your JSON matching with the exact path of the module in the destination portal? Also verify the theme and its modules are installed and piblished. If you're using a child theme then your template url should point to your child theme as well.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 15:49:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178236#M83336</guid>
      <dc:creator>FaramarKolivand</dc:creator>
      <dc:date>2025-07-18T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modules Issue from Page Import Via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178247#M83337</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/941678"&gt;@FaramarKolivand&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The json file doesn't contain paths for the modules. It has a reference to them by label, name, and id. I guessing&amp;nbsp; the name and id are going to be diferent depending on the portal the module is in. The labels match the modules correctly. Not sure how Hubspot is referencing the modules since the path is not included when you produce the json file with the API Get command. Maybe from the page template url which tells it the theme to look at? Currently, I have the page template url pointed to the child theme in the portal that I am importing into.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 16:12:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178247#M83337</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-07-18T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modules Issue from Page Import Via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178279#M83338</link>
      <description>&lt;P&gt;That's correct, HubSpot assign unique IDs per portal, so the ID and name values can be different between portals even if the labels match. If you run a GET in the destination portal, you should be able to get the correct ID and name, no?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 17:29:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1178279#M83338</guid>
      <dc:creator>FaramarKolivand</dc:creator>
      <dc:date>2025-07-18T17:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modules Issue from Page Import Via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1190026#M83811</link>
      <description>&lt;P&gt;You’re right,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13203"&gt;@tmcmillan99&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This usually comes down to HubSpot assigning unique IDs per portal. Even if the labels look the same, the underlying name and id values from your source portal won’t map cleanly once you import into a different one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That’s why after exporting, you’ll need to run a GET request for modules in the destination portal to grab their actual IDs and update your JSON before re-importing (docs here:&amp;nbsp;&lt;A title="cms/source-code" href="https://developers.hubspot.com/docs/guides/api/cms/source-code" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/cms/source-code&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the theme question: if you’re working off a child theme in the target portal, your page_template_url should point there. HubSpot resolves modules relative to the active template&amp;nbsp;&amp;nbsp;&lt;A title="api/cms/pages" href="https://developers.hubspot.com/docs/guides/api/cms/pages" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/guides/api/cms/pages&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also double-check that all modules are published and paths align in the new portal. If any module is missing or unpublished, HubSpot can’t resolve it and you’ll get that disconnect error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cross-portal imports tend to be brittle because IDs aren’t portable. The clean fix is always to fetch fresh IDs from the target portal and adjust the JSON accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that clears it up, let me know if that makes the error go away.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 17:19:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1190026#M83811</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-08-18T17:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modules Issue from Page Import Via API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1190072#M83817</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537570"&gt;@RubenBurdin&lt;/a&gt;&amp;nbsp;Thanks for the followup reply. Makes total sense concerning the ids on the modules. The next time I do the export/import, I will do your suggestion in updating the module ids from the new portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 18:54:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Modules-Issue-from-Page-Import-Via-API/m-p/1190072#M83817</guid>
      <dc:creator>tmcmillan99</dc:creator>
      <dc:date>2025-08-18T18:54:21Z</dc:date>
    </item>
  </channel>
</rss>

