Error:
AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)
I’m encountering this error using dart appwrite cloud function when attempting to update only one field at a time. For example, if I update pb.e_DSS.PRODUCT_NAME, then try to update pb.e_DSS.PRODUCT_WARRANTY_DATE, it works.
However, if I then try to update pb.e_DSS.FIRMWARE_VERSION, the error reappears. I’m not sure what’s triggering this issue. It randomly appears.
TL;DR
Developers are experiencing an 'Invalid document structure' error in Dart Appwrite cloud function when updating fields individually. The error specifically pertains to the attribute "pb.kmsgxPkgInfo.id_info" needing to be an array. This error occurs randomly and resurfaces when updating certain fields. Unfortunately, there isn't a specific solution provided in the thread.