'Path' is ambiguous - Error Namespaces - Get file name of path

Hello!

I want to use functions like Path.GetFileName or Path.GetFileDirectory in a workflow but it’s not possible due an error related to namespaces, I think. (The System.IO and System.Windows.Shapes are added to my “Imports” and I’ve check and they are in the .xaml file.

If I use the same expression in the main workflow, it works with success.

Can anyone help, please??

Regards,
Francisco

Use Directory.GetFiles(inputfilepath)
Or Directory.GrtFileNamewithoutextension(inputfilepath)

Thanks
Ashwin.S

Hi @AshwinS2,

Directory.GetFileNamewithoutextension(inputfilepath) is not working. Shoud I import some namespace? :thinking:

Hi @FranciscoAraujo

Can you restart uipath studio and type it again

Thanks
Ashwin.S

Could you please send a .xaml workflow attached, pls?

Thanks!