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

[Solved] No Items Imported #46

@pikonha

Description

@pikonha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions