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-09-2009, 09:23 PM
Tonygets Tonygets is offline
Junior Member
 
Join Date: Nov 2009
Posts: 19
Default Error when downloading a file from the web using a loop in excel

Hi,

I am using AA 5.5 on XP with Office 2003.

I am trying to download a number of files (images) from the web. The URL's are stored in an excel document.

The loop is working fine until a file is not available for download. I am not able to figure out how to continue past the error file and ignore/continue onto the next row.

Please can you let me know how to move past the missing file via a post and/or create a sample file for review?

Thanks and regards,

Anthony
Reply With Quote
  #2 (permalink)  
Old 11-10-2009, 07:43 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

You can use Error Handling command (available in Enterprise version and above) to handle errors when a task runs. You can continue the task after the block where the error occurs, or stop the task.

In case of error system variable, $Error Line Number$ will be populated with Error Line No. You can use 'If Variable' command to check if error has occurred at that particular command or line then move to the next row in excel and continue the task.

We have attached a sample task for your reference. To run this task,

. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Copy .xls under C:\.

Hope that helps.
Attached Files
File Type: zip SampleforAnthony.zip (11.7 KB, 7 views)
Reply With Quote
  #3 (permalink)  
Old 11-10-2009, 08:38 PM
Tonygets Tonygets is offline
Junior Member
 
Join Date: Nov 2009
Posts: 19
Default

Thank you very much. That worked perfectly.
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 04:51 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