# CMS CLI upload error

**URL:** <https://community.hubspot.com/t/cms-cli-upload-error/25728>\
**Category:** CMS Development\
**Tags:** design-manager, local-development\
**Created:** [September 21, 2020, 6:28pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728 "2020-09-21T18:28:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sst](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sst/32/47092_2.png) [@sst](https://community.hubspot.com/u/sst)\
**Post date:** [September 21, 2020, 6:28pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/1 "2020-09-21T18:28:02Z")

</div>

Anyone get these errors when running

**hs upload**

or

**hs watch**

?

```lia-code-sample
[ERROR] Uploading file "/home/me/mytheme/fields.json" to "mytheme/fields.json" failed
[ERROR] Unable to upload "/home/me/mytheme/fields.json". The post failed because "mytheme/fields.json" was not found in portal XXXXXXX. Unable to find model with id 34719888101
[ERROR] Uploading file "/home/me/mytheme/images/template-previews/membership-reset-password-request.png" to "mytheme/images/template-previews/membership-reset-password-request.png" failed
[ERROR] Unable to upload "/home/me/mytheme/images/template-previews/membership-reset-password-request.png". The post failed because "mytheme/images/template-previews/membership-reset-password-request.png" was not found in portal XXXXXXX. Unable to find model with id 34719892051

```

Deleting the folder for my theme in the design manager and starting over didn’t help. Same error.

Github ticket here: [Unable to upload assets to HubSpot · Issue #322 · HubSpot/hubspot-cli · GitHub](https://github.com/HubSpot/hubspot-cms-tools/issues/322)

---

<div class="post-metadata">

**Author:** ![sst](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sst/32/47092_2.png) [@sst](https://community.hubspot.com/u/sst)\
**Post date:** [September 21, 2020, 8:41pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/2 "2020-09-21T20:41:36Z")

</div>

Update: fixed.

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [September 21, 2020, 9:20pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/3 "2020-09-21T21:20:29Z")

</div>

Hey @sst

Whats was the issue?

---

<div class="post-metadata">

**Author:** ![sst](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sst/32/47092_2.png) [@sst](https://community.hubspot.com/u/sst)\
**Post date:** [September 21, 2020, 9:22pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/4 "2020-09-21T21:22:12Z")

</div>

[https://github.com/HubSpot/hubspot-cms-tools/issues/322#issuecomment-696359073](https://github.com/HubSpot/hubspot-cms-tools/issues/322#issuecomment-696359073)

---

<div class="post-metadata">

**Author:** ![DStaniszewski](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dstaniszewski/32/102498_2.png) [@DStaniszewski](https://community.hubspot.com/u/DStaniszewski)\
**Post date:** [May 26, 2021, 3:07pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/5 "2021-05-26T15:07:07Z")

</div>

Hi, I saw this was fixed but I am getting a similar error:

[ERROR] Uploading file “/Users/dylan/local-cms-dev/BabyScripts\_March2020/fields.json” to “Babyscripts\_Dev/fields.json” failed  
[ERROR] internal error  
[ERROR] no controlling\_value\_regex is set for field ‘body\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘body\_font\_weight’  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] Not a valid choice for body\_text\_font  
[ERROR] Not a valid choice for custom\_heading5\_family  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] Not a valid choice for custom\_heading6\_family  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] no controlling\_value\_regex is set for field ‘h1\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘h1\_font\_weight’  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] no controlling\_value\_regex is set for field ‘h3\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘h3\_font\_weight’  
[ERROR] Not a valid choice for custom\_heading4\_family  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] no controlling\_value\_regex is set for field ‘h4\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘h4\_font\_weight’  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] no controlling\_value\_regex is set for field ‘h2\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘h2\_font\_weight’  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] Not a valid choice for custom\_heading2\_family  
[ERROR] no controlling\_value\_regex is set for field ‘h6\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘h6\_font\_weight’  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] no controlling\_value\_regex is set for field ‘h5\_font\_weight’  
[ERROR] no controlling\_field is set for field ‘h5\_font\_weight’  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] Not a valid choice for custom\_heading1\_family  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] Not a valid choice for custom\_heading3\_family  
[ERROR] theme.global\_fonts.secondary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font is not a valid path to a property  
[ERROR] theme.global\_fonts.secondary\_font.font\_set is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property  
[ERROR] theme.global\_fonts.primary\_font.color is not a valid path to a property

field.json fetched from live theme and I am trying to copy it to a dev account. Everything else uploaded successfully.

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [May 27, 2021, 12:49am UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/6 "2021-05-27T00:49:01Z")

</div>

Hey Dylan,  
On my phone so I haven’t dug too deep but your error looks a little different from the initial post.  
Checkout this link by the amazing Stephanie O’Gay Garcia explaining how to use the controlling values:

> **[Set a HubSpot module field's Display Conditions in local development](https://www.stephanieogaygarcia.com/hubspot-website-development/set-a-hubspot-module-fields-display-conditions-in-local-development)**
>
> How to set a custom module's "Display Conditions" while using local development for HubSpot's CMS Hub Themes.

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [May 27, 2021, 1:01pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/7 "2021-05-27T13:01:28Z")

</div>

Tagging in @Stephanie-OG !

---

<div class="post-metadata">

**Author:** ![buddhabuddy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/buddhabuddy/32/48852_2.png) [@buddhabuddy](https://community.hubspot.com/u/buddhabuddy)\
**Post date:** [October 5, 2021, 5:53pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/8 "2021-10-05T17:53:42Z")

</div>

Did you discover the reason/fix for this?  
We have a hubspot developed theme that can’t be cloned because of this.

---

<div class="post-metadata">

**Author:** ![DStaniszewski](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dstaniszewski/32/102498_2.png) [@DStaniszewski](https://community.hubspot.com/u/DStaniszewski)\
**Post date:** [October 5, 2021, 6:43pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/9 "2021-10-05T18:43:03Z")

</div>

I had to use a work around for this. I believe I had to fetch the original file, not make any changes, upload it to the dev account and then make the changes to the fonts manually. The error was occuring when the font files were not uploading properly for some reason. I had to redownload the fonts into the file manager and put them in using new file paths.

---

<div class="post-metadata">

**Author:** ![buddhabuddy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/buddhabuddy/32/48852_2.png) [@buddhabuddy](https://community.hubspot.com/u/buddhabuddy)\
**Post date:** [October 5, 2021, 6:46pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/10 "2021-10-05T18:46:05Z")

</div>

Thanks for the super quick reply!  
I’m going through all the properties to fix them and it seems to be getting better but still a few #nulls coming through in the theme 😅

---

<div class="post-metadata">

**Author:** ![DStaniszewski](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dstaniszewski/32/102498_2.png) [@DStaniszewski](https://community.hubspot.com/u/DStaniszewski)\
**Post date:** [October 5, 2021, 6:55pm UTC](https://community.hubspot.com/t/cms-cli-upload-error/25728/11 "2021-10-05T18:55:36Z")

</div>

Yeah unfortunately this was pretty tedious to fix since I had to go through and make the corrections line by line.
