Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nirav-tvc opened this issue Apr 11, 2024 · 5 comments

Comments

@nirav-tvc
Copy link

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
Copy link

I am also facing the same issue

@karimzg
Copy link

karimzg commented May 29, 2024

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

@AbhayaShankar
Copy link

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
Copy link

simonetavoletta commented Jun 25, 2024

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

@mateonunez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants