cancel
Showing results for 
Search instead for 
Did you mean: 

"Get Files" action unable to detect the file in the folder

anand060191
Level 2

Hi,

Get file action is not able to detect files (Returns output: Count - 0) even if the file exist in the folder.

Key points: 

  1. Bot is able to detect files sometimes (on-and-off) so it can't be access related issues or input parameters.
  2. Output Parameters returns following: [Message - Blank, Success - True], Hence no clue from there
  3. Issue is only coming in Production while running from control room (only in few runtime resources)

Any inputs or workaround on this item is highly appreciated.



------------------------------
Anand Singh
------------------------------
12 REPLIES 12

SeemaA
Level 3

Hi,

What kind of files are you trying to fetching?

Please share the inputs you gave to the action stage.

Regards,

Seema A



------------------------------
Seema A
RPA Developer
Deloitte
Asia/Kolkata
------------------------------

John__Carter
Staff
Staff

Key point #3 suggest there might be a synchronisation issue in your logic. Is is possible the Get Files action is returning a truthful result, perhaps because files are not present at the exact moment the call is made? Could the process sometimes be calling Get Files too soon?



------------------------------
John Carter
Professional Services
Blue Prism
------------------------------

SeemaA
Level 3

As John addressed, it might me synchronization error too, Try capturing screenshot before you call 'Get Files' to verify this



------------------------------
Seema A
RPA Developer
Deloitte
Asia/Kolkata
------------------------------

@John @Seema 

I suspected the file is not copied properly before the bot executes Get Files action. And Hence I Copy file manually few hours before I run the bot again. Yet the bot fails to detect files and returns count Zero.

What puzzles me is that, could that be due to the network connection between bot and Shared Drive(Folder)?



------------------------------
Anand Singh
Programmer Analyst III
Jabil
Penang
+60167427974
------------------------------

Hi Anand Singh, is it on network path where the files are stored or a local drive where you are trying to access the files and fetch it ? Just before trying and fetching files always ensure that the Directory exists flag gets successful if not already and while fetching the files I hope you are keeping Wildcards to identify and pick the correct files.

18774.png

18775.png

18776.png



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.

Regards,

Mukesh Kumar - Senior Automation Developer

NHS England, United Kingdom, GB
------------------------------
Regards,

Mukesh Kumar

Hi.. whenever i try to GET FILE action, the message is displayed. "the illegal characters in path." please guide me how to solve this issue, i am new in Blue Prism. for your reference i attached screenshots of my process

error.jpgproperties.jpg

Hi @Adnan3194 ,

 

Can you paste the file name here? for further understanding of what/how the file name looks

Adnan3194
Level 3

hi @Chakkravarthi_PR here it the name of file

file name.jpg

Hi , 

The file pattern is the problem, it should be "*.xlsx" you have it as "*.xlxs" which is the incorrect file format.

Chakkravarthi_PR_0-1732030360623.png

Chakkravarthi_PR_1-1732030460991.png

File Pattern data Item, remove the double quotes i.e

Chakkravarthi_PR_2-1732030700221.png