Sage 100

 View Only
Expand all | Collapse all

Need some help. Working with Sage 100 Adv v2016 an

Shannon Stanley

Shannon Stanley12-14-2018 05:18

Shannon Stanley

Shannon Stanley12-14-2018 18:26

Shannon Stanley

Shannon Stanley12-14-2018 18:36

  • 1.  Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 07:27
    Need some help. Working with Sage 100 Adv v2016 and Windows Server 2012 R2. I have two VI export jobs that are scheduled to run in Windows Task Scheduler. In the history tab of Task scheduler is shows the jobs have completed. When I look to see if the data is in the folder, nothing is there. If I go back into Sage and review the job status of the job it shows ""not running"" but if I look inside master console the job name shows it still running. If I manually run the jobs inside Sage, they both take less than 3 mins to complete. Any suggestions on what I need to troubleshoot next with Windows Task Scheduler? TIA


  • 2.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 07:32
    While logged in, I would manually run the Task Scheduler to see if it actually happens. Also make sure the Task is configured to run without being logged in.


  • 3.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 08:27
    Create a batch file with the VI commands (tuned to not require a UI). Make sure it runs, then schedule it. Or better yet, don't use VI for exports... use Visual Cut instead.


  • 4.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 09:47
    I did try to create a batch file with the VI commands and it still doesn't produce any data results @KevinMoyes . I also ran it manually in TS and changed the option to run without being logged in and it completes the task with no data results @SteveIwanowski . @KevinMoyes I'm not familiar with Visual Cut does it work similar to task scheduler? Any other ideas....I normally have better luck with task scheduler running the jobs. The user account is part of the admin group.


  • 5.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 09:53
    Visual Cut webinar: https://www.dropbox.com/s/rurv82aoz8tnc3e/90%20Minds%20Visual%20CUT%20Webinar.mp4?dl=0


  • 6.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 10:54
    It could be a few things: I'd try running the batch file step by step through a command line, changing the AUTO to MANUAL to see if you even get the right V/I job to trigger. If that works, then see if you are trying to save the files to a mapped drive that the Task Scheduler account may or may not have access to. Maybe try a UNC path instead of a mapped drive letter. VisualCut is very awesome and a great value, but then you need to generate a Crystal Report to extract the data. I do these things in PowerShell nowadays, so maybe I need to create a simple script to share....


  • 7.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 18:34
      |   view attached
    When I run the batch file manually and change the script to run as manual the job completes. When I run the batch file and change the script to run as AUTO it does not complete the job. I switched the jobs to run on the terminal server bc I thought the third party processing running on the main server could be causing the job not to complete. Do I need to add additional command line in my script? Attached a sample of the script. Could it be mapped to the wrong pvxwin32.exe location? TIA

    Attachment(s)

    txt
    batchscript.txt   224 B 1 version


  • 8.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-13-2018 21:20
    Is the log file being created after the task is being completed? Since this is advanced and running as a service, I assume, logon to windows with that Account. While logged in with that account setup up a default printer. A real one not a PDF printer. If the Task Scheduler cannot print that to a printer or gets prompted for where to save the log file the job will not finish and will stay stuck in running mode


  • 9.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 05:18
    I will give that a try @CarmenCruz


  • 10.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 06:29
    Sage KB located with Sage 100 search: ""visual integrator"" + ""short cut"" gives a long doc on this. Title: ""How to create a short-cut or Windows batch file to run a Visual Integrator import job, export job, or other Sage 100 ERP task outside the program


  • 11.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 06:48
      |   view attached
    I'd check how you configured the service...


  • 12.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 18:13
    I have re checked several settings and put the VI job and script on a workstation and it works running as manual or auto. Went back to the customers environment on the terminal server set it back up. If I manually run the bat file it completes the task on the server. When I edit the script to run switch it to AUTO it doesn't complete (it hangs and doesn't close out the cmd window). I'm logged in as Admin on the server, anti-virus is turned off, UAC is turned off and right clicked to run the bat as admin and still doesn't complete. IT person hasn't provided much help with troubleshooting. I'm thinking it's something environmental on the server that is causing the process not to complete but I'm out of ideas.


  • 13.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 18:23
      |   view attached
    I think the VI job has to be added to the Apps tab of the Application Server Configuration before it will run via a batch job in Windows Task Scheduler. The attached may help.

    Attachment(s)



  • 14.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 18:26
    I have added these steps and it still stalls


  • 15.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-14-2018 18:36
      |   view attached


  • 16.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-15-2018 16:19
    When you run the batch file in a command window (CMD), be sure to login as the user set in Task Scheduler that you said was in the admin group. Don't just run it in the Run field. You'll need to see any responses to the batch command.


  • 17.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-17-2018 06:39
    Your start-in directory has a space... usually that requires the path to be wrapped in double-quotes.


  • 18.  RE: Need some help. Working with Sage 100 Adv v2016 an

    Posted 12-17-2018 17:40
    The issue with the bat files hanging up (not running inside of task scheduler) was related to the cycle settings inside the VI jobs that I had setup at one time and decided not to use any longer. Thank you @AlnoorCassim for your help troubleshooting the issue. I really appreciate it!