Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam UiADAv1 All Questions

View all questions & answers for the UiADAv1 exam

Exam UiADAv1 topic 1 question 4 discussion

Actual exam question from UiPath 's UiADAv1
Question #: 4
Topic #: 1
[All UiADAv1 Questions]

A developer utilized the Add Data Row activity to insert a row into a data table called "dt_Reports". However, during runtime, UiPath Studio encounters an exception, "Add Data Row: Object reference not set to an instance of an object." because the data table has not been initialized.
To rectify this issue, what should the developer include in an Assign before the Add Data Row activity?

  • A. Assign New System.Data.DataTable = dt_Reports.
  • B. Assign dt_Reports = New System.Data.DataRow.
  • C. Assign dt_Reports = New System.Data.DataTable.
  • D. Assign dt_Reports = New List(Of DataRow).
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
prit24
4 months, 2 weeks ago
To rectify the issue of the data table not being initialized, the developer should initialize the data table before using the Add Data Row activity. The correct assignment would be: Assign dt_Reports = New System.Data.DataTable This initializes the data table, ensuring it is ready to have rows added to it. Therefore, C (Assign dt_Reports = New System.Data.DataTable) is the correct answer.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...