Help in this error please ,”Error ERROR Validation Error BC30512: Option Strict On disallows implicit conversions from ‘String’ to ‘IResource’. The selected value is incompatible with the property type. Main.xaml”

Hello,
I get this error when using Read Range Workbook activity.


the error in the file argument
Thanks for helping.

  • Try to use UiPath.Excel.Activities.3.4.1
  • In the Read Range Workbook activity, under the File parameter, click on + → select Use Local File

  • Remove the old CurrentFile.FullName and retype again the CurrentFile.FullName

Now the error should be solved.

If you are using the standard For Each activity instead of the specific For Each File in Folder activity, make sure the TypeArgument in the Properties panel is set to System.IO.FileInfo . If it’s set to Object (the default), it won’t recognize .FullName .

Hi @Nagwa_Mohamed

After the Read Range Workbook was recently updated it no longer defaults to local paths, but uses file resources instead.

You could click the plus icon and switch it to Use Local File which accepts your input.
Or you could define the resource as such:

LocalResource.FromPath(CurrentFile.FullName)

Regards
Soren