The metadata database appears to be in an inconsistent state. A reference was found to a %{typename/} object with ID %{id/} ...