Baboo7 / strapi-plugin-import-export-entries

Import/Export data from and to your database in just few clicks.
175 stars 86 forks source link

idField configured in schema.json is not showing in selection while import #189

Open nirav-tvc opened 4 months ago

nirav-tvc commented 4 months ago

As per documentation, I have added "idField" in schema.json of collection as well as enabled:true in config/plugin.js.

However, when importing data, I am not able to see/select "title" in dropdown.

my schema.json file: { "kind": "collectionType", "collectionName": "deals", "info": { "singularName": "deal", "pluralName": "deals", "displayName": "Deal", "description": "" }, "options": { "draftAndPublish": true }, "pluginOptions": { "import-export-entries": { "idField": "title" } }, "attributes": { "name": { "type": "string" }, "slug": { "type": "string" }, "title": { "type": "string", "unique": true, "required": true } } }

my plugin.json file: module.exports = ({ env }) => ({ 'import-export-entries': { enabled: true, config: { serverPublicHostname:"", importUniqueIdentifierField: ['title', 'name', 'id', 'slug', 'url', 'legend'], }, }, });

my package.json file: { "name": "my-strapi-project", "private": true, "version": "0.1.0", "description": "A Strapi application", "scripts": { "develop": "strapi develop", "start": "strapi start", "build": "strapi build", "strapi": "strapi" }, "dependencies": { "@strapi/plugin-cloud": "4.23.0", "@strapi/plugin-i18n": "4.23.0", "@strapi/plugin-users-permissions": "4.23.0", "@strapi/strapi": "4.23.0", "better-sqlite3": "8.6.0", "react": "^18.0.0", "react-dom": "^18.0.0", "react-router-dom": "5.3.4", "strapi-plugin-import-export-entries": "^1.23.1", "styled-components": "5.3.3" }, "author": { "name": "A Strapi developer" }, "strapi": { "uuid": "3a810887-0491-44a4-9edd-793ef07b7666" }, "engines": { "node": ">=18.0.0 <=20.x.x", "npm": ">=6.0.0" }, "license": "MIT" }

Also, refer screenshot when I am trying to select "title" field as unique identifier. Screenshot_456

Can any please help with what I am doing wrong ?

AbhayaShankar commented 3 months ago

I am also facing the same issue

karimzg commented 3 months ago

Also facing the same issue with version 1.23.1 Generates "ValidationError" at import.

AbhayaShankar commented 2 months ago

I fixed it by not using the plugin but building a custom controller instead. That helped a lot Used csv file for generating the bulk upload feature.

simonetavoletta commented 2 months ago

Hi, same here. This happens after the update to Strapi 4.25.0

mateonunez commented 2 months ago

Hey folks, same issue here. Are there any plans to implement or fix that missing part?