Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

UiPath-ARDv1 Exam - Topic 8 Question 130 Discussion

A developer uses a For Each Row in Data Table activity to iterate through a sampleDataTable that stores current prices of the product and price at the discount. The developer wants to remove some rows (please see the condition in the If activity) and display, how many rows were left in the datatable. What will be the result of the processing?Please find the BuildDataTable wizard below:
D) For Each Row In Data Table activity will throw an error.
A) Message Box activity will throw an error.
B) Message Box activity will display the value: '1'.
C) Message Box activity will display the value: '3'.

UiPath-ARDv1 Exam - Topic 8 Question 130 Discussion

Actual exam question for UiPath's UiPath-ARDv1 exam
Question #: 130
Topic #: 8
[All UiPath-ARDv1 Questions]

A developer uses a For Each Row in Data Table activity to iterate through a sampleDataTable that stores current prices of the product and price at the discount. The developer wants to remove some rows (please see the condition in the If activity) and display, how many rows were left in the datatable. What will be the result of the processing?

Please find the BuildDataTable wizard below:

Show Suggested Answer Hide Answer
Suggested Answer: D

When you try to delete a row inside a For Each Row in Data Table activity, ''Collection was modified; enumeration operation might not execute'' error will be displayed, as it is not allowed to modify the structure of the datatable (e.g. change positions of datarows, remove them etc.) during iteration.

UiPath Forum

UiPath Documentation

Exam Topic:Describe how to work with complex data structures and data manipulation; for example, datatables and collections.


Contribute your Thoughts:

0/2000 characters
Thaddeus
4 days ago
I think if the condition in the If activity is met, it could leave us with just one row. So maybe the answer is "1"?
upvoted 0 times
...
Cecil
9 days ago
I'm not entirely sure, but I feel like the For Each Row activity shouldn't throw an error unless there's something wrong with the data table structure.
upvoted 0 times
...
Craig
14 days ago
I remember we practiced a similar question where we had to count remaining rows after filtering. I think the answer might be "3" if only one row is removed.
upvoted 0 times
...

Save Cancel