Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2011, 05:41 AM
jcurtiss7492 jcurtiss7492 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 6
Exclamation Problem with Task involving script

I have a task that at one point calls for a batch file to be run. This batch file simply executes a php script to clean up a text file.

It is acting strangely. It seems every morning I have to edit the step by browsing to the scripts location and then save it again for it to work properly.

The next morning when the task runs it doesn't seem to execute the script until I manually edit the step as explained above.

Anyone else experience this or know a work around?

Thanks in advanced...

Jeff

After some more testing, it breaks when I close the program. Here is a scenario:

1. Start Automation Anywhere (AA), run task, it fails to run the script.
2. Manually edit the step the script is executed by browsing to the script and save the task.
3. It will run successfully, I tested it 10 times, all ran good.
4. I close AA.
5. I open AA back up again and run the task, the script step doesn't work.
6. Go back to step 2 and manually edit the script step.

The task is attached, the step in question is step 7. runPhp2.bat is the batch file that is simply: php CleanHarrgdFile2.php >> SCOS_Servtronics.txt

Simply, executes a php script that cleans up a text file and appends it to a template txt file.

Last edited by jcurtiss7492; 12-06-2011 at 06:57 AM. Reason: add more info
Reply With Quote
  #2 (permalink)  
Old 11-30-2011, 06:44 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Quote:
Originally Posted by jcurtiss7492 View Post
I have a task that at one point calls for a batch file to be run. This batch file simply executes a php script to clean up a text file.

It is acting strangely. It seems every morning I have to edit the step by browsing to the scripts location and then save it again for it to work properly.

The next morning when the task runs it doesn't seem to execute the script until I manually edit the step as explained above.

Anyone else experience this or know a work around?

Thanks in advanced...

Jeff

After some more testing, it breaks when I close the program. Here is a scenario:

1. Start Automation Anywhere (AA), run task, it fails to run the script.
2. Manually edit the step the script is executed by browsing to the script and save the task.
3. It will run successfully, I tested it 10 times, all ran good.
4. I close AA.
5. I open AA back up again and run the task, the script step doesn't work.
6. Go back to step 2 and manually edit the script step.

The task is attached, the step in question is step 7. runPhp2.bat is the batch file that is simply: php CleanHarrgdFile2.php >> SCOS_Servtronics.txt

Simply, executes a php script that cleans up a text file and appends it to a template txt file.
Does the log file say anything about what caused the error? Does the task fail or simply complete without doing what its supposed to do?

I`ve had similar issues where the path the file I was trying to call was on a networked location and every so often it would just fail to access the file. It turned out that AA didn`t love the fact I was pointing to a local drive which was mapped to the network location. I changed the path to the full network path and have no problems since.
Reply With Quote
  #3 (permalink)  
Old 12-01-2011, 05:36 AM
jcurtiss7492 jcurtiss7492 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 6
Default

There is no error message, the task says it completes successfully, but when I open the finished text file, it is empty.

It's almost as though the step doesn't find the script until i manually go in and redo the step.
Reply With Quote
  #4 (permalink)  
Old 12-03-2011, 03:38 AM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi,

Can you try and insert 'Keystrokes' instead of the 'Open File' command to open the batch file through the 'Run' window. 'Start-Run-<path of the batch file>'

Kindly advise if it works.
Reply With Quote
  #5 (permalink)  
Old 12-05-2011, 11:29 AM
jcurtiss7492 jcurtiss7492 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 6
Default

That would work great but how do I get that going? How would I bring up the "Run" dialog box?
Reply With Quote
  #6 (permalink)  
Old 12-05-2011, 11:54 AM
jcurtiss7492 jcurtiss7492 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 6
Default

Nevermind, I figured it out, thanks for the tip!
Reply With Quote
  #7 (permalink)  
Old 12-07-2011, 03:33 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hi,

Thanks for the note. We are happy that the suggestion worked for you.

Regards.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 05:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved