Error in Add Data Row Activity- not all code paths return a value in lambda expression of type 'Func<object>'

I’m a beginner in UiPath so while trying to build up the bot to scrape website data in C# as the language, When I tried to add the Variables to the Array Row, It gives me the error "not all code paths return a value in lambda expression of type ‘Func’ ".
I’m using the format used for VBScript with the curly braces, I’m not sure how to do it with C#(Need help with syntax if that is the cause of error), Adding main.xaml file as well if you want to take a look at that.
Main.xaml (35.6 KB)

Any help is much appreciated.

give a try on

new Object[] {PriceV, BedroomV, BathroomV, SqftV, AdressV };

crosscheck for spellings here on the var names

2 Likes

Thank You @ppr , for the speedy response and solving this for me!

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