Import/Export data from and to your database in just few clicks.
175
stars
86
forks
source link
[BUG] Import error for Single-Type content - "error": "repeatable_component[0] must be a `object` type, but the final value was: `null` (cast from the value `X`)." #139
Describe the bug
I have defined a single-type which have fields with different types. I have no problem importing content from text and media types but i run into an import error as soon as i try to import content from repeatable component which i have included in my single-type.
Create a component which has for example three text fields
Add a component and use that component as repeatable component in the single type you created in step 1.
Input data in content manager to that single type, filling all the fields also creating an entry to that repeatable component.
Export data.
Try to import data.
See error. "error": "repeatable_component[0] must be a object type, but the final value was: null (cast from the value X)." Where value X is the entry in the exported json file.
Describe the bug I have defined a single-type which have fields with different types. I have no problem importing content from text and media types but i run into an import error as soon as i try to import content from repeatable component which i have included in my single-type.
Plugin version https://www.npmjs.com/package/strapi-plugin-import-export-entries/v/1.18.1 Strapi version 4.6.0
To Reproduce Steps to reproduce the behavior:
object
type, but the final value was:null
(cast from the valueX
)." Where value X is the entry in the exported json file.{ "version": 2, "data": { "api::opiq-ee-frontpage-v2.opiq-ee-frontpage-v2": { "1": { "id": 1, "createdAt": "2023-08-30T12:35:42.269Z", "updatedAt": "2023-08-30T13:05:00.003Z", "publishedAt": "2023-08-30T12:40:12.981Z", "locale": "en", "logo": 3, "repeatable_component": [ 82 ], "localizations": [], "createdBy": null, "updatedBy": null } }, "plugin::upload.file": { "3": { "id": 3, "name": "logo-white.svg", "alternativeText": "logo-white.svg", "caption": "logo-white.svg", "hash": "logo_white_e7bb17e9d6", "ext": ".svg", "mime": "image/svg+xml", "url": "/uploads/logo_white_e7bb17e9d6.svg", "createdAt": "2023-08-30T12:41:29.050Z", "updatedAt": "2023-08-30T12:54:23.256Z", "createdBy": null, "updatedBy": null }, "componentname.text-url-css": { "82": { "id": 82, "text": "Get an error", "text2": "test", "text3": "export-import" } }, "plugin::upload.folder": {} } }