I created an attribute named userAgent in the leads collection, but now an error is being displayed. When I try to update a document, it doesn't let me successfully complete the update, even though I am not passing the userAgent field in the update operation. Could you please remove the duplicate userAgent field from the collection?
{ code: 400, type: 'document_invalid_structure', response: { message: 'Invalid document structure: Unknown attribute: "userAgent"', code: 400, type: 'document_invalid_structure', version: '1.6.1' } }
You can't remove it in the appwrite console?
If you want to make it optional, you can remove the check of the "required" checkbox you can find in the appwrite console when creating the attribute. If it's an existing attribute, you can click the 3 dots (...), edit and then remove the check from the required checkbox
I can no longer update documents; an error occurs when I try.
{ code: 400, type: 'document_invalid_structure', response: { message: 'Invalid document structure: Unknown attribute: "userAgent"', code: 400, type: 'document_invalid_structure', version: '1.6.1' } }
Recommended threads
- Help
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.