Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Number of rows in dataset
Topic Summary:
Created On: 03/29/2018 07:00 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 03/29/2018 07:00 AM
User is offline View Users Profile Print this message

Author Icon
ErikDroszcz
Student (5-19 posts)

Posts: 9
Joined: 02/22/2015

Hi,

I loop through files in a directory and store the result in a dataset.

For each file found in the loop, I display a message box with the file name.
In my test, I have two .txt files in the directory C:\Temp\LoopDataset:

File 1.txt
File 2.txt

In the loop, I get a message box with the filename for both files.

But when I check how many rows the dataset contains, it says only 1.
Shouldn't there be 2 rows (one for each file)?

Later on, I would like to loop through the dataset. But when I try that it only find one entry in the dataset.

Regards Erik

 Category Survey
AutoMate BPA Server 10 version: 10.3.0
Windows version: Windows Server 2012 R2



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)
 04/03/2018 12:55 PM
User is offline View Users Profile Print this message

Author Icon
Ricardo Castaneda
HelpSystems

Posts: 3424
Joined: 01/11/2008

Hello,

I would suggest that you use a File System "Get Information" action. You can create a dataset and loop through it. You can also display the totalrows at the end.

Let us know if that works for you.

 Category Survey
AutoMate BPA Server 10 version:
Windows version:



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------

Ricardo Castaneda | Principal Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 521 guests browsing this forum, which makes a total of 521 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2019 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog