-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento 2.1.0 - "General system exception happened" on Import .csv #6924
Comments
Could you please share file that you try to import? |
Hi, We are having the same error. We are using the version Magento 2.1.0 CE. Thanks |
Attached file is working for me, no error appear. Try update to latest magneto version. |
Thanks!! |
@githeat Have you tried updating your code base? |
No. It worked with 2.1.0 CE as well, there would be some issue with server configuration I guess, as we have transferred the site to another server, it started working. I need to ask the server administrator about the difference. |
This issue shouldn't be closed as there was no response to @githeat his post. There should REALLY be something logged to the logs files because now there is not a single trace of what the problem could be... |
I've done some more digging and the place where the problem lies is in the validateSource function in Magento\ImportExport\Model\Import where the exception in the try catch is not being logged / outputted
In our case the Magento\Framework\Stdlib\StringUtils was throwing a warning during strlen function because of an incorrect character |
Same issue "General system exception happened", on magento 2.1.5, made a sample file download in the admin zone and tried to import it, just for testing, same error. Just have logs on debug.log: main.DEBUG cache_invalidate Does anyone know how to solve this? |
I had this and after doing random 1 line imports, I found it was some characters in the descriptions. I had to open the csv in Notepad++ and go Encoding> Convert to UTF-8-BOM then save it as a copy. Went straight on then. |
I have same issue with customer Main csv import. It will import about half a dozen. Any more than that and if falls over. It's not the actual data as I can then import that data a bit at a time. Once the records are created, then I can update the data, but this error is occuring on more than 6-7 new entries. I want to add 3000, so help! |
Exactly the same problem on 2.1.7. It works only when you split them in batches of 500 products per import. |
Magento, can you improve you error reporting in order to add the Exception Stack trace and not only catch the exception and return a general error message ? |
I had the same issue with Hebrew strings and the conversion to UTF-8 solved the issue |
[EngCom] Public Pull Requests - 2.2-develop - MAGETWO-82954: Admin product search - Pressing enter does not submit #4696 #11827 - MAGETWO-82953: Fix #11581: Reference to wrong / non-existing class #11830 - MAGETWO-82887: X-Magento-Tags header containing whitespaces causes exception #11767 - MAGETWO-82886: Improve error reporting for products images import. #11779 - MAGETWO-82754: Magento setup:install interactive shell #11425 - MAGETWO-81594: Issue #6924: Unmask exception message during product import #11363
Internal ticket to track issue progress: MAGETWO-81594 |
@magento-engcom-team This is still an issue on 2.1.9. Please reopen until this is fixed in 2.1.x. |
Same issue in 2.2.0. importing grouped products.
if i remove associated_skus from CSV, it imports successfully. I was able to successfully import the same CSV in ver 2.1.9 |
Same issue, not yet updated to 2.2. Issue occurs for me when trying to import only sku and crosssell_skus. EDIT: I uploaded everything per 175 products, which did work. The issue MAY have been related to grouped/bundled products, or maybe too long sku names... I'm not sure. |
same problem here, tried everything but no solution. Even applied this in vendor/magento/module-import-export/ eeb0e6f#diff-ea3120705d77399fa31b22b5d099c822 |
Hi @githeat. Thank you for your report.
The fix will be available with the upcoming 2.3.0 release. |
This is still an issue with Magento 2.2.3. General system exception happened |
Make sure your URL_KEY 's are unique. This error is triggered by duplicate URL keys too. |
Having the same issue in 2.2.4 General system exception happened |
Still occurring on 2.2.5. Definitely seems to be related to a capital letter on the sku column, specifically with grouped products. Will investigate further and comment. |
@insanityinside, please update steps to reproduce |
Creating minimal test case now on clean 2.2.5 install, and diving into the code to find out precisely what is occurring. Hang tight. |
Minimal testcase confirmed, using System->Import, entity type products, import behaviour add/update, stop on error, error count 10, field separator comma, multiple value separator comma, field enclosure ticked or unticked (no difference). Minimal testcase file CSV attached. Will now test against 2.2-dev. |
Confirmed solved in 2.2-dev as of current. Closing ticket. |
This is still an issue with Magento 2.3.0 Same error throws on product upload.csv |
Same to 2.3.1 please have look again. thanks |
Same error on 2.3.3 |
when I imported 498 item instead, it goes ok |
[Lynx] jQuery deprecated functions replacement
Preconditions
Steps to reproduce
(Remove quotation marks).
Expected result
Actual result
My .CSV is encoded (Using Notepad++) in "UTF-8-BOM". I have also tried "UTF-8".
Magento has been updated to 2.1.0.
I have checked:
/var/log/apache2/error.log - No related entries
/var/log/mysql/error.log - No related entries
/var/www/html/magento/var/log/system.log - No related entries
/var/www/html/magento/var/log/debug.log - No related entries
/var/www/html/magento/pub/media/import has 777 permissions to rule out permission issue.
Images inside /var/www/html/magento/pub/media/import have 775 permissions to rule out permissions issue.
In php.ini - upload size is 8mb (.csv is only 4mb).
In php.ini - uploads are enabled
Aside from this, I don't understand the issue. My .CSV is valid because I have been able to import products before, and I can import 1 product at a time. When I try and import 4k+ I get the issue, but it's unfeasable to try and do it by batches of 100.
Thanks for your time
The text was updated successfully, but these errors were encountered: