Data Scrape No Data

I want to get data from the website. And I want to put a log message every time there’s no data. If there’s no data, the website is just blank with only a header. Please help. Thank you.

Hello @pprincsipe

You can try:

if dt.rows.count = 0 then

LogMessage

End if

It’s not working. :persevere:
I’ll be sending my script here.

Court Website 4 - Browser.xaml (7.8 KB)
Court Website 4 - Date.xaml (9.7 KB)
Court Website 4 - Extract Data.xaml (13.6 KB)
Fourth Circuit.xaml (9.0 KB)

Your xmls seem to be missing the Extract Data step itself. Can you check it once?

Attaching

Court Website 4 - Extract Data.xaml (13.6 KB)

Got it. I figured out where you are going wrong.
In this workflow, you are checking for this condition even before extracting the data from the web page.
You should have your If ExtractDataTable.Rows.Count=0 condition after Extract Structured Data step.
Need to do some rearrangement and you should be good :+1:

2 Likes

Hi Kaderms!

I already put the Extract Structured Data step before the If ExtractDataTable.

But it still not working :frowning:

Court Website 4 - Extract Data.xaml (16.7 KB)

Oh it worked hehe thank you!

Awesome! :man_dancing:

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