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
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...
- Server Down
Appwrite services are down. When will they start working again?