anmita
August 21, 2023, 12:12pm
1
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
adiijaiin
(Aditya Jain)
August 21, 2023, 12:15pm
2
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
neha.upase
(Neha Upase)
August 21, 2023, 12:15pm
3
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)
anmita
August 21, 2023, 12:28pm
6
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
anmita
August 21, 2023, 12:37pm
7
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!
adiijaiin
(Aditya Jain)
August 21, 2023, 12:44pm
9
Try by placing a Try Catch block. on Extract Structured Data.