Skip to content
Back

deleted attribute ghost

  • 0
  • Databases
  • React Native
  • Cloud
max_coleman
10 Feb, 2025, 13:45

hi, i created a relationship attribute which failed on processing. i then deleted it. it is no longer within my collection but when i 'databases.updatedocument()' i get the warning :Error updating the document: Invalid document structure: Unknown attribute: "avatar". and also it shows in a log of the document as [avatar: "null"].

what can i do to fix this?

TL;DR
Developers mistakenly created and then deleted a relationship attribute, but it still appears as a 'ghost' in the document log, causing issues when updating the document. To resolve this, try to run a script to clean up any remnants of the deleted attribute from the database.
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