Sage 100

 View Only
Expand all | Collapse all

Import Customer Number

  • 1.  Import Customer Number

    Posted 12-21-2023 19:32

    I'm batting zero this week. I have an import for AR Customer. The source files contains hyphens in the customer number. I created a temp field, placed in the top spot of my import and then for customer number used a calculated formula SUB(Temp001$,"-","^"). This is not working. Even if I just strip the formula from the Customer Number and put in the temp field Temp001$, my import fails. What am I missing?



    ------------------------------
    Tina Meacham
    RKL eSolutions, LLC
    ------------------------------


  • 2.  RE: Import Customer Number

    Posted 12-22-2023 06:55

    Is it failing on the customer, or on the division?



    ------------------------------
    Beth Bowers
    (269) 358-0989
    ------------------------------



  • 3.  RE: Import Customer Number

    Posted 12-22-2023 08:11

    Are the hyphens consistently in the same position in the source file customer number? 



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 4.  RE: Import Customer Number

    Posted 12-22-2023 09:08

    What is failing exactly?  can you attach a screen shot of the log records and what shows if you double click on one of the failed lines ?



    ------------------------------
    David Overholt
    DWD Technology Group
    ------------------------------



  • 5.  RE: Import Customer Number

    Posted 12-22-2023 10:26

    Maybe you cannot use a calculated field on customer number?

    Steps

    1. Create a temp field & place at the top (I've also placed between Division and Customer No)
    2. For CustomerNo, use Calculated for operation and put in Temp field.

    Questions 

    • The hyphens are not in the same spot on each customer number.
    • When I got to import, the Customer No record fails and says "The customer number is required". (see below screenshot)
    • The import fails on the customer number, division works fine. 
    • I'd call it a day if it was a one off, but this will be a 3 part import (AR Customer, AR Invoice and AR Cash Receipts) referencing the customer number in each source file and ran daily. 



    ------------------------------
    Tina Meacham
    RKL eSolutions, LLC
    ------------------------------



  • 6.  RE: Import Customer Number

    Posted 12-22-2023 12:48

    What's the purpose of the "^" in the formula SUB(Temp001$,"-","^")?  If you want to remove the hyphens I believe you can substitute with "" not "^" like SUB(Temp001$,"-","").  If you want spaces where the hyphens are then SUB(Temp001$,"-"," ")



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 7.  RE: Import Customer Number

    Posted 12-22-2023 13:06

    They didn't want to lose masking length so we just substituted another character that Sage would like, but it doesn't work. 



    ------------------------------
    Tina Meacham
    RKL eSolutions, LLC
    ------------------------------



  • 8.  RE: Import Customer Number

    Posted 12-22-2023 13:25

    Import the attached job.  It works replacing the hyphen with a space.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------

    Attachment(s)

    txt
    test.txt   7 B 1 version
    EXP
    artest.EXP   90 KB 1 version


  • 9.  RE: Import Customer Number

    Posted 12-22-2023 13:38

    Make sure on your TEMP field you set the "Assign Temp On" to "Key Assigns Only".



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 10.  RE: Import Customer Number

    Posted 12-22-2023 16:20

    Hi Doug, 

    Thank you for the import! I'm working on premium 2023 and for some reason my assign on temp will not stick when I selected Key Records. I'm thinking that might have been the issue? I had to create a new one, copy yours and it worked. Thank you! 



    ------------------------------
    Tina Meacham
    RKL eSolutions, LLC
    ------------------------------



  • 11.  RE: Import Customer Number

    Posted 12-22-2023 16:23

    That's great.  Glad it's working as you intended it to.



    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Chauffeur, Chef, and Personal Assistant to Sprinkles
    ------------------------------



  • 12.  RE: Import Customer Number

    Posted 12-22-2023 16:34

    I also had to add the second temp field! Plus as a side note, I did change the space to a * and it worked. Have a good holiday and thank you again! 



    ------------------------------
    Tina Meacham
    RKL eSolutions, LLC
    ------------------------------



  • 13.  RE: Import Customer Number

    Posted 12-22-2023 10:14

    Unless this is a recurring import, I call it a day and create a column in Excel for Division and a Column for CustomerNo and use Excel formulas to populate each cell. Copy down. Export. Done.



    ------------------------------
    Wayne Schulz
    wayne@s-consult.com
    Schulz Consulting
    (860) 516-8990
    Moodus, CT
    ------------------------------



  • 14.  RE: Import Customer Number

    Posted 12-22-2023 13:03

    Not sure why you are using SUB(Temp001$,"-","^")...  I would think Div would be MID(Temp0001$.1,2) and Custno would be MID(Temp001$,3) this is assuming of course your data is consistent with two chars ahead of dash for Div and the chars after the dash or formatted properly of course



    ------------------------------
    Randy Marion
    ------------------------------