<?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: Can't upload fields.json via CLI in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958042#M38630</link>
    <description>&lt;P&gt;Here's a little more info. The account where the fields.json is copied from has CMS Hub Professional while the account I am trying to upload it to is CMS Hub Starter. I don't know if that matters. Also the fields.json is created by Hubspot and I am not changing it at all. It's a very large file. Lastly despite the fields.json upload success message, the whole fields panel remains empty as you can see in this screenshot:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fields-module.jpg" style="width: 382px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/114927i61DD84A19B9069C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="fields-module.jpg" alt="fields-module.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 17:33:53 GMT</pubDate>
    <dc:creator>pacobosque</dc:creator>
    <dc:date>2024-04-10T17:33:53Z</dc:date>
    <item>
      <title>Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/957001#M38618</link>
      <description>&lt;P&gt;I'm trying to copy the fields from a module in one account to another account where I want to make the same module. First I use the "Copy JSON" to copy the entire fields.json from the account with the existing module. Then using the CLI in VS Code I use the "hs upload" command to upload the fields.json to the new module in the other account. Each time I look at the module in the Design Manager though the fields continue to be empty. I do see the success message in the CLI: "[SUCCESS] Uploaded file from x to y in the Design Manager of account z". Every other CLI command I am running works just fine, eg. hs list, hs fetch, etc. What do I need to do to get that fields.json imported and active in the module in the other account?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 03:33:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/957001#M38618</guid>
      <dc:creator>pacobosque</dc:creator>
      <dc:date>2024-04-09T03:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/957680#M38624</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/326666"&gt;@pacobosque&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for asking the Community!&lt;BR /&gt;&lt;BR /&gt;Can you share the section of your JSON body that is giving the error, please?&lt;BR /&gt;&lt;BR /&gt;The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'd like to invite a couple of subject matter experts and some Community Members to this conversation: Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/146092"&gt;@sst&lt;/a&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/182538"&gt;@DStaniszewski&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/73772"&gt;@Kevin-C&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/507868"&gt;@FMontenegro&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/254732"&gt;@andireuter&lt;/a&gt;&lt;/SPAN&gt; &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/558829"&gt;@LFilip&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/14564"&gt;@gabriel-nextiny&lt;/a&gt;&lt;/SPAN&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/326666"&gt;@pacobosque&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Also, if anybody else has anything to add and/or share, please feel free to join in the conversation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much and have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 06:42:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/957680#M38624</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-04-10T06:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958042#M38630</link>
      <description>&lt;P&gt;Here's a little more info. The account where the fields.json is copied from has CMS Hub Professional while the account I am trying to upload it to is CMS Hub Starter. I don't know if that matters. Also the fields.json is created by Hubspot and I am not changing it at all. It's a very large file. Lastly despite the fields.json upload success message, the whole fields panel remains empty as you can see in this screenshot:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fields-module.jpg" style="width: 382px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/114927i61DD84A19B9069C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="fields-module.jpg" alt="fields-module.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 17:33:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958042#M38630</guid>
      <dc:creator>pacobosque</dc:creator>
      <dc:date>2024-04-10T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958224#M38635</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/326666"&gt;@pacobosque&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess (and I mean guess) would be invalid json that's not being published.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would try validating you json and trying again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And/or manually pasting the json into the editor in the browser (which will also highlight any potential issues).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;p.s. thank you for the mention&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 0.8rem;"&gt;Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of &lt;A href="https://www.webalite.com?utm_campaign=community-forum&amp;amp;utm_source=community&amp;amp;utm_content=signature" target="_blank"&gt;Webalite&lt;/A&gt; a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of &lt;STRONG&gt;Portal-iQ&lt;/STRONG&gt; the world's first automated &lt;A href="https://portal-iq.com?utm_campaign=community-forum&amp;amp;utm_source=community-forum&amp;amp;utm_content=signature" target="_blank"&gt;HubSpot Portal Audit&lt;/A&gt; that helps you work smarter with HubSpot.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 21:25:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958224#M38635</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2024-04-10T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958297#M38636</link>
      <description>&lt;P&gt;The fields.json file is generated by Hubspot so I was thinking it's going to be valid and it is when I run it through &lt;A href="https://jsonlint.com/" target="_blank"&gt;https://jsonlint.com/&lt;/A&gt;. Then I also pasted into the Hubspot browser editor and it says "no errors found". Open to other ideas.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 00:37:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/958297#M38636</guid>
      <dc:creator>pacobosque</dc:creator>
      <dc:date>2024-04-11T00:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/959800#M38664</link>
      <description>&lt;P&gt;I figured out the problem. Even though the CLI gave me a success message when I ran hs upload, there was an issue with my path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first I was trying the command like this:&lt;/P&gt;&lt;P&gt;hs upload "C:\Users\example\module-name.module\fields.json" "theme child/modules/module-name.module"&lt;/P&gt;&lt;P&gt;I'd get a success message but the original fields.json was still reflected in the Fields UI in the right column. So I'm not sure what I was succeeding at but it was not uploading and replacing the fields.json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem was that in order for it to overwrite the existing fields.json, I needed to include fields.json at the end of destination path like this:&lt;/P&gt;&lt;P&gt;hs upload "C:\Users\example\module-name.module\fields.json" "theme child/modules/module-name.module/fields.json"&lt;/P&gt;&lt;P&gt;That worked finally!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 05:12:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/959800#M38664</guid>
      <dc:creator>pacobosque</dc:creator>
      <dc:date>2024-04-13T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't upload fields.json via CLI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/979650#M39162</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/326666"&gt;@pacobosque&lt;/a&gt;&lt;/SPAN&gt;, I hope that you are well!&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for sharing the solution with the Community! And thanks so much &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&lt;/SPAN&gt; for your help!&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will be really helpful to other Community Members who experience the same!&lt;BR /&gt;&lt;BR /&gt;Have a lovely day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 11:49:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Can-t-upload-fields-json-via-CLI/m-p/979650#M39162</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-05-21T11:49:12Z</dc:date>
    </item>
  </channel>
</rss>

