Proper error message when entity references fail due to dependencies not met

Created on 10 December 2021, almost 3 years ago
Updated 25 September 2024, about 2 months ago

Problem/Motivation

Content Sync import fails when two entities are dependent on one another (for example, an image file set as a user's photo who is also the author of the image file), because neither exists in the target system yet.

Steps to reproduce

Login as a user, and upload a new file for the user picture.
Export the site content to the content sync directory.
On the new site, try to import the site content.
The import will fail with this message: No "file" entity found with UUID "<uuid>" for field "0".

This happens because the user has a reference to a file in the "user_picture" field, while that file depends on the user because it is the author. If you manually remove the "user_picture" from the user's YAML file, both entities are imported successfully.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Logs

Created by

πŸ‡ΊπŸ‡ΈUnited States byrond

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024