Skip to content

🐛 Bug Report: Invalid document structure: Unknown attribute: "$sequence" #10265

Closed

Description

@lucasartsfr

👟 Reproduction steps

When trying to migrate data from my Appwrite Cloud staging project to a VPS Appwrite instance (v1.7.4 using Docker), the migration fails on certain documents with the following error:

Error occurred while pushing 'document:6836f85e00291bbd0757' to destination with message: 
'Invalid document structure: Unknown attribute: "$sequence"' 

Message: Invalid document structure: Unknown attribute: "$sequence"  
File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php  

To Reproduce:
Steps to reproduce the behavior:

Create a project on Appwrite Cloud and add some collections/documents.

Set up a fresh local Appwrite instance (v1.7.4 via Docker).

Use the Appwrite migration tool to migrate from cloud to local.

Observe error during the push phase.

The problem is that with the new free tier limitations on Appwrite Cloud, I need to migrate my projects to a local instance before the deadline. However, due to this bug, it's currently impossible for me to do so.

👍 Expected behavior

Migration should complete successfully without schema validation errors.

👎 Actual Behavior

The document in question seems to include a $sequence field which is likely internal to Appwrite Cloud but not supported in the local self-hosted version.

Possibly the migration tool is not stripping internal or unsupported fields during the export/import process.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

I use VPS Hostinger with Appwrite template

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Aug 5, 2025
  2. self-assigned this
    on Aug 5, 2025
  3. added
    product / databases
    on Aug 5, 2025
  4. Divyansha23 commented on Aug 5, 2025

    @Divyansha23
    Contributor

    Hi, thanks for raising this issue! We are aware of this issue and there's a fix incoming for this.

  5. added
    product / self-hosted
    product / migrations
    on Aug 5, 2025
  6. lucasartsfr commented on Aug 20, 2025

    @lucasartsfr
    Author

    Hi, thanks for raising this issue! We are aware of this issue and there's a fix incoming for this.

    Thank you for the feedback @Divyansha23

    Regarding the plan change from September, do you think the fix will come in time to allow use to migrate before our project being blocked ?

  7. IJustDev commented on Sep 11, 2025

    @IJustDev

    Hey is there a workaround?

  8. lucasartsfr commented on Sep 11, 2025

    @lucasartsfr
    Author

    Hey is there a workaround?

    Looks like we have to wait..

    Additionally, projects are now archived because of the new free tier. I hope we won't have to pay to migrate and unarchive them.

    And when trying to migrate an archived project, I have : Couldn’t load resources
    The API key required for the migration may no longer be valid or has expired, please verify and start migration again.

  9. IJustDev commented on Sep 11, 2025

    @IJustDev

    Maybe we can try to create the $sequence attribute ourselves

  10. IJustDev commented on Sep 11, 2025

    @IJustDev

    @Divyansha23 any updates on this?

  11. HarshMN2345 commented on Sep 22, 2026

    @HarshMN2345
    Member

    This works on main now. Closing, but reopen it if you still hit it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugproduct / databasesproduct / migrationsproduct / self-hosted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions