Error in Assigning PDF file Path

i am trying to read a PDF file and trying to read the pdf FIle Path from config file and the following error is coming, even if i tried to give direct path with out reading from Config file i am getting below error any INstation we need to do…

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

Hi @devasaiprasad_K

Can you share the screenshot of the error in which activity you are facing the error.

Regards

Hi @devasaiprasad_K

If possible upgrade the UiPath.System.Activities to the latest version theb you will get back the choice to work on filepath base or IRessource base.

Regards

at this Activity - Extract PDF Text

@devasaiprasad_K

LocalResource.FromPath(in_Config("Census_Data1").ToString)

You are Using UiPath.DocumentUnderstanding.Activities Package to read the text from the Pdf.So you Have to pass the Path Like Above .

image
If you are Read Pdf Text Activity Using UiPath.Pdf.Activities Package then you directly pass the path.
image
I hope you got to know the difference

Hi @devasaiprasad_K

Please use the below syntax as it an document understanding package we need to provide the below syntax


Regards 
LocalResource.FromPath(in_Config("Census_Data1").ToString)

ohk… got it, yesterday i was going through the differences between these two activities, not sure if i missed this point while reading.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.