Skip to content
Back

Error while migrating from supabase.

  • 0
  • React Native
Odin
19 Sep, 2025, 20:48

I am trying to migrate my data from supabase top appwrite using their migration tool, but I am getting this error every time:

TypeScript
  "$id": "68cdb869bb7bb07d68d8",
  "$createdAt": "2025-09-19T20:09:13.768+00:00",
  "$updatedAt": "2025-09-19T20:09:21.055+00:00",
  "status": "failed",
  "stage": "finished",
  "source": "Supabase",
  "destination": "Appwrite",
  "resources": [
    "user",
    "database"
  ],
  "resourceId": "",
  "statusCounters": {
    "user": {
      "pending": 0,
      "success": 0,
      "error": 0,
      "skip": 18,
      "processing": 0,
      "warning": 0
    },
    "database": {
      "pending": 0,
      "success": 0,
      "error": 1,
      "skip": 0,
      "processing": 0,
      "warning": 0
    }
  },
  "resourceData": [],
  "errors": [
    {
      "code": 0,
      "message": "Invalid document structure: Missing required attribute \"$createdAt\""
    }
  ]
}```

Does anyone know how to fix this?
TL;DR
An error occurred while migrating data from Supabase to Appwrite. The error states "Invalid document structure: Missing required attribute '$createdAt'". To fix this, ensure that the required attribute "$createdAt" is present in the document structure before migration.
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