# Bug when trying to upload a portfolio exported from Capitally

**URL:** <https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825>\
**Category:** Issues\
**Created:** [June 18, 2026, 9:44am UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825 "2026-06-18T09:44:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gonza\_agrofinn](https://community.mycapitally.com/letter_avatar_proxy/v4/letter/g/92400e/32.png) [@gonza\_agrofinn](https://community.mycapitally.com/u/gonza_agrofinn)\
**Post date:** [June 18, 2026, 9:44am UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/1 "2026-06-18T09:44:10Z")

</div>

SchemaError

## Details:

```auto
{
  "name": "SchemaError",
  "issues": [
    {
      "expected": "object",
      "code": "invalid_type",
      "path": [
        "nodes",
        "Equity/Small-Cap"
      ],
      "message": "Invalid input: expected object, received null"
    }
  ],
  "message": "nodes.Equity/Small-Cap: Invalid input: expected object, received null"
}

```

## Stack:

```auto

ZodError
    at https://app.mycapitally.com/assets/dedicated-worker-BweVZ6hr.js:1499:27542
    at Aj (https://app.mycapitally.com/assets/dedicated-worker-BweVZ6hr.js:361:31033)
    at rSe (https://app.mycapitally.com/assets/dedicated-worker-BweVZ6hr.js:1499:27530)
    at Y2 (https://app.mycapitally.com/assets/dedicated-worker-BweVZ6hr.js:1524:106877)
    at Array.reduce (<anonymous>)
    at X2 (https://app.mycapitally.com/assets/dedicated-worker-BweVZ6hr.js:1524:106963)
    at Bje (https://app.mycapitally.com/assets/dedicated-worker-BweVZ6hr.js:1659:28648)

```

---

<div class="post-metadata">

**Author:** ![rafal](https://community.mycapitally.com/user_avatar/community.mycapitally.com/rafal/32/18_2.png) [@rafal](https://community.mycapitally.com/u/rafal)\
**Post date:** [June 21, 2026, 1:43pm UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/2 "2026-06-21T13:43:59Z")

</div>

Thanks for reporting this. A fixed version should be available tomorrow.

---

<div class="post-metadata">

**Author:** ![gonza\_agrofinn](https://community.mycapitally.com/letter_avatar_proxy/v4/letter/g/92400e/32.png) [@gonza\_agrofinn](https://community.mycapitally.com/u/gonza_agrofinn)\
**Post date:** [June 30, 2026, 9:56am UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/3 "2026-06-30T09:56:23Z")

</div>

Hi Rafal, it is still giving an error. I am downloading the file from Export (exportar) (.json) and uploading it as Capitally type.

 ![Captura de pantalla 2026-06-30 a las 11.53.21](https://community-uploads.mycapitally.com/original/1X/65209c71d52be7d3d8e5d3165125cc220873faf8.png)

---

<div class="post-metadata">

**Author:** ![rafal](https://community.mycapitally.com/user_avatar/community.mycapitally.com/rafal/32/18_2.png) [@rafal](https://community.mycapitally.com/u/rafal)\
**Post date:** [June 30, 2026, 7:49pm UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/4 "2026-06-30T19:49:43Z")

</div>

Apologies for the inconvenience. Could you please try again in version v2.47.4? It is being released right now.

---

<div class="post-metadata">

**Author:** ![gonza\_agrofinn](https://community.mycapitally.com/letter_avatar_proxy/v4/letter/g/92400e/32.png) [@gonza\_agrofinn](https://community.mycapitally.com/u/gonza_agrofinn)\
**Post date:** [July 6, 2026, 7:24am UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/5 "2026-07-06T07:24:38Z")

</div>

Good morning! Yes, it is already corrected 👏✨

---

<div class="post-metadata">

**Author:** ![gonza\_agrofinn](https://community.mycapitally.com/letter_avatar_proxy/v4/letter/g/92400e/32.png) [@gonza\_agrofinn](https://community.mycapitally.com/u/gonza_agrofinn)\
**Post date:** [August 19, 2026, 10:54am UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/6 "2026-08-19T10:54:02Z")

</div>

Hi Rafal, I am trying to export a portfolio and import it back. While it works, the calculation of returns is not being done correctly, or at least they don’t match. This is what Claude tells me when comparing the exports of the two projects: “Since qty/value/principal almost always match but returns.period does not, the problem seems to be in how that field was calculated or exported (possibly different date windows, or a calculation/attribution error in one of the two reports), not in the positions themselves. It also drags along the allocation and returnsAttribution.period fields, which depend on those returns.”

---

<div class="post-metadata">

**Author:** ![rafal](https://community.mycapitally.com/user_avatar/community.mycapitally.com/rafal/32/18_2.png) [@rafal](https://community.mycapitally.com/u/rafal)\
**Post date:** [August 19, 2026, 1:26pm UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/7 "2026-08-19T13:26:04Z")

</div>

First, check that both projects are using the same date range, display currency, and performance calculation options. If they match, attach both JSONs - the original and the one exported after re-importing it - so I can compare exactly what changes in the performance metrics.

---

<div class="post-metadata">

**Author:** ![rafal](https://community.mycapitally.com/user_avatar/community.mycapitally.com/rafal/32/18_2.png) [@rafal](https://community.mycapitally.com/u/rafal)\
**Post date:** [August 19, 2026, 1:34pm UTC](https://community.mycapitally.com/t/bug-al-querer-subir-una-cartera-exportada-de-capitally/825/8 "2026-08-19T13:34:55Z")

</div>

Not attach but rather send the JSONs of course - it’s a public forum. Or use a tool that will highlight the differences between them.
