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-12-2009, 11:33 AM
rahul rahul is offline
Junior Member
 
Join Date: Dec 2008
Posts: 11
Default Handle task flow based on Error types

Hi,
I have 6 error handlers inside a loop in a task, loop iterates 6 times, if there is an error in error handler 2 or error handler 5 then I need to exit the current iteration and jump to the next iteration or else continue in the same iteration of the main loop. At the same time we need to have a log file having all error description that has taken place during the 6 iteration.

Can we achieve this simple thing with AA in a simple manner?
Note: We can;t keep a separate text file to log for each error handler to log.

Last edited by rahul; 02-12-2009 at 11:37 AM.
Reply With Quote
  #2 (permalink)  
Old 02-13-2009, 09:50 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Yes, it can be done with Automation Anywhere. If there is an error in error handler 2 or error handler 5 then you can assign a value to a user variable that reads value from a text file. After 2nd and 5th error handler block you can check the value of user variable using 'If Variable' command. If condition is true i.e. if error is present then insert 'Continue' option of Loop command to jump to the next iteration.

We have attached a sample task for your reference. This task would jump to the next iteration if there is an error in error handler 2 or error handler 5. You can see all the errors logged in ErrorFlow.txt at the end of task.

To run this task,

. Please copy attached task under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Before running this task, please create a variable, GlobalVar that reads value from a text file.
To create a variable that read from text file, please follow below mentioned steps:
1. Go to Tools->Variable Manager in Automation Anywhere.
2. Click on 'Add New Variable'.
3. In 'Name' field, enter variable name i.e. GlobalVar.
4. Select 'Read from text file' radio button or option.
5. In 'Value' field, specify the path of text file i.e c:\Abc.txt.
6. Press 'Save' button.
7. Press 'Ok' button.

Note: Variables are case-sensitive.

Hope that helps.
Attached Files
File Type: zip ErrorFlow.zip (669 Bytes, 3 views)
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:23 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