You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👟 Reproduction steps
Collection TEST with same ID exists.
Deleting and creating collection gives error in the logs. The collection is succesfully deleted. But the creation fails.
private var appwriteClient: Client = Client()
.setEndpoint(APPWRITE_ENDPOINT)
.setProject(APPWRITE_PROJECT)
.setKey(APPWRITE_KEY)
.setSelfSigned(false)
val appwriteDatabase = Database(appwriteClient)
appwriteDatabase.deleteCollection( "TEST")
val collection: Collection = appwriteDatabase.createCollection(
collectionId = "TEST",
name = "TEST",
read = ["team:xxx"],
write = ["team:xxx"],
permission = "collection"
👍 Expected behavior
Deletion and creation should work. And once the deletion is executed, it should be possible to create a database with same name and id.
👎 Actual Behavior
Shows the following error in Appwrite where it complains about a dupliocate key.
👀 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?
I have read the Code of Conduct
The text was updated successfully, but these errors were encountered:
@Caryntjen The collections when you call delete, there are still some background work going on to remove attributes, indexes and everything related to the collection. so trying to create another immediately might fail, can you wait few seconds before creating again and see if it works?
👟 Reproduction steps
Collection TEST with same ID exists.
Deleting and creating collection gives error in the logs. The collection is succesfully deleted. But the creation fails.
👍 Expected behavior
Deletion and creation should work. And once the deletion is executed, it should be possible to create a database with same name and id.
👎 Actual Behavior
Shows the following error in Appwrite where it complains about a dupliocate key.
🎲 Appwrite version
Version 0.12.1
💻 Operating system
Windows
🧱 Your Environment
Appwrite v0.12.1 - sdk-for-kotlin v0.2.5
Java v11
Kotlin v1.6.10
👀 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?
I have read the Code of Conduct
The text was updated successfully, but these errors were encountered: