Announcement

Collapse
No announcement yet.

Import Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Import Error

    I've never run across this error before when trying to do an import

    Parse error: Input error, got quote inside non-quoted field
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    The meaning seems clear. Did the error message include a line number? What kind of import were you trying to do?
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment


      #3
      Originally posted by Kent Multer View Post
      The meaning seems clear. Did the error message include a line number? What kind of import were you trying to do?
      If it had a line number I would have been able to figure it out - maybe. It's a product import. But then how do I determine where the "non-quoted" field is at? It's a tab delimited CSV file.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Without knowing more details, here are a few thoughts:

        The lack of a line number seems odd. Doesn't Miva's import function include them in the log? Are you using a 3rd-party import module?

        If you look around in the Products section of admin, you may be able to figure out how far the import got before the error occurred.

        If the CSV file was generated from a spreadsheet, you may be able to look in the spreadsheet and find a field with a quote in it; or you may be able to regenerate the CSV, and check a box to put quotes around every text field.

        A brute-force method that I occasionally use for problems like this is to create a new CSV file that contains only half of the original data, and import that. If the error goes away, you know it's in the other half. Once you figure out which half it's in, you repeat the process: divide the half into two quarters, and see which one of those gets the error. Then you divide again, and again ... eventually you'll narrow down the location of the error to the point where you can just open the file and look for it.
        Kent Multer
        Magic Metal Productions
        http://TheMagicM.com
        * Web developer/designer
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        http://www.amazon.com/exec/obidos/IS...icmetalproducA

        Comment


          #5
          Yes, I'm using Miva's Data Import. It didn't give any line item, it just gave that message. What I wound up doing was to import the file sans the Description field. It seemed like the most logical place to start. Then I did a second import with just the Product Code and Description - strangely I didn't get any error. Not sure where exactly it was but the data has been imported.


          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment

          Working...
          X