How to remove old data in scraping

Old data is also there when the data scraping happens. Not sure how to remove the old data and jus keep the new one.

Hi,

Can you try to put the following assign activity just before Extract Data Activity.

ExtractDataTable = Nothing

img20210415-1

Or change variable scope of ExtractDataTable.

Regards,

Data scraping doesn’t extract the old data all the time. Thanks for the help. I will try that. How will I know if the above activity works because the issue explained above is not occurring all the time?

Hi,

I guess your problem is caused by Output-DataTable property is In/Out type argument (as the following image) and some data remains in ExtractDataTable variable.

img20210416-3

The above assign activity always makes ExtractDataTable variable null and nothing is input to Extract Data activity.

If you want to check its effective, can you put WriteLine activity with the following expression just before the Assign? If data remains in it, the number will be 1 or more.

if(ExtractDataTable is Nothing,"",ExtractDataTable.Rows.Count.ToString)

Regards,