Sage 100

 View Only
Expand all | Collapse all

Importing IM descriptions - what is the ""safest"" f

  • 1.  Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 08:58
    Importing IM descriptions - what is the ""safest"" format to import inventory descriptions that have commas and quotes (inches/feet)? My default format is tab delimited but when saving, Excel will add beginning and ending quotes to the field if it contains a comma. For example, **""COLLAR, 2 PC SHAFT, 1-1/2""""** is what Excel creates for the import file. VI will import as **COLLAR, 2 PC SHAFT, 1-1/2""""**. The leading quote disappears but the two ending quotes remain. If I reduce the two ending quotes to one, VI still imports two quotes. Then I have some other descriptions that are identical to this but the quotes are correct. I have @Clean and @ Trim the fields in Excel. But then again, this is all via the test function. Perhaps I should go full on and see where the dust settles.


  • 2.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 09:10
    if you are using tab delimited then try find and replace (with blank) on all of the quotes. You don't need quotes as a delimiter if you specify the delimiter is a tab.


  • 3.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 10:02
    That is the slight problem. I do want some quotes. If I search and destroy for the bad quote, I risk losing some good quotes.


  • 4.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 10:04
    I usually search for double quotes """" and replace with single


  • 5.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 10:06
    A quote is typically defined with three quotes like


  • 6.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 10:45
    Why do they even have a test button for imports? Spent the morning chasing this false positive. If you eliminate the triple quote, the LIVE import functions correctly. Time to start drinking...


  • 7.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 11:25
    I read through this. I am under the impression you have a solution other than mine. Could you clarify that solution. My solution is to find "" and replace with IN :)


  • 8.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 11:45
    Excel should escape the double quote when exported, just like it escapes the comma by wrapping the cell contents in double quotes. A properly escaped double quote in a csv or tab delimted file would be doubled. Look at all 3 attached files exported by Excel 2016. Tab Delimited ``` ItemCodeItemCodeDesc COLLAR-2PC-SHAFT-112""COLLAR, 2 PC SHAFT, 1-1/2"""""" ``` Comma Delimited ``` ItemCode,ItemCodeDesc COLLAR-2PC-SHAFT-112,""COLLAR, 2 PC SHAFT, 1-1/2"""""" ``` Another option is as Diana said, replace the one double quote with two single quotes and in order to maintain data consistency, make sure the end users are instructed to not enter double quotes, instead enter two single quotes where needed.

    Attachment(s)

    xlsx
    DelimitedTest.xlsx   8 KB 1 version
    csv
    DelimitedTest_(CSV).csv   75 B 1 version
    txt
    DelimitedTest_(TAB).txt   75 B 1 version


  • 9.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 12:02
    No, find replace was part of the solution. When I saved as a tab delimited, the single quote at the end of the line exported to the txt file with THREE quotes. See David's first example. So I opened the file and performed a find three quote and replace with two quotes (per a KB, Excel issue). I then did a test import of 100 records. The TWO end quotes were visible. This is a RED herring. After two hours of futility, I did the actual importing thinking that it could be a red herring and it was! The second quote at the end of the description did not pass through, only the first one (COLLAR, 2 PC SHAFT, 1-1/2"") which is what I wanted all along. Thanks everyone.


  • 10.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 12:20
      |   view attached
    Did you try without converting to a delimited file?


  • 11.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 13:24
    Actually, no. Burned too many times 18 years ago so this never occurred to me. Might try the XLSX flavor for kicks next time. Thanks for pointing out that option.


  • 12.  RE: Importing IM descriptions - what is the ""safest"" f

    Posted 09-14-2018 14:30
    Download Libre Office (free) and use Calc for creating the .csv files as tab delimited. It actually let's you choose your delimiter and whether or not to put quotes around text fields