UiPath Automation Developer Professional v1 — Question 53
A developer needs to use the REFramework to automate a business process that involves processing transactions within an Excel table. Each transaction in the table should follow the same steps for processing and queues cannot be used as there is no Orchestrator in the environment.
Which variable type is best suited for TransactionItem in this scenario?
Answer options
- A. System.Data DataTable
- B. UiPath.Core.QueueItem
- C. System.Data.DataRow
- D. System.Data.DataRow[]
Correct answer: C
Explanation
The correct answer is C, as System.Data.DataRow is specifically designed to represent a single row in a DataTable, which is ideal for processing individual transactions from an Excel table. Option A, System.Data DataTable, refers to the entire table, while option B, UiPath.Core.QueueItem, is not applicable since queues are not being used in this scenario. Option D, System.Data.DataRow[], is an array of DataRow objects, which is unnecessarily complex given that each transaction can be handled one at a time.