Back

Invalid document structure: missing required attribute time

  • 0
  • Self Hosted
MyWay
10 Mar, 2024, 22:19

Hi! I'm upgrading appwrite from 1.4.13 to 1.5.1, but I'm getting this error, what should I do?

TL;DR
Developers upgrading appwrite from 1.4.13 to 1.5.1 are encountering an error related to missing required attribute 'time' and unknown attribute 'region'. This may be related to warnings about duplicate entries and SQL syntax errors. Consider upgrading to version 1.5.2 instead.
MyWay
10 Mar, 2024, 22:21

I also got this warning: '_key_metric_period_time' from stats: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'documents.default/628d532790d472c07b1c.requests.update-1d-202...' for key '_key_metric_period_time'

maybe it's related

Steven
10 Mar, 2024, 22:25

upgrade to 1.5.2 instead

MyWay
10 Mar, 2024, 22:26

done, now I get: Failed to update project ("628d53099c747701ed5b") version with error: Invalid document structure: Unknown attribute: "region" Invalid document structure: Unknown attribute: "region"

MyWay
10 Mar, 2024, 22:27

and I have these 3 warnings before: 'type' from stats: Attribute not found '_key_metric_period_time' from stats: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP INDEX _key_metric_period_time; check that it exists '_key_metric_period_time' from stats: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'documents.default/628d532790d472c07b1c.requests.update-1d-202...' for key '_key_metric_period_time'

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