Hey guys, relatively new to Ui path, I’m trying to split a pdf I’m working with to get content from
Total current … to usage summary. But I keep getting this error:
The name ‘Split’ does not exist in the current context
I think the issue is probably a VB error as the project is in C#. Any thoughts
Didn’t work. I think in C#, I have to call the object to be split first before the function. Like a
testpdf.split, not a Split((Split(testpdf))). Not sure
Its basically just an invoice pdf and I’m trying to get all the information in between the words “Total current charges” to “Total Usage Summary”. Just all the information between those words
and @vrdabberu
I believe the issue is from the Regex string " \s". The script is fine and gives no error up until that point. Should there be a “\s” or some other way I could right that. The escape sequence in the regex is the error. Thanks for the variable correction btw
Yes @cemenike you are absolutely correct.
Change the Variable for regex statement to IEnumerable
If you can’t find how to change follow the steps :
Open the Variables panel and click on Variable type and hit on the Browser for types search IEnumerable< then click on below highlighted option as like in image.
Then another window is opened and search like this System.Text.RegularExpressions.Match