Invalid foreign key for field "item" in collection "directus_versions"

Hello everyone!

I am running into this error when creating a content version from the app (also happens when doing programatically) for a collection in my directus instance.

I have a bunch of relationships in this collection but just for debugging sake I deleted all fields in the collection to check if something was causing this.

I, in fact, have another collection with working versions that does not throw this error when creating a new version.

Any idea how I could solve this?

Heyo and welcome to community :waving_hand:

To me it sounds more like there could be something wrong with the collection itself, or maybe the directus_versions table instead of the fields within the collection.

  • Have you checked the collection or the directus_versions tables?
  • Have you made any changes to either of those?

Hard to think of the next best steps for you without a lot more context.