Error When Writing Directory.GetFiles in Assign Activity 'Directory' is ambiguous, imported from the namespaces or types 'System.IO, Microsoft.Graph'

Hello,
As of today, I am getting an error in the assign error that I used to move the file.
The running process has stopped running. (has not received any updates)
‘Directory’ is ambiguous, imported from the namespaces or types ‘System.IO, Microsoft.Graph’. an error occurs.
I request your support on the matter.

Hi,

Can you try to add System.IO. just before Directory as the following?

System.IO.Directory.GetFiles(.....

Regards,

Hello,
The problem is not with the code. Because it was working.
Could there be an access permission problem in the folder?

Hi,

Can you hover the following red exclamation mark and share its message?

image

Regards,

Daily Lead.xaml: Compiler error(s) encountered processing expression “Directory.GetFiles(“C:\Users\webotix.psa\Downloads",”*.xlsx”)".(2) : error BC30561: ‘Directory’ is ambiguous, imported from the namespaces or types ‘System.IO, Microsoft.Graph’.

HI,

Can you try to put new Assign activity and set same value as the following?

daily = System.IO.Directory.getFiles(.....

Regards,

Hello,
without doing anything the problem was fixed. As I said, it was working fine, now it gave an error.
I think UiPath got some sleep :slight_smile:
Thank you for your support.

1 Like

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