Back

Missing collection attribute $collection

  • 0
  • Web
EventHorizon
9 Jun, 2023, 00:35

Anyone know why I get this warning when trying to update a record in the UI? It will not let me add data to a field in a collection...

TL;DR
Issue: Missing collection attribute $collection when trying to update a record in the UI. Solution: If you have upgraded your Appwrite instance, make sure you have run the migrate command for each version you have skipped. If you are experiencing this issue after upgrading to version 1.3, try upgrading to version 1.3.7 and run the migrate command again. If possible, restore to before the upgrade and redo the process without skipping versions. Restarting the container may not fix the issue. It is important to check if this issue occurs with older collections as well.
Drake
9 Jun, 2023, 00:36

Are you self hosted?

EventHorizon
9 Jun, 2023, 00:36

yes

Drake
9 Jun, 2023, 00:42

Is this a clean install? Did you ever have Appwrite running on the machine? Has updating a document ever worked?

EventHorizon
9 Jun, 2023, 01:04

It has worked up until today. I installed it awhile ago and have just left it running. I restarted the container to see if that would fix the problem. It didn't. Some "tables" will let me update data but not all.

Drake
9 Jun, 2023, 01:10

what version are you on?

have you ever upgraded your appwrite instance?

Are the collections where it's not working older?

EventHorizon
10 Jun, 2023, 12:27

ver 1.3. These are all new collections AFTER I upgraded to 1.3

Drake
10 Jun, 2023, 15:32

Some more questions:

  1. What version were you on before?
  2. Are you on 1.3.7 now?
Drake
10 Jun, 2023, 15:32

Missing collection attribute $collection

EventHorizon
11 Jun, 2023, 00:13

I'm on 1.3.3 now. I am sorry but I don't remember which I was on before. Maybe 1.1?

EventHorizon
11 Jun, 2023, 00:17

Just FYI, I deleted the project and tried to recreate it and I am still having the same issue

Drake
11 Jun, 2023, 00:28

So did you run the migrate command when you upgraded from 1.1 to 1.2 and then again when you went from 1.2 to 1.3? Also you might want to upgrade to 1.3.7 and you should run the migrate command on 1.3.7 too

EventHorizon
11 Jun, 2023, 12:19

I migrated from 1.1 to 1.3 directly and then I did run the migrate command. I guess I will upgrade and see how it goes.

Drake
11 Jun, 2023, 14:00

You're missing the 1.2 migrate then. You must upgrade to the next minor version and run the migrate command. You can't skip.

It would be best to restore to before you upgraded and run through the process again without skipping versions.

If you can't, you can try upgrading to 1.3.7 and the run:

TypeScript
docker compose exec appwrite migrate version=1.2.1
docker compose exec appwrite migrate # this will run the 1.3.7 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