Hello, im doing Linkedin scraping with UiPath, then saving the scraped data in an excel sheet then a json file. i get th results like in the pictures below empty spaces :

Just trim it out, like name.Trim or country.Trim
Use Trim method of string to remove empty spaces around the value.
Using in Assign activity like:
name= name.Trim
Thanks,
Ashok ![]()
i get this error :
![]()
yes after the get attribute, i used assign

this error appearse only when the string vrbl is null
you can do an if Statement
youStrVrbl is Nothing
add in else condition the assign activity
youStrVrbl = youStrVrbl.Trim
The error states that the variable don’t have any value or it’s nothing. Because of it we cannot trim it.
Check this by adding a log message to print value of country variable between the get attribute and assign activities.
Thanks,
Ashok ![]()
To avoid the error you can you use the inline if statement to only trim if there’s a value.
country = If (String.IsNullOrWhiteSpace(country), "", country.Trim)

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

