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-15-2010, 12:40 AM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default Task pauses for 20 seconds extracting data

I'm extracting a single field of data (stock availability) from a webpage to a variable after performing a search on the product code from an excel sheet. I then paste the extracted field into the excel sheet and move to the next record. The task hangs on the extract data line for about 19 seconds with each loop. I believe it goes quick on the first extract then hangs on each subsequent extract.

Any thoughts as to why it's so slow to extract a single field and update the variable with the new value?

Thanks!
Scott
Reply With Quote
  #2 (permalink)  
Old 02-15-2010, 12:44 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Is it possible for you to upload your task so that we can look into it and suggest viable solution?

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
  #3 (permalink)  
Old 02-16-2010, 01:25 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default atmn file attached

Here's the atmn file attached. Below is some test data for the excel sheet lookup beginning in cell A12 and spanning 3 columns: A -C:
HMG EXL10 6193
HMG EXB10 6199
HMG EXB15 6206
HMG EXL16R 6214
HMG TUBE12 7483
HMG KBA16X 7485
HMG KBA65X 7487
HMG KBA100X 7488

Thank you very much!
Scott
Attached Files
File Type: atmn Copy of 3_HMGTask.atmn (13.1 KB, 3 views)
Reply With Quote
  #4 (permalink)  
Old 02-16-2010, 01:27 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default Line where it hangs

I forgot to mention it hangs in Line 39 (extract data) after the first extract. Line 40, which is currently disabled, acts the same.
Reply With Quote
  #5 (permalink)  
Old 02-17-2010, 09:29 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

The task is moving one cell right instead of one cell down in excel to get next product id. We have amended the task for your convenience.

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

Please let us know how it goes.
Attached Files
File Type: atmn Copy of 3_HMGTask.atmn (17.2 KB, 1 views)
Reply With Quote
  #6 (permalink)  
Old 02-17-2010, 03:21 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default

The issue is the data extract line from the website. After the initial data extract is assigned to the $availability$ variable and posted to excel, it sits on the data extract line for 20 seconds each and every time it comes up in the loop.

What do I need to do differently to speed up the data extract from the website?

Note:
The navigation around the excel file works fine. I noticed you changed the IF statements to Loop While statements. I wasn't able to get your Loop While $productid$ Not Equal to "" to work. I wish the Variable Manager would display the current value of the variables. I'll incorporate these changes after the data extract speed issue is resolved.

Thanks,
Scott
Reply With Quote
  #7 (permalink)  
Old 02-18-2010, 12:19 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

To speed up task execution, insert 'Extract Table' command instead of Extract data and using 'Loop for each row in Internet Explorer table command' fetch the desired column value. For some reason website is giving database error after clicking Search button so we are unable to amend the task.

The task that we uploaded works fine for us. Can you upload the task that you amended at your end? As we said in previous post before end loop you need to move one cell own instead of one cell right.

Hope that helps.
Reply With Quote
  #8 (permalink)  
Old 02-18-2010, 08:54 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default

Extract table is MUCH faster. I've gone from 20 seconds per record down to 6 seconds. A couple of issues:

1) First and foremost: I have the task working well chugging away at data until around 30 records AA crashes completely.

2) Secondly, if my search query results in a single record returned, the table number on the page is 7. If multiple records are returned, the table number is 8. I have some long-winded logic including a variable that switches back and forth between 7 and 8 depending on whether or not multiple records were returned. It works but it is not elegant by any means. Is there a better way to extract a table without referring to the number?

Attached is the latest version of the task.

Thank you very much!
Scott
Attached Files
File Type: atmn 3_HMGTask_TableExtract.atmn (16.1 KB, 4 views)
Reply With Quote
  #9 (permalink)  
Old 02-18-2010, 09:16 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default

I ran it a few more times and the error I get is:

Run time error '28"
Out of Stack Space

Any idea what this means?

-Scott
Reply With Quote
  #10 (permalink)  
Old 02-21-2010, 10:43 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

This is very strange as we are not able to reproduce the issue. However, let us investigate.

Can you try running the same task from main screen of Automation Anywhere and not from the Task Editor?

Hope that helps.
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 09:12 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