Intelligent Automation & Macro Software  

Go Back   Tethys Solutions 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 01-12-2010, 03:01 PM
TylerMitton TylerMitton is offline
Member
 
Join Date: Nov 2009
Posts: 93
Exclamation Error Handling not Stopping Task

I've attached a task that shows this issue.

In my task I have a loop and in that loop there is something that causes an error (in this case I'm using a bad DB connection string cause an error). Around the loop I am using error handling that is set to stop the task when an error is encountered.

If the db connection is the only thing inside the loop then the error handling stops the task the first time it goes through the loop... as expected. The task is then done.

But if I put anything else inside the loop, even a comment, it will cause the error handling to not stop the task when the error is encountered... it will keep looping through until the loop condition is satisfied (in my case I set it to loop 10,000 times).

Why doesn't it stop the task as it is supposed to?

I want to put error handling around my entire task but this behavior means that it doesn't work as it should...
Attached Files
File Type: atmn ErrorHandlingIssue.atmn (975 Bytes, 13 views)
Reply With Quote
  #2 (permalink)  
Old 01-13-2010, 12:24 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

We could reproduce the issue at our end. To get around this what you can do is, move the Error handling block inside the loop. We have attached the amended task for reference.

Hope that helps.
Attached Files
File Type: atmn ErrorHandlingIssue.atmn (774 Bytes, 1 views)
Reply With Quote
  #3 (permalink)  
Old 01-13-2010, 08:03 AM
TylerMitton TylerMitton is offline
Member
 
Join Date: Nov 2009
Posts: 93
Default

Hi, I have several loops and sub loops (and sub sub loops) in my tasks, so I can't put error handling inside each of my loops... I would end up with a mess of error handling blocks that would be nightmare to work with. I want to contain my entire task inside a single error handling block.

Do you acknowledge that this is a bug? Will you be trying to fix it?

When it continues to loop through after an error has occurred, does it actually perform any of the operations in the task or is it just looping through and not doing anything?

It seems to me that it isn't actually doing anything other than looping without performing any actions. If this is the case, it is not a big deal if you don't have too many loops... but in my case I have 10,000 loops so it wont stop until it goes through all 10,000 loops... which may take a minute or so. That's too long to wait.

Thanks for looking in to this, I look forward to a fix being implemented!

Tyler
Reply With Quote
  #4 (permalink)  
Old 01-13-2010, 01:00 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

You can use multiple Error Handling Commands in a single task inside each loop.

We have forwarded this issue to the product development team for fixing it in the future version of product.
Reply With Quote
  #5 (permalink)  
Old 01-14-2010, 09:56 AM
TylerMitton TylerMitton is offline
Member
 
Join Date: Nov 2009
Posts: 93
Default

One thing you didn't answer... and this is important for anyone using error handling:

When it continues to loop through after an error has occurred, does it actually perform any of the operations in the task or is it just looping through and not doing anything?
Reply With Quote
  #6 (permalink)  
Old 01-14-2010, 09:32 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

If an error occurs in the task and you have set the task to continue on error then task would continue after the Error Handling block. Task would stop executing commands after Error Handling block (i.e. End Error Handling command) in case you have set the task to stop on error.

Hope that helps.
Reply With Quote
  #7 (permalink)  
Old 01-18-2010, 01:57 PM
TylerMitton TylerMitton is offline
Member
 
Join Date: Nov 2009
Posts: 93
Default

But even if you have told it to stop on error, it keeps looping through loops that are withing the error handling (as we discovered above)... it does not stop until it has gone through the loops. so...

Can you confirm that while it is looping through these loops it is NOT performing any other actions?
Reply With Quote
  #8 (permalink)  
Old 01-18-2010, 10:22 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

Yes, if error occurs inside the loop then while looping, the task will not execute the commands after the line that errors out.

Hope that helps.
Reply With Quote
  #9 (permalink)  
Old 04-20-2010, 03:07 PM
TylerMitton TylerMitton is offline
Member
 
Join Date: Nov 2009
Posts: 93
Default

With respect to this issue... back in January you said: "We have forwarded this issue to the product development team for fixing it in the future version of product."

Now that "the future version of product" has been released, can you confirm that this was included in version 6.0?

You really need to create a KNOWN RESTRICTIONS sticky thread so we can all keep track of these bugs in the software so everyone is aware of what is going on and what isn't working properly.
Reply With Quote
  #10 (permalink)  
Old 04-20-2010, 09:40 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

Yes, it is fixed in Automation Anywhere 6.0.
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 02:10 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved