Skip to content

Fatal error on import: Invalid schema changes detected during integrity checks #15616

@niklasfjeldberg

Description

@niklasfjeldberg

System information

  • Node.js version: 16.19.0
  • NPM version: 9.3.1
  • Strapi version: 4.6.0
  • Database: SQLite
  • Operating system: Windows 11 Home, 22H2 22621.1194

Describe the bug

When trying to use the new import future of Strapi 4.6.0 I get the error below. This is with barebone Strapi, and with a single content type and a few records, nothing else and no plugins.

error: [FATAL] Invalid schema changes detected during integrity checks (using the strict strategy). Please find a summary of the changes below:
- admin::permission:
  - Removed ""
- admin::user:
  - Removed ""
- admin::role:
  - Removed ""
- admin::api-token:
  - Removed ""
- admin::api-token-permission:
  - Removed ""
- api::test.test:
  - Removed ""
- plugin::upload.file:
  - Removed ""
- plugin::upload.folder:
  - Removed ""
- plugin::users-permissions.permission:
  - Removed ""
- plugin::users-permissions.role:
  - Removed ""
- plugin::users-permissions.user:
  - Removed ""
- plugin::i18n.locale:
  - Removed ""

Steps to reproduce the behavior

  1. Install a new instance of the latest Strapi version.
  2. Make a simple content type and some records.
  3. Export the data with npm run strapi export -- --file test --no-encrypt.
  4. Add a few records.
  5. Import the old data with npm run strapi import -- -f test.tar.gz.

Expected behavior

The data should be successfully imported.

Additional context

I have the issue with Yarn also, and I have tried to import the data to an empty and new Strapi instance, but I have the same issue. I have also experienced the issue with a PostgreSQL database.

Metadata

Metadata

Labels

issue: bugIssue reporting a bugseverity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:data-transferSource is core/data-transfer packagestatus: pending reproductionWaiting for free time to reproduce the issue, or more information

Type

No type

Projects

Status

Fixed/Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions