Skip to content
Back

[SOLVED] Unable to add data for "user_id" column

  • 0
  • Resolved
  • 4
  • Cloud
imzza
21 Feb, 2026, 22:02

I am using the Appwrite database and I have a table named events. When I add a column named user_id, I am not able to save data to that column from either the API or the UI. I am getting the same error from both the UI and the API. Invalid document structure: Unknown attribute: "user_id"

TL;DR
Issue with adding data to "user_id" column has been resolved by re-adding it. The problem is fixed both in the UI and the code.
22 Feb, 2026, 02:01

What's your project id?

<@1386654835583225947> can you please help when you're online again?

22 Feb, 2026, 13:53

here is the project id 67d805a7001d5f9a1bd2

22 Feb, 2026, 13:56
23 Feb, 2026, 04:25

Just a heads up, I have been getting this error quite a bit this evening. I have a table with a bunch of booleon columns that I imported, all of them defauled to true. Well, 3 of the columns are stuck on NULL and when I change them to true I get the same error you did: Invalid document structure: Unknown attribute: "attendeeCreate"

If I try and delete and column and re-create it, I get an error that: Creation failed Attribute already exists in schema.

23 Feb, 2026, 04:48

So this may not fix your problem, but it certain helped me - I added a delay to my inport script that waits 1s per column when adding the schema. This seemed to fix these issues for me, at least for now. I guess my script was adding tables and columns too fast.

23 Feb, 2026, 12:33

<@310464271068823564> Thanks, I tried dropping and recreating the column from the UI as well, but I’m still getting the same issue with only the column named user_id. I tried adding another column named uid, and it works, but user_id is not working.

23 Feb, 2026, 13:11

Can you confirm if your table name is slack-events and table is events? Can you try deleting the attribute from your end. Let me know once its done

23 Feb, 2026, 13:46

Yes, the database is slack-events and the table is events, I have deleted the column.

23 Feb, 2026, 14:40

I have cleared it from backend also cleared the cache. Can you re-try again now?

23 Feb, 2026, 23:23

I have checked and it's not visible to me either on table view nor on columns view.

25 Feb, 2026, 01:46

Did you re-add it?

25 Feb, 2026, 22:47

No I have not re-added it.

26 Feb, 2026, 01:38

Please re-add it and see if you still have issues

26 Feb, 2026, 01:50

Yeah, this is working now from UI and code as well. Thanks!

1
27 Feb, 2026, 15:49

[SOLVED] Unable to add data for "user_id" column

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