Get files one by one from folder using Get Queue Items for document understanding

I have created a UiPath flow using DU of AI center to extract data from pdfs, for testing purpose, I was using local folder to read list of files. My question is, should I use get queue item activity for this purpose. And yes, how can I use it, coz, I could not find any reference for this purpose.

  • Thank you

@akashjariwala

It’s better Use Asset to store the Folder path
And in Development Use
Get Asset–>Str_FolderPath
Assign activity:

ArrayOfFiles=Directory.GetFiles(Str_FolderPath)
Use For each loop

First, get the list of all files from the folder and then upload them into the queue (Bulk Add queue Item Activity). After that, you can use ‘get transaction activity’ to proceed with further processing. @akashjariwala

1 Like

Hi @akashjariwala

Are you using the document understanding framework, or building it in sequence or flowchart.

1 Like

@mkankatala , yes I am using document understanding framework

@Muthuraj_Chidhambaram1 , cannot we use naive folder iteration, and apply entire document understanding framework on each file under for each loop. ?

@Muthuraj_Chidhambaram1
cannot we use naive folder iteration, and apply entire document understanding framework on each file under for each loop. ?

Okay @akashjariwala

→ Then use For each file in folder activity to iterate the each file in the folder. output of For each file in folder is CurrentFile.
→ Inside for each insert the Add queue item activity to add each file to the queue item.
→ In add queue item activity give the queue name in the Queue name field and Click on Item information, Give TargetFile as key and value as CurrentFile.toString as below image,

Check the below image for better understanding,

This is how we have to add the file paths as queue items to the queues in Document understanding framework. For each Transaction item it will take the each file path and do the Extraction process.

If you want to add the queue items means dispatcher in Documet understanding framework, you can use this sequence in Intialization state itself.

Hope it helps!!

1 Like

If I am not wrong this additional process is involved due to manual validation on action center. Because due to manual validation, process will stop until document will not validate manually.

I didn’t get you what you are saying… @akashjariwala