![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| I have a task that, If run by itself, always succeeds, but if i run it using "Run Task" or "IF Task unsuccessful..." methods, it fails every time. This had always worked before, but since upgrading to AA 4.0 I am having trouble. I have attached the *.atmn file. It seems to be failing at either line 29 or 30... Last edited by marcgallant : 11-14-2007 at 06:32 AM. |
| |||
| Hello, I saw your task 'add Asset.atmn'. You mentioned that the task fails if called using Run Task. Are you referring to the Run Task call to 'Menu - Assets - Manage Assets.atmn' on line number 6 or you are referring to the Run Task call that some external task is making to run 'add Asset.atmn'? Also, can you please tell us more about what happens when you say it fails. Does the task give any error? You can also find it from the Edit->View log that displays all the errors for a particular task. A screenshot of the error would also help. |
| |||
| Okay - I just figured it out. To me its a bug, but thats a seperate issue. if you look at line 32, I am using a variable to determine how many times my "loop" function would loop. In the line above it, I pass a value to the clipboard, and was supposed to use that value instead. Once I changed the Loop variable to the $Clipboard$, it worked fine. So to me it looks like the "Loop" function can't use a Variable that picks a random number. You would have to assign it to the clipboard first. |