Skip to content
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

Inconsistent CSV file Import error: #7495

Closed
Nym77 opened this issue Nov 20, 2016 · 9 comments
Closed

Inconsistent CSV file Import error: #7495

Nym77 opened this issue Nov 20, 2016 · 9 comments
Labels
bug report Component: ImportExport Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@Nym77
Copy link

Nym77 commented Nov 20, 2016

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.
    screen shot 2016-11-20 at 19 11 05

  • If I am using the file BB-Products.csv I obtain the following error ( Curly quotes used instead of straight quotes in row(s): )
    screen shot 2016-11-20 at 19 08 43

  • If I remove the rows from the above file the error does not disappear but is present in 4 different rows
    screen shot 2016-11-20 at 19 15 49

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

  1. Magento Version: last current version with example PhP 7 installed in MAMP

Steps to reproduce

  1. import BB-ProductsWorking.csv and enjoy the results :-)
  2. import BB-Products.csv and experience the error

Expected result

  1. the file BB-Products.csv should be imported correctly or the error message should explain the reason of the failure

Actual result

  1. see short description

files for reproducing the behaviour

BB-Products.zip

@Nym77
Copy link
Author

Nym77 commented Nov 21, 2016

I did some deeper investigation.
The file looks correct if you split it import less then 25 products at the time. If you try a larger amount you get the following error:
"Curly quotes used instead of straight quotes in row(s):"

@veloraven
Copy link
Contributor

@Nym77 thank you for your report.
Please identify which version of Magento you are running

@Nym77
Copy link
Author

Nym77 commented Nov 24, 2016

@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?

@veloraven
Copy link
Contributor

@Nym77 thank you for the update.

@tobias-forkel
Copy link
Contributor

tobias-forkel commented Apr 11, 2017

@Nym77 I had exactly the same problem today. My product CSV file was fine, but for some reason I got the error message Curly quotes used instead of straight quotes in row(s).

After two hours of headache I ended up using Google Spreadsheet.

  1. Open Google Spreadsheet
  2. File > New > Spreadsheet
  3. Upload your xlsx or csv
  4. Import your file to the new spreadsheet
  5. Remove new lines
    5.1 Edit > Find and Replace
    5.2 Find \n
    5.3 Replace with nothing
    5.4 Check Search using regular expressions
    5.5 Hit the button Replace All

In my case I had to remove new lines for the column categories. You may can skip step 5.

  1. Export the spreadsheet via File > Download as > CSV
  2. Import the downloaded file in System > Import

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.

@IlnitskiyArtem
Copy link

Hi, @Nym77. Internal ticket MAGETWO-{70803}, which tracks this GitHub issue, is in our issue backlog.

@veloraven veloraven added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jul 20, 2017
@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Component: ImportExport labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Oct 5, 2017
@magento-engcom-team
Copy link
Contributor

@Nym77, thank you for your report.
We've created internal ticket(s) MAGETWO-70803 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 11, 2017
@piotrekkaminski
Copy link
Contributor

This issue was moved to magento-engcom/import-export-improvements#48

@danrcoull
Copy link

for anyone coming across this issue, for me it was caused by having " in any of the columns that are text based for example description and short_description

magento-engcom-team pushed a commit that referenced this issue Sep 18, 2019
- Fixed an issue with dublicated file validation;
magento-engcom-team pushed a commit that referenced this issue Sep 18, 2019
magento-engcom-team pushed a commit that referenced this issue Sep 18, 2019
magento-engcom-team pushed a commit that referenced this issue Sep 18, 2019
magento-engcom-team pushed a commit that referenced this issue Sep 18, 2019
- Fixed [FT] Not pass functional test \Magento\Catalog\Test\TestCase\Product\ProductTypeSwitchingOnUpdateTest
- Fixed [GITHUB] Inconsistent CSV file Import error: #7495
- Fixed Incorrect behavior in the category menu on the Storefront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: ImportExport Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

8 participants