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-25-2010, 08:25 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default Tasks don't work when run from other tasks

I have four small tasks that should be run in series to complete the entire process of 1) downloading a .csv file from a website, 2) copying and pasting the .csv columns into a new excel file, 3) performing online searches on the excel data, extracting tables, and recording it to a new excel file, and 4) updating my POS system with the resulting data.

If I run each of these manually, they each work fine. If I use a Super Task or add a Run Task line at the end of each task to trigger the next task, the subsequent task acts very strange.
1) If I run the first task manually and have it run the 2nd task when complete, the 2nd task copy (ie: get) excel functions fail every time.
2) If I run the 2nd task manually and have it run the 3rd task when complete, the 3rd task stops recognizing the login & password fields on the website.

I've even tried combining all tasks into one large task but they still fail in the same way.

Is there any reason why these tasks would stop functioning correctly just because they were run by another task?

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

Hello,

In a super task, include 'If Task Successful' command to run the second task only if first is executed successfully. You can insert Nested 'If Task Successful' command to run multiple tasks in series. Text format of command would appear something like this,

If Task Successful ("My Documents\...\My Tasks\Task1.atmn") Then
If Task Successful ("My Documents\...\My Tasks\Task2.atmn") Then
If Task Successful ("My Documents\...\My Tasks\Task3.atmn") Then
Run Task "My Documents\...\My Tasks\Task4.atmn"
End If
End If
End If


If it does not help then please upload all the tasks so we can look into it and suggest viable solution.

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

I tried your Super Task logic and had the same results. I've attached the 2nd task here. The issues here are the lines 11, 16, and 21, all with the same code:

Keystrokes: [CTRL DOWN]c[CTRL UP] in "Microsoft Excel - amp"

This does not copy the selected cells to the clipboard ONLY if the task was triggered to run by another task, whether it be the previous task or a super task. If I trigger it manually, it works every time.

What would cause this?
Scott
Attached Files
File Type: atmn 2_excel.atmn (8.7 KB, 2 views)
Reply With Quote
  #4 (permalink)  
Old 03-01-2010, 07:56 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello Scott,

We suggest clearing the clipboard before the keystrokes command, Ctrl+c.

In addition, we suggest inserting Delay of 200-300 ms after every Keystrokes command.

We would also like to suggest you to break down your keystrokes given in one line at a stretch into several lines and try to insert 'Delay' command in between the lines for the error-less execution of the task. Breaking the keystrokes into several lines would give sufficient time to execute each action smoothly.

We have amended the task for your convenience; please run at your end (from super task) and let us know how it goes.

Hope that helps.
Attached Files
File Type: atmn 2_excel.atmn (9.0 KB, 1 views)
Reply With Quote
  #5 (permalink)  
Old 03-03-2010, 02:13 PM
moorebrothersmusic moorebrothersmusic is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Default

I used the file you sent. (I did remove the Clear Clipboard command between the CTRL-C and CTRL-V.)

It still does not want to perform the CTRL-C command. I put a delay up to 1000ms before the command without any change.

I don't understand why CTRL-C does not work if the task is triggered to run by another task.

Other thoughts?

-Scott
Reply With Quote
  #6 (permalink)  
Old 03-04-2010, 03:39 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

Can you please email us your phone number at http://www.tethyssolutions.com/support_form.htm so that one of our Technical Support staffs can call you to help you resolve the problem.

Alternatively, you can reach us at 1-888-484-3535 x 3
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 03:13 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