Skip to content
Back

Invalid document structure: Missing required attribute "userInternalId"

  • 0
  • 2
  • Self Hosted
  • General
panda_p
26 Oct, 2025, 12:45

After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: appwrite-worker-audits | 2025-10-26T11:15:24.062537020Z Error processing audit logs: Invalid document structure: Missing required attribute "userInternalId"

Can someone help me understanding that error?

TL;DR
The error message "Invalid document structure: Missing required attribute 'userInternalId'" is appearing during migration from versions 1.6.1 to 1.7.4. It might be related to cutting down the days that audits are stored before migration.
D5
26 Oct, 2025, 15:54

Did you made backups before upgrading? And ran migration command?

27 Oct, 2025, 07:20

Yes and yes. The migration-path was 1.6.1 to 1.6.2 to 1.7.4. Also, since I ran into https://discord.com/channels/564160730845151244/1431678580391280751 during migration I cut down the days that audits are stored (with "docker compose up -d") before starting the migration. Maybe that is related?

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