Magento2.0 import the customers using CSV or Programmatically? - import

HOw to import the customers using csv in magento 2.0?first i am try to export the existing customer in magento 2.0 and chnages the data in csv and import again,at the importing section importing is successfully done.But the New imported customers is not added in Customer->All Customers in Admin.Please give me any solution

You have successfully imported all customer and new customer has been added in database. Those new customers are not showing in grid because may be you have not performed reindex. I suggest you to perform reindex and than this may show in grid.

Related

During magento 2 import How to import some data from csv to custom table?

During the magento product import some of the data or column in csv file need to import in my custom table. Can anyone help me ?
This is not possible in Magento2 without customization.
You can create a custom module to add new import type and here are some steps to follow:
https://bsscommerce.com/confluence/how-to-import-csv-file-to-custom-table-magento2/

Magento 2.3.2 Import only images for multiple products

I want to import images for multiple products. I read many questions and I tried the answer but with no luck.
I want to import images from external server. For that I created CSV with sku, base_image, small_image, thumbnail_image column.
The value in all field is like :
htts://external.com/imgae_name
I selected "Product" in Entity Type, Import Behaviour is Add/ Update. I skip Image file directory.
When I click on "check data" button I am getting following error.
Product Type is invalid or not supported in row(s): 1
If I add Product type column then I am getting attribute set error. Can anybody help me on that ?
Even when I import custom attribute I am getting same error. For that I created csv with sku and cost.
Here cost is my product attribute.
Try setting your Product type as = 'Default' that should stop the error when you click 'check data' when uploading your csv.

How can i import a son model with relation to a father model?

i've a application with 2 Google Drive Tables (FatherM & SonM models)
and with a many to one relation
i'm able to export the data in a spreadsheet
in the SonM model at export an extra column is created automaticaly by the export with the name of the relation (FatherM) and containing all the Keys of the fathers records
when i import the single model data Son spreadsheet i've an error :
V:1 Field names "FatherM" in the spreadsheet can't be found in the corresponding model.
yes it doesn't exist in the model but is created by the relation
how can i import SonM datas ?
The difference between "import single model" and "import all models and relations" modes that "import single model" doesn't import relations, instead it expects that all columns in your spreadsheet are fields of a model. You can try to use "import all models and relations" mode with a spreadsheet where is all other (except of SonM) spreadsheets tabs don't contain data.
Thanks very much for your answer
I’m now using the all models to import relation too.
Her are some comments. if you have any information to give me, don’t hesitate to tell me
My goal is to export all the models from a test environment in a spreadsheet, add row manually or modify, then later on I will import all the data on a prod environment
1) I’ve exported all the data OK
2) I’ve re imported all the data :
First remark : if one of the spread sheet tab is empty (only one line with the title column)
I’ve got an error at import : Cannot read property "length" from null. 0 records imported
I’ve deleted all the tabs that don’t have data, and now not any more this error
Second remark: I’ve another import message from google import
Value error at cell "V:6": Can't import association: "Invit - Event", because record key is not defined. 0 records imported
Event is my father model and Invit is my son model. (for One Event I’ve many Invitation)
About V:6 , in Invit tab V is the relation column to the Event. (it contains all the key that are link with the main _Key of the Event model, the name of this column is the name of the relation I’ve created)
The first 5 lines of this tab are the invitation I’ve made manually using the my appmaker application, (and each of these line have a _Key value on column A) the line 6 and after are invitation I’ve added manually (coming from another tool, theses are old invitations I need to import)
On line 6 and after the column A (_key) is empty
The cell value in V:6 is an Event(_Key) ant it exist. So I don’t understand the import error message from Google. (do you understand this message?)
Third remarks
I’ve jus done this test:
Create a new son relation using the appmaker tool
Export all the data
Re -import exactly the same data
And I’ve got this error
Drive Table internal error. Record not found. 0 associations imported
Do you know where I can find information about importing relation, on this page https://developers.google.com/appmaker/models/import-export nothing about relation
Thanks
Stéphane

magento 2.1 - Automatic Creation of Categories During Product Import

I am trying to import 5000 products into magento 2.1 backend using a CSV file. The file also contains categories for the products and I aim to import the categories of the product as well.
During the import when categories are being created, the url-key assigned to them is blank. So when it goes to the next record and tries to create new categories, there is an error :
"Category "A/B/C/" has not been created. URL key for specified store already exists".
My understanding is that since the import mechanism is unable to create proper url-key based on category name, then a blank entry is put as url-key and the next category to import which also has a blank url-key identifies a duplicate and throws an exception.
Does anyone know a way to set a default mechanism, to generate url-key based on category name during import process?
Thanks!

Data importing and updating with EA_Import for many2many field

I am using ea_import tool to import and update the data in forms. I am able to do import (if new) and update (if exists) successfully for all fields including one2many and many2one but not for many2many. Is there a way to do that with ea_import or with any other module or with default import functionality.
I would like the following to happen for the list of records: Create if it doesn't exist or update if it exists. I can give the data in any format required not an issue. Any idea of how to do this (for field many2many)?