Close Chrome if no data present in Extract Structured Data

Hi Team,

Have used Extract Structured data(datatable) inside attach browser

How do we close the chrome if data table contains no data

Example:
If we use Extract Structured data within attach browser then we are able to process the Id list present one by one

Have tried to use DT.rows.count = 0
But its not identifying blank rows

Thanks in advance

HI @anmita

Once you’re past through the extract structured data activity, place an if condition, check if recordsDT.RowCount=0, inside the then section use a close tab activity.

You should be able to do this.

Thanks

Hi @anmita ,

You can place a IF activity to check whether data scrap returns data or not as below

ExtractDataTable.Rows.Count > 0

Then-> Returns the data
Else-> Not returns any data(close chrome)

Hi @anmita
Try Dt.rows.count.equals(0)

You can try this way

@anmita

Hello @adiijaiin

Have used it in the same way

Its getting stuck at Extract Structured Data if no data rows are present

But if data is present then it works properly

hello @neha.upase , @Praveen_Mudhiraj , @Dinesh_Guptil

Have used with If condition

Its still getting stuck at Extract Structured Data if no data rows are present

But if data is present then it works properly

@anmita

Use

condition = isnothing(yourDT)

It will Check whether the DT is null or it has some values

It Helps!

Try by placing a Try Catch block. on Extract Structured Data.