Back

PDOException : Table 'appwrite._1_' doesn't exist

  • 0
  • Databases
steve jobs
14 May, 2023, 11:50

any idea where does this error come from while deleting a document ? restarting appwrite doesn't rectify the issue. i dont know how to recreate this issue . but what i remember doing is :

create a collection with some attributes. create a string attribute named "domains". add some entries into the collection. delete the "domains" attribute. add another many to many relationship to any other collection, BUT with same name "domains" some days later, i removed "domains" relationship, and created another String array attribute named "domains" then i added a key index and fulltext index for "domains" attribute. now, when i tried to delete any of the entries i created earlier, i get this error..

i don't know whether these steps caused it. but what might be the possible reason??

TL;DR
The user is experiencing a PDOException error message stating that the table doesn't exist. They are unsure how to resolve this issue without clearing both collections. Other users in the thread mention that the issue is likely due to the beta version of the software and the complexity of relationships. One user suggests recreating the collections as a possible solution. Solution: Recreate the collections.
steve jobs
14 May, 2023, 11:52

i can write or read other collections without any error. error persist only for this collection and restarting server doesnt solve it.

Drake
14 May, 2023, 17:15

Ya something odd has happened...something probably wasn't properly deleted. It would be great to be able to pinpoint the root cause so we can properly fix it.

The easiest way to clean this up right now is probably to recreate the collections

steve jobs
14 May, 2023, 17:27

There lot of such bugs related to relationships.. its in beta. I know.. but in most of case , i am unable to properly pin point the cause of it as it comes randomly.. like im working for some time and it works.. and next day, if i make any changes in attributes or delete some other.. its breaks randomly, and this kind of errors appear..and wont go

Drake
14 May, 2023, 17:41

Yes, as you said, it's a beta. Support for relationships was huge and required lots of changes to the code. Not only that, there are a lot of permutations of relationships (relationship type * one/two way * on delete strategy)

steve jobs
14 May, 2023, 17:42

Ya.. its awesome..

hosiekiwanuka
20 Jun, 2023, 10:33

Having the same issue. I there a way to clear this without clearing both collections?

Drake
20 Jun, 2023, 13:31

Please create a new post rather than reusing a previous post

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