I’ve been learning as I go but i’m struggling on this one and wanted to see if there is a simple process that isn’t as crazy as what I’ve thought up before I try to do what I cam up with on my own.
My use case is read an excel file and each row gets entered into a web site as a record set. Think add user with LOTS of fields. And a few thousand users.
I want to be able to update the file as the process is running. Ideally we would update a ‘Status’ column in the file when a record is new, processing, completed, or failed.
So, How do I…
Open the excel file
Read the rows until we get the first ‘Status’ = ‘New’ row
Update the row’s status to ‘Processing’
Save file
Do the web site actions
If completed (based on checks) set status to ‘Completed’
If interrupted or error set status to ‘Failed’
Save File
Do next row
Please keep in mind there are thousands of rows with nearly one hundred columns.
And I really like being able to reference column names. Example: row(“email”).ToString
From what I’ve been able to read so far I am thinking I may need to use SQL, but want to see if there is a reasonable excel solution.
What if you would use Queues? Read the excel → add certain data to a queue → do the web actions → process the Queue(set status for each Transaction).
I have an example of adding items to Queue from excel file and another one to process the items if you are interested in changing the perspective. AddToNRAQueue.zip (70.2 KB) ConsumeNRAQueue.zip (43.2 KB)
You will find in the guide everything explained. If something’s unclear, just ask.
I suggest to take the free courses on the Academy: UiPath Academy. Once you complete(and pass) the Foundation Training, the Orchestrator course will be unlocked.
Good luck, Carl!
P.s: your initial approach wasn’t wrong for a few dozens of rows(or maybe hundreds). But for a few thousand, in my opinion, it’s easier with queues.