Back

[SOLVED] Message: Invalid document structure: Unknown attribute: "options"

  • 0
  • Databases
  • Flutter
Ipsoka
18 Apr, 2023, 10:31

Since the migration from 1.2.0 to 1.3.1 im getting the following error when creating a new attribute for a collection

TypeScript
appwrite                      | [Error] Timestamp: 2023-04-18T10:30:45+00:00
appwrite                      | [Error] Method: POST
appwrite                      | [Error] URL: /v1/databases/:databaseId/collections/:collectionId/attributes/string
appwrite                      | [Error] Type: Utopia\Database\Exception\Structure
appwrite                      | [Error] Message: Invalid document structure: Unknown attribute: "options"
appwrite                      | [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php
appwrite                      | [Error] Line: 2426

Any ideas?

TL;DR
The user encountered an error while creating a new attribute for a collection after migrating from version 1.2.0 to 1.3.1. The error message states "Invalid document structure: Unknown attribute: 'options'" and a server error occurs. After restarting images and running the migration again, the issue was resolved.
Ipsoka
18 Apr, 2023, 10:32

The attribute does not get created either and a error pops up saying "Server Error"

joeyouss
18 Apr, 2023, 11:33
joeyouss
18 Apr, 2023, 11:33

can you show me your code once? or are you trying it from console?

Ipsoka
18 Apr, 2023, 11:49

Was from the console

Ipsoka
18 Apr, 2023, 11:49

Not sure what happend, I restarted the images multiple times, ran the migration again and now it works

joeyouss
18 Apr, 2023, 12:06

oh cool

Drake
19 Apr, 2023, 01:36

[SOLVED] Message: Invalid document structure: Unknown attribute: "options"

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