Intelligent Automation & Macro Software  

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

Automation Anywhere Server & Enterprise Post messages and questions related to Automation Anywhere Server or Automation Anywhere Enterprise here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-13-2010, 08:53 AM
nighthawkn117 nighthawkn117 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 17
Question Table Extract Multiple Sites with Error Checking

Hello,

I'm looking for the best way to check about 40 websites for a present username and password boxes. They are both in one table and very similar across all the sites. These options go away if the back end application is not running and I want to alert when that happens. So at first I had different tasks for each site.

So Task 1 we'll call it WEBSITE1 opens the first site. Checks for the table. If it exists, then it goes on to the second website task we'll call it WEBSITE2. If the table does not exist, then it will take a snapshot, log to file, and call upon a second Task (WEBSITE1_Check2) which will wait 60 seconds, open the site again and verify its indeed down before running the third task (WEBSITE1_SendEmail) which is sending out customized email that contains the link to the site and the screen shot attached. Once all the sites are done, the server waits a minute and starts the process again.

That worked fine for a while, but now that we're reaching 40 sites, and because every task spawns a dedicated process, when we get to about 35 to 38 sites the task just hangs and does not continue probably due to the amount of tasks running.

There has to be a cleaner way to achieve the above without spawning a new process and causing it to stop working. If anybody can please give me some instructions and ideas on how to best accomplish this.

Sample of the task looks like:
1 Begin Error Handling; Action: Continue; Options: Take Snapshot, Run Task, Log to File
2 Extract table from 'http://WEBSITE1/Something/' website's '5' table
3 End Error Handling
4 Maximize Window: "Currently Active Window"
5 Run Task "C:\Data\WEBSITE2.atmn" @Repeat : Do Not Repeat @Speed : Normal Speed


Thank You
Reply With Quote
  #2 (permalink)  
Old 08-17-2010, 08:38 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

This is the expected behavior, web recorder tasks opens a new browser instance. We can close the browser instance at the end of every task to reduce the process overload.

Is it possible for you to send ur task so that we can look into it and suggest solution(s)? You can locate your task by selecting your task from Task List, right clicking that particular task and selecting 'Locate on disk' from context menu. Otherwise, you can also send text format of task. For that, open your task in a Task Editor, go to Tools->Save as text file and send this text file.

It would help us investigate further.
Reply With Quote
  #3 (permalink)  
Old 08-17-2010, 10:51 AM
nighthawkn117 nighthawkn117 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Hello,

I'm already closing the browser every 5 or so. The issue is not the browser, its the automation tasks where it spawns a new process for every task.

I did provide you the text version of a sample job in the original posting.

Thank You
Reply With Quote
  #4 (permalink)  
Old 08-17-2010, 04:18 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

We suggest using 'Open Browser' command to open single instance of browser and then perform actions like extract table or extract data and then at the end of task close the browser using 'Close Browser' command. If we dont open the browser using 'Open Browser' command every web recorder command will spawn a new browser instance.

Hope this helps.
Reply With Quote
  #5 (permalink)  
Old 08-31-2010, 10:17 PM
nighthawkn117 nighthawkn117 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 17
Angry

hello,

I'm trying to have everything in one task. I'm following what you're suggesting however I cannot get multiple error handling to work within the same task.

Below is a simple example of what I'm trying to do. Open a site. Check Table. If its there, then move on. Otherwise take a snapshot with a unique file name and record to file txt log file. Move on to next site. Do the same thing etc.. however If there is an issue with one site, it only takes on screenshot. It completely ignores the other error handling. How do I get multiple error handling to work on the same task?

Any help is appreciated:




1 Begin Error Handling; Action: Continue; Options: Take Snapshot, Log to File
2 Open "https://site1/whatever"
3 Maximize Window: "Currently Active Window"
4 Extract table from 'https://site1/whatever' website's '5' table
5 Close Browser
6 End Error Handling
7 Begin Error Handling; Action: Continue; Options: Take Snapshot
8 Comment: Please enter the commands to handle errors.
9 Open "https://site2/whatever"
10 Maximize Window: "Currently Active Window"
11 Extract table from 'https://site2/whatever' website's '8' table
12 Comment: Please enter the commands to handle errors.
13 Close Browser
14 End Error Handling
15 Delay: (10000 ms)
Reply With Quote
  #6 (permalink)  
Old 09-01-2010, 09:03 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Is it possible for you to provide URL's mentioned in text format so we can create sample task at our end and upload? Otherwise, please upload your task so we can have a look and amend it as per the requirement.

You can locate your task by selecting your task from Task List, right clicking that particular task and selecting 'Locate on disk' from context menu.

It would help us investigate further.
Reply With Quote
  #7 (permalink)  
Old 09-09-2010, 02:55 PM
nighthawkn117 nighthawkn117 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

I do not want to provide the sites that I need checked as they are company websites. If you're looking for an example, then any site that will let you do a simple table check will do. Nothing special about the sites.

If we're unable to do this, we're looking at using another solution.

Thank You
Reply With Quote
  #8 (permalink)  
Old 09-11-2010, 08:08 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

We did test with different website and it works well. Attached is the sample task we tested with.

Try using 'Navigate Url' command inplace of 'Open Browser' command. Please let us know how it goes.

Can you please provide your number and best time to contact by submitting a support case so that we can actually see the issue and resolve it quickly.

Automation Anywhere - Open A Support Case

Alternatively, you can reach us at 1-888-484-3535 x 3.
Attached Files
File Type: atmn testerrhandler.atmn (10.9 KB, 6 views)
Reply With Quote
  #9 (permalink)  
Old 09-15-2010, 01:25 PM
nighthawkn117 nighthawkn117 is offline
Junior Member
 
Join Date: Aug 2008
Posts: 17
Default

Thank you. I cannot seem to open this file on the server. Can you please confirm if you can?

Thank You
Reply With Quote
  #10 (permalink)  
Old 09-20-2010, 09:37 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Please try attached task.
Attached Files
File Type: atmn testerrorhandler.atmn (6.7 KB, 3 views)
Reply With Quote
Reply

« snmp | idle time »

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:48 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