#document_invalid_structure

9 messages · Page 1 of 1 (latest)

royal cave
#

I created a new Database and Collection but whenever I try to create a document in there the system tells me that the attribute is not found. Even when I tried to create a document from the Appwrite Console,

nova breach
royal cave
#

Yes the collection has attributes. I even recreated the entire collection manually and some how it still give me the same error. However we did do an upgrade from 1.5.2 to 1.5.10 and the collections that were created in 1.5.2 don't have this issue however all the collections created after the upgrade are having this issue!

nova breach
#

Can you share your code?

royal cave
#
  "documentId": "unique()",
  "data": {
    "region": "{{$_POST.region}}",
    "address": "{{$_POST.address}}",
    "address2": "{{$_POST.address2}}",
    "city": "{{$_POST.city}}",
    "state": "{{$_POST.state}}",
    "zipCode": "{{$_POST.zipCode}}",
    "logisticsProvider": "{{$_POST.logisticsProvider}}",
    "logisticsProviderName": "{{getLogisticsProviderDetails.data.name}}",
    "contactName": "{{$_POST.contactName}}",
    "contactEmail": "{{$_POST.contactEmail}}",
    "contactPhone": "{{$_POST.contactPhone}}",
    "openHour": "{{$_POST.openHour}}",
    "closeHour": "{{$_POST.closeHour}}"
  }
}```
nova breach
#

Can you try to delete and recreat that attributes
In case you have any data in that collection make sure everything is backed up

royal cave
#

I've already done that. Completely removed the collection and recreated all the attributes one by one and the issue still permits!

nova breach
#

I suspect there might be a problem with the name region can you try with different naming for that attribute ?

royal cave
#

Actually I've tried with removing the "region" attribute and then it still gives the same issue however for the next attribute "address". It's very weird.