Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

[Solved] No Items Imported #46

Open
pikonha opened this issue Oct 14, 2021 · 0 comments
Open

[Solved] No Items Imported #46

pikonha opened this issue Oct 14, 2021 · 0 comments

Comments

@pikonha
Copy link

pikonha commented Oct 14, 2021

I've came across this error message when importing a csv file: No Items Imported.

As this does not provide any feedback on what's going wrong in the import process, I had to investigate by myself. What did expose the errors that were happening was the console.error in this file:

node_modules/strapi-plugin-import-export-content/services/importer/importUtils.js

const importToCollectionType = async (uid, item) => {
  try {
    await strapi.entityService.create({ data: item }, { model: uid });
    // await strapi.query(uid).create(item);
    return true;
  } catch (error) {
    console.error({e: error.data.errors})
    return false;
  }
};

Hope this helps anyone having the same issue. Wish y`all the best.

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

No branches or pull requests

1 participant