Argument 'PdfFile': BC30512: Option Strict On disallows implicit conversions from 'String' to 'IResource'. The selected value is incompatible with the property type

Argument ‘PdfFile’: BC30512: Option Strict On disallows implicit conversions from ‘String’ to ‘IResource’. The selected value is incompatible with the property type.

Facing this issue while trying to read the read pdf text activity , even the autopilot is not able to fix this issue

Using the below packages , UiPath 2026 version of studio

Hi @SaiKiran_RPA

It seems you are using a file path as a string. Instead, try using LocalResource.FromPath(“YourFilePath”).

Regards,

@SaiKiran_RPA

It’s due to the file path you are passing to the activity.

Pass your pdf file path like this and you should be fine

LocalResource.FromPath("yourpdffilepath")

Hello @SaiKiran_RPA,

It looks like LocalResource.FromPath is not working for converting because it uses the input type UiPath.Platform.ResourceHandling.IResource. Using ‘Get Local File or Folder’ before the activity may help resolve the issue.

Thanks,
Karthik

tried this but same issue

it worked , but earlier i see we have option to select the file too and also pass in double quotes what changed actually

Hello @SaiKiran_RPA,

The platform is being upgraded in phases, which might be the reason these changes are being updated in the namespaces.

My assumption is not 100% certain!

Thanks,
Karthik