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.
vrdabberu
(Varunraj Dabberu)
July 28, 2024, 6:42am
2
Hi @devasaiprasad_K
Can you share the screenshot of the error in which activity you are facing the error.
Regards
vrdabberu
(Varunraj Dabberu)
July 28, 2024, 6:56am
3
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
rlgandu
(Rajyalakshmi Gandu)
July 28, 2024, 7:02am
5
@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 .
If you are Read Pdf Text Activity Using UiPath.Pdf.Activities Package then you directly pass the path.
I hope you got to know the difference
vrdabberu
(Varunraj Dabberu)
July 28, 2024, 7:08am
7
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
system
(system)
Closed
July 31, 2024, 7:09am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.