Skip to main content
Navigator | Tier 3
March 2, 2022
Question

i am getting this error --> The directory '' does not exist. Enter a valid directory.

  • March 2, 2022
  • 4 replies
  • 1084 views

Hello,

I am looping through each file in folder where i am getting this error --> The directory '' does not exist. Enter a valid directory.

while accessing the path of the folder which is in groupshare

also this wont come for each run

 

Please suggest 

image

    4 replies

    Ashwin A.K
    Navigator | Tier 3
    March 2, 2022

    Hi @Sheetal Kawade​ ,

     

    There seems to be an issue with the FolderPath that you have passed in, could you double check whether the directory exists?

     

    You can also test it using an If: Folder Exists Action ->

     

    image 

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    Navigator | Tier 3
    March 2, 2022

    Hello Ashwin,

     

    Thanks for replying

    But i could just resolve this issue

     

    I checked in the loop if the dataset-column(0) is not equal to blank

    If blank, it will break the loop

     

    and this worked

     

    Thanks again

     

    Ashwin A.K
    Navigator | Tier 3
    March 2, 2022

    Nothing beats finding the solution on your own!

     

    Kind Regards,

    Ashwin A.K

    Blogs at TheCodingTheory - https://www.thecodingtheory.com
    Navigator | Tier 3
    March 7, 2022

    Hello @Ashwin A.K​ 

    I am facing this issue again on runner machine

    The directory exists and its a path is of groupshare folder which i am accessing from runner machine

    Bot is scheduled every 15 mins to access this path and look for any file

    So sometimes it is accessible and sometimes it is throwing error that it does not exists

     

    any suggestions from your side ?

     

    Thanks