Missing relationships when exporting/exporting data

I’ve noticed something odd whenever I export/import Strapi DB, I have several components that have an Image in its definition, and whenever I export the DB and later import it, the relationships between those Components and the images are lost, breaking the App client.

I also noticed that the sequences aren’t reset whenever importing the DB, which I’m not sure it might be related; but I know for sure that there’s no reference to the files_related_morphs table (or its records) within the jsonl files from the exported file.

As far as I know, the files_related_morphs is responsible of keep the relationships thus, this table isn’t being exported. Is anybody else experiencing this?

The commands I’m using as follow :
yarn strapi export --no-encrypt --file ~/Desktop/exported_db and yarn strapi import -f ~/Desktop/exported_db.tar.gz

System Information
  • Strapi Version: 4.10.5
  • Operating System: macOS 13.4.1
  • Database: PostgreSQL 14.8
  • Node Version: 18.12.1
  • NPM Version: 8.19.2
  • Yarn Version: 3.6.0

1 Like

Same here. Component images are not retained in either the export/import or transfer processes. We’re currently unable to implement our rollout plan on account of this bug.

To be clear, non-media fields are retained without issue.

  • Strapi: 4.10.8
  • OS: MacOS 13.4.1
  • DB: Postgres 15.3 (containerized)
  • Blob storage: Azurite 3.24.0 (Azure emulator container)
  • Node: 18.15.0
  • NPM: 9.5.0
  • Yarn: 1.22.19
1 Like

Known issue: Tracking Issue: Relations/Media links lost when using transfer · Issue #17343 · strapi/strapi · GitHub we have this scheduled in our sprint starting next week

1 Like