Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS 90 Customer
royvij
Posts: 4
Registered: 04-08-2010
0

Is there a way to stop double VI imports?

Once in a blue moon one of our customer service representatives accidentally imports a VI import file twice doubling the number items on several orders. Is there a way to stop an order number from importing twice? 

Switcher
BigLouie
Posts: 2,686
Registered: 10-28-2008
0

Re: Is there a way to stop double VI imports?

Welcome to the Sage Community!  Yes there is. With Perform Logic. Most of us either delete the source file or rename the source file.  On the old Sage Talk there were a number of examples posted.

Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Switcher
BigLouie
Posts: 2,686
Registered: 10-28-2008
0

Re: Is there a way to stop double VI imports?

Forgot to ask what version of MAS you are on.  Plus there is also perform logic that checks to see if the sales order already exist in history.

Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Sage MAS 90 Customer
royvij
Posts: 4
Registered: 04-08-2010
0

Re: Is there a way to stop double VI imports?

We are currently on MAS 200 version 4.05. I hope to get us to 4.4 soon.

Sage MAS 90 Customer
royvij
Posts: 4
Registered: 04-08-2010
0

Re: Is there a way to stop double VI imports?

Do you happen to have the commands that were listed on that page? 

Sage MAS 90 Customer
royvij
Posts: 4
Registered: 04-08-2010
0

Re: Is there a way to stop double VI imports?

**Crickets**

Switcher
BigLouie
Posts: 2,686
Registered: 10-28-2008
0

Re: Is there a way to stop double VI imports?

SETERR EXIT_LOGIC
F$=STP(VI2_IMPORT_FILE$)
F=POS("."=F$,-1)
IF F<>0 THEN F$=F$(1,F-1)
F$=F$+".csv" ! OR WHATEVER EXTENSION YOU WANT
ERASE F$,ERR=*NEXT ! DELETES THE FILE IF IT ALREADY EXIST
CH=FFN(VI2_IMPORT_FILE$)
IF CH<>-1 THEN CLOSE (CH)
RENAME VI2_IMPORT_FILE$,F$
EXIT_LOGIC:
EXIT 

 

Place in the VI folder

Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.