Difference between revisions of "Auto Upload"

From BudgetLink Wiki
Jump to navigation Jump to search
Line 66: Line 66:
To configure DCOM, follow these steps.
To configure DCOM, follow these steps.


# Start Component Services using the windows Start menu, typing run, and running '''mmc comexp.msc /32''' for 32-bit excel and '''dcomcnfg''' for 64-bit excel;
# Start Component Services using the windows Start menu, typing run, and running '''mmc comexp.msc /32''' for 32-bit excel or '''dcomcnfg''' for 64-bit excel;
# Navigate to Component Services, then Computers, then My Computer and click on DCOM Config;
# Navigate to Component Services, then Computers, then My Computer and click on DCOM Config;
# Find '''Microsoft Excel Application''', right-click on it and choose '''Properties''';
# Find '''Microsoft Excel Application''', right-click on it and choose '''Properties''';

Revision as of 18:03, 1 December 2013

Overview

Auto Upload is a function that runs the Get Data process on a schedule. The main purpose of Auto Upload is to remove the manual running of the Get Data process and to move the processing to a non-productive time such as overnight.


How to test to ensure Auto Upload can run

The Auto Upload.xls file within the system folder of BudgetLink

BudgetLink requires the Auto Upload function to be switched on before this process will work. Once switched on, we recommend you test out that it is configured correctly and can run. You can do so by following these steps.

  1. Ensure that BudgetLink is closed;
  2. Locate the Auto Upload.xls file in the BudgetLink System folder and double click to open;
  3. BudgetLink will then open, start the Get Data process and then close when the Get Data process is complete.



How to set up Auto Upload

To setup Auto Upload, please follow these instructions. Note that these instructions are dependant on the version of windows you run and may vary slightly. It is also highly recommended that you get your IT personnel to setup the scheduled task.


  1. Click Start, then Control Panel, then Administrative Tools, then Task Scheduler;
  2. In the Task Scheduler form, select Create Basic Task;
  3. Enter a Name for the task (for example BudgetLink Get Data) and click Next;
  4. In the Task Trigger form, select the period for the Auto Upload to occur and click Next;
  5. In the Daily form, enter the Start date and time that the first Auto Upload will occur and click Next;
  6. In the Action form, select Start a program and click Next;
  7. In the Start a Program form, click Browse… and select the Auto Upload.xls file in the BudgetLink System folder and click Open;
  8. The path of the Auto Upload.xls file will display in the Program/script field. Click Next;
  9. In the Summary form, select Open the Properties dialog for this task when I click Finish and click Finish;
  10. In the General tab, select Run whether user is logged on or not. If you do not have Administrator rights then click Change User or Group… and change the user to be the Administrator. Click the Actions tab;
  11. In the Actions tab, click Edit. The Edit Action dialog box will appear.
  12. In the Program/script field, ensure that the path is a UNC path and not a mapped drive. A UNC path begins with the server name. Click OK to close the Edit Action dialog box and click OK to close the Properties dialog box. Enter your password if required.
  13. To test the Auto Upload process, select Task Scheduler Library to the left of the Task Scheduler form. Select the Auto Upload task and click Run.

Notes

  • When choosing a time to run the auto upload process, ensure your chosen time does not conflict with backups or other system processes.
  • When browsing to the Auto Upload.xls file, ensure that the path is a UNC path and not a mapped drive. A UNC path begins with the server name.


Required folders for auto upload

In order for newer versions of windows to run excel spreadsheets as a scheduled task, the following folders must exist. The default windows setup may not have created them. Otherwise, it is possible that the task launch but excel will not run any code or macros (e.g. you will see excel.exe in the task manager but it will be using 0% CPU).

This folder is required for Microsoft Excel 32-bit

C:\Windows\System32\config\systemprofile\Desktop

This folder is required for Microsoft Excel 34-bit.

C:\Windows\SysWOW64\config\systemprofile\Desktop


Required DCOM settings for auto upload

In order for newer versions of windows to run excel spreadsheets as a scheduled task, the related DCOM components must be created correctly. Otherwise, it is possible that the task will not even launch (e.g. you will not see excel.exe in the task manager).

To configure DCOM, follow these steps.

  1. Start Component Services using the windows Start menu, typing run, and running mmc comexp.msc /32 for 32-bit excel or dcomcnfg for 64-bit excel;
  2. Navigate to Component Services, then Computers, then My Computer and click on DCOM Config;
  3. Find Microsoft Excel Application, right-click on it and choose Properties;
  4. In the Security tab, under Launch and Activation Permissions, select Customize, click Edit and add the required account or user group;
  5. In the Security tab, under Access Permissions, select Customize, click Edit and add the required account or user group;
  6. In the Security tab, under Configuration Permissions, select Customize, click Edit and add the required account or user group;
  7. In the Identity tab select The launching user and ensure the user used for the scheduled task is correct;


Related Topics

Get Data

Questions

  • What happens if the Task does not end?
    • Should Settings - Stop the task if it takes longer than 1 hour ?
  • If the task is already running then Stop the existing instance