Work with multiple Excel workbook.

Chakku

New Member
Hi, I have 5 Excels in a path (input folder) and each have data in it and each excel need to worked one by one and add the data to WorkQueue and move that particular file to output folder and pick the other workbook and work on it.
How to make sure that particular workbook has completed it work?
@Pete_L @sahil_raina_91
 
Hi Chakku,

Its simple as its sequential way to go ahead

Inputs for ex. File1,File2,File3,File3,File4,File5

Bot Process -
1. Bot will go to the target folder check if any files exists or not to progress ahead
2. If yes file exists they Bot will have collection of File to work one by one
3. Then use the Ms Excel utility to process the excel data and put relevant data in work queue by using BP existing VBO for WQ adding. For picking specific worksheet from excel , MS excel VBO have different action of direct picking values from given sheet name
4. Now , if you want to do something after dumping to work Queue you can get next item and do your logic one by one
5. once one item from work queue is done mark them accordingly complete or exception as per business rules
6. One all item for File1 in our example is done then movement of File1 will happen to Output folder
7. Out File Collection loop will pick next File2 and so on logic will work so on .

Let me know if you need any more logic
 

Chakku

New Member
Hi Chakku,

Its simple as its sequential way to go ahead

Inputs for ex. File1,File2,File3,File3,File4,File5

Bot Process -
1. Bot will go to the target folder check if any files exists or not to progress ahead
2. If yes file exists they Bot will have collection of File to work one by one
3. Then use the Ms Excel utility to process the excel data and put relevant data in work queue by using BP existing VBO for WQ adding. For picking specific worksheet from excel , MS excel VBO have different action of direct picking values from given sheet name
4. Now , if you want to do something after dumping to work Queue you can get next item and do your logic one by one
5. once one item from work queue is done mark them accordingly complete or exception as per business rules
6. One all item for File1 in our example is done then movement of File1 will happen to Output folder
7. Out File Collection loop will pick next File2 and so on logic will work so on .

Let me know if you need any more logic
Let me try this


Thanks!
 

Pete_L

Active Member
Shikar.mishra's steps will allow you to see that all of the work items from each Excel file are processed before loading the next file. However, Blue Prism is unattended automation, and nobody will likely be monitoring the results of each workbook's work items while it runs. Another option, which follows the principles of unattended automation, would be to follow the steps shikhar.mishra outlined, except load the data from each workbook sequentially into the work queue and then process them all in your Get Next Item loop. You will know all are processed by the result (completed or exception).

I recommend that after you mark each item as completed or exception, you would then add the work item to a separate Reporting queue (before doing another Get Next Item) and generate an output report at the end of the run from the work items in the Reporting queue. If you capture the exception type and exception detail during the main processing, and store those values in the primary work queue, then they will be included when you add the processed work item to the Reporting queue. Then, to generate the report, create a reporting process with a Get Next Item loop that reads from the Reporting queue and writes the record to a collection. Once all records have been processed, write the collectin to Excel to create the report. This output report will thus contain the original input data from the main process and the exception fields that you added there before you sent the work item to the Report queue. The report will be very helpful to the business line that you're creating the automation for, as it will show them the original data that was processed and the outcome of each case.

Hope this helps.
 
Top