Open lrasata opened 1 year ago
I have tested a bit further and saw that in this case, because the component field is required, it throws an error. When changing the required field from true to false, it works without any problems
I have a slightly different error message, but ultimately appears to be the same issue. Any required fields, even if they are populated, will error on import. Was there a resolution to this? Changing required from true to false isn't really an option for me.
I strongly suspect this is because one of the required field is a relation. Since data is imported in two steps (first the scalar attributes, then the relations), import fails on the first step.
As you mentionned @lrasata, changing the relation attribute to not required will most likely solve the issue 👍
@Baboo7 there are no relations in my model. Its a relatively straight forward model, that contains text, rich text, enumerations, images and repeatable components. Most of the fields will be required. Any chance you would be able to take a look into this please?
Actually images are relations since they are saved and linked from another table. I think the issue comes from this specific field
Describe the bug Importing data for a Single type with Components sometimes work but in the following example it thorws an error. The schema of the content type is pretty simple, but very hard to see why it doesnt work.
Steps to follow to reproduce the bug : 1 - Use the following json to create the banner component inside components/banner/information-banner.json :
2- Use the following schema.json to create a 'Test' Single type :
3 - Enter data in source env to export. The following is an example of data entry exported :
4 - Import the data above
Current error
Expected behavior Should be imported without error
Additional context Add any other context about the problem here.