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
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...