System.IO.FileInfo Problem

I have been learning UiPath from UiPath Academy. I am at Switch topic now.

At the same time I am implementing processes according to video however I took an error about variable type as you can see from the picture . How can I handle with it?

Hi @ulas.benakay

Can you try File = New FileInfo(Invoice.ToString()) and let us know if it works?

Best Regards.

I forgot to change “For Each” s TypeArgument from Object to String. When I set this as String, the problem was solved. Thanks a lot

2 Likes