Skip to content
Back

Invalid document structure: Unknown attribute: "destination"

  • 0
  • Self Hosted
  • Databases
Egor Tabula
8 Apr, 2025, 14:06

Hey 👋 I’m running into a migration issue after upgrading Appwrite from v1.6.0 to v1.6.1.

Whenever I try to start an Appwrite → Appwrite migration, either through the Console or using CLI v6.2.2, I get this error:

TypeScript
AppwriteException [Error]: Invalid document structure: Unknown attribute: "destination"
    at Client.call (/opt/homebrew/Cellar/appwrite/6.2.2/libexec/lib/node_modules/appwrite-cli/lib/client.js:211:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async migrationsCreateAppwriteMigration (/opt/homebrew/Cellar/appwrite/6.2.2/libexec/lib/node_modules/appwrite-cli/lib/commands/migrations.js:115:16) {
  code: 400,
  response: 'document_invalid_structure'
}

Migrations were working just fine in v1.6.0, and I haven’t made any schema changes that introduce a destination field — it doesn’t exist in any of my collections.

Anyone else experiencing this?

TL;DR
Issue: Error "Invalid document structure: Unknown attribute: 'destination'" when trying to migrate from Appwrite v1.6.1, though no 'destination' field is in collections. Solution: The error is due to changes in the Appwrite migration system. Check the Appwrite release notes for v1.6.1 to understand the new document structure expectations. Make necessary adjustments to your migration setup to align with the updated requirements.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more