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 02-16-2009, 02:46 PM
tburk tburk is offline
Junior Member
 
Join Date: Oct 2008
Posts: 26
Default Error Handling; Continue did not continue

While executing the command to run a program or file, within an Error Handling loop with the 'Continue' option selected, we are expecting the task to continue under any error. This does not happen, is this by design, or, should the task complete to the last command line? The error that occurs is as follows:

The Program/File 'C:\Documents and Settings\Administrator\My Documents\Automation Anywhere\Automation Anywhere\My Exes\_BCBB3.exe' that you are trying to open, could not be found.

Thanks,
Tom
Reply With Quote
  #2 (permalink)  
Old 02-16-2009, 08:41 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Tom,

The expected behavior is, when a task runs and encounters an error in Begin Error Handling and End Error Handling block then the task would continue after this Error Handling block i.e after 'End Error Handling' command.

We have attached a sample task for your reference. To run this task at your end, please copy attached .atmn file under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder and run it.

This task is opening a file that does not exist. When the error occurs at line #3, the task would continue from line #6.

In addition, please find demo on Error Handling at,
http://www.tethyssolutions.com/Error_handling.html

Hope that helps.
Attached Files
File Type: atmn ErrorHandlingSample.atmn (447 Bytes, 5 views)
Reply With Quote
  #3 (permalink)  
Old 02-17-2009, 06:26 AM
tburk tburk is offline
Junior Member
 
Join Date: Oct 2008
Posts: 26
Default

That sample works as expected. We are getting unexpected results from our task error handler, that file has just now been sent to Rushabh for analysis. Please obtain that atmn file from Rushabh for review and comment letting us know why it is not working.

Thank you.
Reply With Quote
  #4 (permalink)  
Old 02-17-2009, 08:09 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

We looked into your task. In that, the 'End Error Handling' is the last line of the task. If an error occurs the task should continue after 'End Error Handling' however, there are no command(s) after 'End Error Handling' to continue with so your task would end in that case.

What you can do is, move the position of error handling block. For e.g. if an error can occur in a loop then put 'Begin Error Handling' and 'End Error Handling' block inside the Start loop- End Loop block so that task can continue with next iteration in case of an error. The text format of task would appear as follows,

Start Loop “Each row in a SQL query dataset"
Begin Error Handling; Action: Continue; Options: Log to File
Comment: LOOP FOR ALL TASKS IN BATCH 'n'---START EACH TASK IN BATCH
.
.
.
End Error Handling
End Loop

In addition, you can use multiple ‘Error Handling’ command in a task.

Hope that helps.
Reply With Quote
  #5 (permalink)  
Old 02-18-2009, 06:10 PM
tburk tburk is offline
Junior Member
 
Join Date: Oct 2008
Posts: 26
Default

That did help, thank you.
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 10:27 AM.


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