-
Notifications
You must be signed in to change notification settings - Fork 29
Inconsistent CSV file Import error: #48
Comments
From @Nym77 on November 21, 2016 8:58 I did some deeper investigation. |
From @veloraven on November 23, 2016 13:48 @Nym77 thank you for your report. |
From @Nym77 on November 24, 2016 8:45 @veloraven Magento 2.1.2 CE I looked more into that and i found that a product what containing in the short description a " . This was a regular " not a curly one. However it was messing with the csv file. Still the error report in magento was completely misleading as it was pointing to the wrong kind of error and to the wrong row. Is there any documentation regarding the proper formatting of a csv file? |
From @veloraven on November 28, 2016 10:38 @Nym77 thank you for the update. |
From @tobias-forkel on April 11, 2017 3:9 @Nym77 I had exactly the same problem today. My product CSV file was fine, but for some reason I got the error message After two hours of headache I ended up using Google Spreadsheet.
In my case I had to remove new lines for the column
So it looks like TextEdit on OSx just broke the CSV format all the time during search / replace operations. I didn't try vim or nano. |
From @IlnitskiyArtem on July 18, 2017 6:24 Hi, @Nym77. Internal ticket MAGETWO-{70803}, which tracks this GitHub issue, is in our issue backlog. |
From @magento-engcom-team on October 5, 2017 9:30 @Nym77, thank you for your report. |
@dmanners I checked this and think that Import works good, however, some things can be improved. |
@TomashKhamlai thanks, could you also make a note of any suggested improvement idea you have. That would really help us out. |
@dmanners, if the error occurs Magento can check if there is a way to parse it in some other way then modify to supported standard and try again. According to comments the source of the error is the way of saving files that were made by TextEdit. It is also known that MS Excel also has problems with CSV. According to the same comments, we can see that Google Sheets it is a good instrument, probably there is some instrument in some composer repository that can do the same as Google Sheets or LibreOffice. The better idea is to open an issue on Microsoft Excel and TextEdit GitHub issue trackers :))) The best way to improve is to write an article on Magento DevDocs that covers the problems with saving CSV files in the most popular word- and table-processors. |
Include 'products' in category query
- Fixed test in case when indexer mode is 'on schedule'
MAGETWO-66666: Adding a product to cart from category page with an ex…
I am getting this error on import and it is not due to a funny curly quote or anything like that... it is from a regular apostrophe. After hunting this error down in the code base, I can see that it is occurring at this line: https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/ImportExport/Model/Import/Source/Csv.php#L82. I am on 2.2.3 right now but the code is the same.
Can someone please explain why a regular apostrophe is causing this error? I originally didn't believe it, so I copied that character out of the code base and analyzed it, to make sure it was in fact a regular apostrophe, and it is: This error is occurring for me because I have an apostrophe inside a text attribute. Just in case anyone was curious, these are the unicode values for actual curly apostrophes:
|
From @Nym77 on November 20, 2016 18:30
I am using a standard Luma installation with example and I am trying to add products in magento using an automatic generated csv file.
If I use the file BB-ProductsWorking.csv I am able to import the products and file is parsed without errors.
If I am using the file BB-Products.csv I obtain the following error ( Curly quotes used instead of straight quotes in row(s): )
If I remove the rows from the above file the error does not disappear but is present in 4 different rows
Please note also that all files are formatted using the same program and in particular raw 1 and 2 in both BB-ProductsWorking.csv and BB-Products.csv are identical. Therefore they both should be correctly parsed.
Preconditions
Steps to reproduce
Expected result
Actual result
files for reproducing the behaviour
BB-Products.zip
Copied from original issue: magento/magento2#7495
The text was updated successfully, but these errors were encountered: