Unauthorized Access Exception

Hello Folks, I am doing my assignment from Yearly report, Advanced Training Assignment 2.

I am Unable to read the CSV file since the folder is not accessible.
I changed the security on the folder for “Everyone” to read and access.

Please let me know.

1 Like

Hi
Welcome to uipath community
Were we able to access that folder manually
Cheers @priyanrece

I follow your posts all the time. You are incredible Palaniyappan :slight_smile:

2 Likes

Yes I can access manually. I select the file and it works. If I select folder, it says cant access :frowning: Have been stuck

1 Like

@Palaniyappan This is the error

@priyanrece

Access denied type of errors are often caused by either antivirus software blocking the files or lack of enough permissions to the folders. Could you test it with antivirus temporarily disabled?

Hi
Mention the full path of the csv file
Like
“Yourfolderpath\yourfilename.csv”

And try once
Cheers @priyanrece

Still the same error @lakshman I disabled the anitvirus for 1 hour

It works, but mentioning folder doesnt work.

As part of assignment, I have to mention folder.

The CSV file is getting saved. Opening the “Read CSV” function is not working if I mention folder.

@Palaniyappan

1 Like

@Lahiru.Fernando Any suggestions?

Yes buddy
That activity will take the filepath as input and not the folder path alone
So if we know the folder path only
Then from that we can get the Filename using this expression
arr_files = Directory.GetFiles(“yourfolderpath”,”*.csv”)
Where arr_file is a variable of type array of string
—now use a FOR EACH activity and pass the above variable as input and
—inside the loop use a READ CSV activity and mention the file path input as item.ToString

Cheers @priyanrece

Thanks Thanks, my understanding was incorrect earlier. Input should always be file and not the Folder path @Palaniyappan

1 Like

Check on task manager if excel processes are still running. Kill those processes and try to rerun. If you are still unable to kill all they might be running on the background, you can restart your pc/laptop so that it would all be closed and refreshed. Hope this helps :slight_smile: :smiley:

Yah
That file path can be passed as input to READ CSV activity
To be simple if we pass a folder how does that activity read csv knows whether it’s a csv file or not

Cheers @priyanrece

1 Like

@Palaniyappan Thanks much, it worked. input is always a file and never a folder path :slight_smile:

1 Like

Cheers @priyanrece

@Palaniyappan For UI Path Advanced certification, they have mentioned to use WorkItems and not Queues. But I am comfortable with Queues, can I use Queues for the exam?? They have not mentioned about using Queues in the grading pattern though.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.