Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Contributor
mboldrick
Posts: 10
Registered: 12-13-2009
0
Accepted Solution

Location of Visual Integrator import (error) log?

I've written a VI job to import new sales orders, which runs via command line. Where are errors (or other results) stored / presented? I'd like to have my triggering program return any errors (or an indication of success, if one is available).

 

Thank you,

 

Mike

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

Re: Location of Visual Integrator import (error) log?

It's in the VI folder, well duh
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,689
Registered: 10-28-2008
0

Re: Location of Visual Integrator import (error) log?

Note that this log file cannot be opened by Notepad or WordPad.  A gentleman by the name of Slade developed a way to read the file and have it sent to you. It was posted on the old Sage Talk. Maybe some of the old timers remember how.
Big Louie No MBA but BMOC
--------------------------------------------------------------------------
You have enemies? Good. That means you've stood up for something in your life.
Contributor
mboldrick
Posts: 10
Registered: 12-13-2009
0

Re: Location of Visual Integrator import (error) log?


BigLouie wrote:
Note that this log file cannot be opened by Notepad or WordPad.  A gentleman by the name of Slade developed a way to read the file and have it sent to you. It was posted on the old Sage Talk. Maybe some of the old timers remember how.

I assume you're referring to the M4T file with the same name as the VI import job. I had overlooked it until your previous post, after which I noticed that it was only semi-legible in notepad. I'll see if one of my more programming-savvy partners can parse the file.

 

Thank you.

Regular Contributor
IBPIT
Posts: 266
Registered: 11-03-2008

Re: Location of Visual Integrator import (error) log?

You can use the following perform logic in this thread to create a text file that is legible.

 

http://community.sagemas.com/sagemas/board/message?board.id=SageMAS90Success&message.id=20&query.id=...

Kemp
Using MAS200 v4.2 & MAS90 v4.2, FRx (w/Report Server), FRx Webport, & F9
Contributor
mboldrick
Posts: 10
Registered: 12-13-2009
0

Re: Location of Visual Integrator import (error) log?

Thank you Kemp!
Regular Contributor
IBPIT
Posts: 266
Registered: 11-03-2008
0

Re: Location of Visual Integrator import (error) log?

No problem.

 

It is the process BL mentioned that was created by Slade.  We use it on a daily basis.

 

Don't forget to mark solved questions so others know there is a solution for the question.

Kemp
Using MAS200 v4.2 & MAS90 v4.2, FRx (w/Report Server), FRx Webport, & F9
Sage MAS Partner
marker6789
Posts: 3
Registered: 02-12-2010
0

Re: Location of Visual Integrator import (error) log?

When I attempt to use your PL file, I get returned an Error #14: Invalid I/O request for file state on Line 0007.

 

It does create the .log file, but does not export the log to it.  Any ideas?

 

My .PL is:

log_file$="C:/Users/john.smith/Desktop/Export.log"
erase log_file$,err=*next
serial log_file$
open (hfn)log_file$
log_chn=lfo
lock(log_chn)
read (59,key="",dom=*next)
read record (59,end=*next)rec$; translate rec$," ",sep; write record (log_chn)rec$; goto *same
close (log_chn)
exit

 

 

Thanks!

Regular Contributor
IBPIT
Posts: 266
Registered: 11-03-2008
0

Re: Location of Visual Integrator import (error) log?

I believe the issue is with the output location of the log file.  I am not sure if you can have it placed outside the MAS90 directory.  If you notice in my example, the output is going to a subdirectory of MAS90 on our server.
Kemp
Using MAS200 v4.2 & MAS90 v4.2, FRx (w/Report Server), FRx Webport, & F9
Sage MAS Partner
marker6789
Posts: 3
Registered: 02-12-2010
0

Re: Location of Visual Integrator import (error) log?

Kemp, good idea!  I tried it placing the .log file in the textout folder, and I get the same results.  Which folder did you put the .pl file in?

 

Thanks!