I see that when the machine that is running the script is on one machine, and the script is located in a shared folder on another machine and the shared folder machine is absent from the network (re-boot, locked account, etc.)
Thanks! Steve Christensen From: [email protected] [mailto:[email protected]] Sent: Thursday, May 08, 2014 14:31 To: [email protected] Subject: RE:[talkbws] Method '~' of object '~' failed I had a similar problem with another computer we have one script running on that would sometimes just not run. I put it on the task scheduler to open it at a specific time, run, then shut down and that fixed our problem. That was on a Win 7 machine. The server below was running Win Server 2008 R2. Dave Shelby (916) 734-3004 [email protected]<mailto:[email protected]> From: David Shelby/PATH/HS/UCD To: [email protected]<mailto:[email protected]> Cc: [email protected]<mailto:[email protected]> Date: 05/08/2014 12:25 PM Subject: RE:[talkbws] Method '~' of object '~' failed ________________________________ If the script is trying to open a program that cannot run in a locked mode, that might be causing the error. When you are manually running it is not locked. On our server, there is someone logged in, but we disconnect, which locks it. Programs that are opened by the scripts can run locked, so we have no problem. The other thing we have done is reboot the server if the problem is intermittent and it has not been restarted for a while. Just a thought, Dave Shelby (916) 734-3004 [email protected]<mailto:[email protected]> From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[email protected]> Date: 05/08/2014 12:14 PM Subject: RE:[talkbws] Method '~' of object '~' failed ________________________________ Also, here's something that may provide some clue to the issue, read down a little bit and see the part about the code snippet: http://stackoverflow.com/questions/1302026/what-does-method-of-object-failed-mean From: [email protected]<mailto:[email protected]> [mailto:[email protected]] Sent: Thursday, May 08, 2014 3:10 PM To: [email protected]<mailto:[email protected]> Subject: RE:[talkbws] Method '~' of object '~' failed I would check the user account that is running the scheduled job to make sure it's an administrator, or at the very least, a power user. From: [email protected]<mailto:[email protected]> [mailto:[email protected]]<mailto:[mailto:[email protected]]> Sent: Thursday, May 08, 2014 2:41 PM To: [email protected]<mailto:[email protected]> Subject: [talkbws] Method '~' of object '~' failed I'm attempting to run various BWS scripts under Windows scheduler, and they are getting this error (Method '~' of object '~' failed) as soon as they start. I'm able to run the scripts manually just fine. This is on Server 2008 R2. The schedule settings I have: Program: C:\BSS70\Bss80.exe Add arguments: C:\BWS_Scripts\script1.bws /r Main /t Start in: C:\BWS_Scripts Run with highest privileges I don't see any similarities between the scripts and most of them are having this issue. None of the scripts have any use of ~ in the code. Any thoughts? Thanks, Tyler Nielson Applications Analyst Information Systems - Saratoga Hospital (518) 886-5188 --- To post a message to this list, send mail to: [email protected]<mailto:[email protected]> You are currently subscribed as: [email protected]<mailto:[email protected]> Unsubscribe in the customer center on our website: http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents is prohibited. If you have received this communication in error, please notify Saratoga Hospital immediately by e-mail at [email protected]<mailto:[email protected]> and destroy all copies of this communication and any attachments. --- To post a message to this list, send mail to: [email protected]<mailto:[email protected]> You are currently subscribed as: [email protected]<mailto:[email protected]> Unsubscribe in the customer center on our website: http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx --- To post a message to this list, send mail to: [email protected]<mailto:[email protected]> You are currently subscribed as: [email protected]<mailto:[email protected]> Unsubscribe in the customer center on our website: http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx --- To post a message to this list, send mail to: [email protected]<mailto:[email protected]> You are currently subscribed as: [email protected]<mailto:[email protected]> Unsubscribe in the customer center on our website: http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx This message and accompanying documents are covered by the Electronic Communications Privacy Act and the Health Insurance Portability and Accountability Act. This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is confidential and/or privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message. Thank you. --- To post a message to this list, send mail to: [email protected] You are currently subscribed as: [email protected] Unsubscribe in the customer center on our website: http://www.bostonsoftwaresystems.com/Customers/ListServe.aspx
