Read Range Workbook - Cannot convert String to IResource in Studio 2026

Hello UiPath Community!

I am a beginner learning UiPath Studio 2026.0.
I am doing the Automation Developer Associate
Training v2024.10.

My Problem:
I am using Read Range Workbook activity inside
a For Each File In Folder loop.

When I put CurrentFile.FullName in the File
field, I get this error:

BC30512: Option Strict On disallows implicit
conversions from ‘String’ to ‘IResource’

My Workflow Setup:

  • For Each File In Folder (folder = “Reports”)
    • Do:
      • Read Range Workbook
        • File: CurrentFile.FullName ← ERROR HERE
        • SheetName: “Sheet1”

My Studio Version: 2026.0
Package: UiPath.Excel.Activities 3.4.1

What is the correct expression to use in the
File field of Read Range Workbook in Studio 2026?

Thank you so much!

@Husnain

Can you try LocalResource.FromPath(CurrentFile.FullName) in the file field?

@Husnain
You can try with this one LocalFile(CurrentFile.FullName)
Also check for the type argument in for each file in folder activity the type argument is fileinfo