-
Notifications
You must be signed in to change notification settings - Fork 59
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
Import Categories fail in 1 action #197
Comments
It seems that your user isn't allowed to use the function "LOAD DATA INFILE". Some servers disabled it by default In order to fix this, you may try to change LOAD DATA configuration
If the error remains, try to change pimgento data insertion method this way
Note that "By rows" method is slower than "Data in file" |
Thank you. I have successful import "by row", however that data from Akeneo is not compatible with Magento 2. This cause the categories imported without any information My sample categories export from Akaneo bellow |
I mean the Categories after import appear as this
![screenshot_1](https://user-images.githubusercontent.com/5319910/44712976-44499480-aadc-11e8-9806-7ac1b45a904c.jpg)
|
I don't know how to display image. @lbassin : Do I need to configure anything in Configurations? |
I don't think there is a specific configuration to change I'll need more information in order to fix this issue select * from pimgento_entities where import = 'category' |
Yes. checked and already have pimgento_entities table. I have tried empty it re import but no sucess. Maybe the problem is from Magento version. I tried the same categories export with 2.10, it works. It not work with 2.25 |
I don't think version has something to do in this issue, I successfully imported your data in a 2.2.5 magento installation Have a closer look to the pimgento_entities table. |
Mhm this is a strange behavior. I'll try to repeat the same steps and see what happens What categories did you import with the second file ? A mix of new and old ? |
I try to test import categories and get this error
bin/magento pimgento:import --code=category --file=categories.csv
[09:31:29] Start import
[09:31:29] Import id: 5b7a8a71a83d1
[09:31:29] Create temporary table
[09:31:29] completed
[09:31:29] Fill temporary table
[09:31:29] SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user 'zzzmwxsvnj'@'%' (using password: YES), query was: LOAD DATA INFILE '/tmp/categories.csv' REPLACE
INTO TABLE tmp_pimgento_entities_category
CHARACTER SET UTF8
FIELDS TERMINATED BY ';'
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
The text was updated successfully, but these errors were encountered: