Scheduling .bat program object

I have a simple .bat file that moves a file from one folder to another.

I cannot get it to run when scheduled without getting ‘The Program Object reported an error while running, but no error code was provided.’

I have set the lgon credentials (CMC/Objects/MyObject/Process/Logon) in the CMC. These credentials have read/write/execute authority on all files and folders involved

Any thoughts?

I am using this file to copy a report that is sent to a LAN destination. The report is refered to by a link on a web page so I have it scheduled to a different destination in case a user has the report opened (which wopuld cause the job to fail). I then want to run this .bat (using a file watch event to look for the report file) to move the file to the ‘real’ location pointed to by the link. Ther reason that I don’t want to just fail on the report job is that it an ‘expensive’ query and I don’t want to have to re-run it if it cannot write to the destination, even though the report actully refreshed.

In addition to just trying to get the bat job to run at all (not doing the filewatch event) I am wondering if there is a better way to do this.

Thanks,
DOTJake


DOTJake :us: (BOB member since 2004-05-07)

I found this on the Business Objects Knowledge base and it seem to solve the problem. I was just trying under InfoView, not Performance Management but it fixed the problem.

[list]
KBase Article ID:c2019209
Article refers to:BusinessObjects Enterprise XI
Symptom
When scheduling in Performance Management, the following error message appears:
“The Program Object reported an error while running, but no error code was provided.”
Resolution
This error message appears because the account under which the Program Job Server is running under has not been added to the local security policy.
Complete these steps to resolve this error message:

  1. Go to Administrative Tools and double-click ‘Local Security Policy’.
  2. Expand ‘Local Policies’ and click ‘User Rights Assignment’.
  3. Double-click ‘Act as part of the operating system’, add the account you want to use, and then click ‘OK’.
  4. Repeat step 3 for ‘Log on as a batch job’, ‘Log on a service’, and ‘Replace a process level token’.

[/list]

DOTJake


DOTJake :us: (BOB member since 2004-05-07)