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 01-07-2010, 10:01 AM
dwatson dwatson is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default CSV File Use

Hi all,

We currently have issues where we need to run scripts, but do not have excel available on the machine that needs to be ran. Deployment is not an option as we have to remotely connect to clients computers. How can I convert my scripts to run on CSV files and not have to rely on excel?

As it stands now, we loop through each row in an excel database.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 01-07-2010, 07:58 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

You can loop through each row in a .CSV/Text File.

1 - Save your Excel Files as a .CSV
2 - Use 'Read from CSV/Text' command
3 - Loop through Each row in a .CSV/Text File
4 - Switch all your Excel Column() Variables to FileData Column() variables.


Depending on your setup, you can use AA to automatically save your Excel Files to .CSV as part of the task.
Reply With Quote
  #3 (permalink)  
Old 01-07-2010, 10:26 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

In that case, you need to edit your task and replace Excel commands with 'Read from CSV/Text file' and 'Loop for Each row in CSV/Text file' command.

If you can upload your task then we can amend it for your convenience.

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

Hi,

I do not seem to have an option for looping through CSV/TEST. Only an SQL Dataset. It seems to work - sort of nonetheless. So the CSV file seperates by commas (as opposed to columns). I still can't get the information to input to the right place.

Enclosed is a copy of my original task. If you could change it to reflect the CSV files I would be so grateful. I can't seem to get this correct.

Thanks
Attached Files
File Type: atmn MG_RXM_ORDERPERIOD.atmn (7.2 KB, 6 views)
Reply With Quote
  #5 (permalink)  
Old 01-09-2010, 02:14 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

If Excel is not installed then Excel commands will not work as they need Excel object for execution.
If you are using version 5.0.2 then 'Read from CSV/Text file' option can be found under 'Database' command and for looping the recordset use 'Loop for Each row in SQL query dataset' . We have amended the task for your convenience. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.

We would recommend you to upgrade to the latest version, 5.5. It is a free upgrade for version 5.0 customers. You can download trial version of Automation Anywhere 5.5.2 from our website:
http://www.automationanywhere.com/download/freeTral.htm

Hope that helps.
Attached Files
File Type: atmn MG_RXM_ORDERPERIOD.atmn (15.3 KB, 3 views)
Reply With Quote
  #6 (permalink)  
Old 01-09-2010, 03:43 PM
dwatson dwatson is offline
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default Thanks

Thank you for amending the file. I do have a read from CSV/Text file, however I was under the assumption the loop command for it would match. To clarify, I do need to use "Loop for Each row in SQL query dataset" function?

In regard to Excel, I think the about to read from the Excel Reader would be a great addition if possible.

Thanks again!
Reply With Quote
  #7 (permalink)  
Old 01-10-2010, 07:42 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

In version 5.0.2 'Read from CSV/Text file' command is under 'Database' command, hence to loop through the data you need to use, "Loop for Each row in SQL query dataset" command.

For your case, 'Read from CSV/Text file' would be the better option as this command does not require to open the CSV file to read the data from the file compared to Excel commands that actually opens the file and read the data.

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