I need to add a new column to an existing datatable and populate it with unique values. Could you provide guidance on how to achieve this without using iteration?
Why am I doing this?
Occasionally, my datatable contains duplicate rows, making it difficult to distinguish between them. Adding a column with unique values will help differentiate between these duplicate rows.
Method Steps:
Step 1 Build a datatable (called DT1) and remove all columns and rows.
Step 2: Add a new column with ‘Auto Increment’ enabled and datatype ‘Int32’.
Step 3: Insert a Merge DataTable activity. With the following settings. Destination: DT1 MissingSchemaAction: Add Source: Datatable_Original