Back

Invalid document structure

  • 0
  • Databases
  • Flutter
  • Cloud
muniraja0799
4 Jun, 2024, 11:37

I'm trying to update the data in "imageUrls" attribute in existing document on a collection, I'm getting this AppwriteException on flutter

TypeScript
Error:

AppwriteException: document_invalid_structure, Invalid document structure: Unknown attribute: "65afa152a03167d30e48" (400)
TypeScript
Details:

Project ID: 65af9f263941121c4d36
Collection ID: 65afa2106514f0c73413

Function that triggers update document

TypeScript
Future<models.Document> updateProductVariation(
      Map map, String documentId) async {
    final response = await databases!.updateDocument(
      databaseId: AppWriteConstants.dbId,
      collectionId: AppWriteConstants.productsVariationsCollectionId,
      documentId: documentId,
      data: {
        "imageUrls": map["imageUrls"],
      },
    );
    return response;
  }

I didn't change anything on code and cloud, it was working fine, now it's not working.

TL;DR
Developers are encountering an AppwriteException indicating an invalid document structure when attempting to update the data in the "imageUrls" attribute of an existing document. The error specifies an unknown attribute. Verify code and cloud configurations for any recent changes as it was previously functioning.
muniraja0799
4 Jun, 2024, 11:46

This is the collection I'm trying to update which I add as image

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