guys i am new to UiPath and i am getting the error when i am trying to save the converted text into anew pdf and i don’t know how to clear it
This typically occurs when you’re trying to assign a string value to an argument or variable that expects an IResource type, and UiPath’s compiler enforces strict type conversions. To resolve this, ensure the data type is compatible with IResource, and either convert it correctly or update the variable/argument type.
Please check below ,
See the properties of Masked Text
The type of variable Masked Text might not be string. You need to get the string attribute of Masked Text and use the same here
To get the string attribute - Use a message box and try diferent properties of Masked Text. Whichever is giving you the expected output - use that instead of directly using Masked Text
Example
If i use summarizedText variable directly, it wont work. Instead i need to use one of the property of Summarized Text.
Hey @Deva_Jeshurun
It seems that the variable you were trying to pass into the Replace corrected text in PDF activity was not of the correct type (IResource). To fix this, move the Replace corrected text in PDF activity inside the For Each loop, and before it, insert a Get File or Folder activity.
Note that currentGDriveLabel in your loop seems to be a label name, not an actual file. If you want to use a specific PDF file in the Replace corrected text in PDF activity, you first need to retrieve the file - for example, using 'For each File or Folder`. Make sure you’re referencing a real file from Google Drive, not just a label.
thanks guys it worked
@Deva_Jeshurun
Great to hear it worked! If your issue is resolved, feel free to mark the most helpful reply as the solution – it’ll help others who come across this thread later on.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.





