anmot.
- I had a two way relation attribute.
- Deleted the two way relation attribute.
- Document Update fails as the relation key was still not deleted from one of the collection. Console doesn't show the deleted attribute but the underlying document still has reference to this attribute and fails with
Invalid document structure: Unknown attribute
- As the console doesn't show the attribute, I went ahead and created a new non relation attribute with the same key and it is now stuck in processing.
- Tried deleting the stuck attribute key using cli, although it says success the key is still not deleted.
I've ran out of options. How can we permanently delete a attribute so that document update succeeds without recreating the collection?
TL;DR
Developer had a two way relation attribute, then deleted it. Document update is failing because even though the console doesn't show the deleted attribute, the underlying document still references it. Trying to create a new non-relation attribute with the same key got stuck in processing. Deleting the stuck attribute key using CLI shows success but the key remains undeleted. How can the attribute be permanently deleted without recreating the collection to ensure document update success?
Solution: Instead of creating a new attribute with the same key, try updating the existing document to remove the stale attribute reference. If the CLI deletion is not working, reach out to the platform's support for Recommended threads
- My account is blocked so please check an...
My account is blocked so please unblock my account because all the apps are closed due to which it is causing a lot of problems
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...