#document_invalid_structure
9 messages · Page 1 of 1 (latest)
After creating a database and collection it's vital to create attributes, have you done that?
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!
Can you share your code?
"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}}"
}
}```
Can you try to delete and recreat that attributes
In case you have any data in that collection make sure everything is backed up
I've already done that. Completely removed the collection and recreated all the attributes one by one and the issue still permits!
I suspect there might be a problem with the name region can you try with different naming for that attribute ?
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.