Hi guys,
I've stumbled into an issue that when I scrape with more than 10 threads in ZP, the xlsx file that the data is written to sometimes switches file size to 0 (like it's busy), then the other treads can't write anything to it and treat it as error or something.
As a bypass for it, I wanted to generate the unique xls file names for each thread, so that each tread is working with it's own file.
Here's how I decided to do it.
1. generate a random number
2. append file name to that number - RESULT_{-Variable.RAND-}
3. specify the table file location with the resulting file_name_rand.xlsx (
{-Project.Directory-}\{-Variable.FILENAME-}.xlsx)
It worked ONCE But then the result file the threads were generating or writing to was .xlsx
What am I doing wrong or how can this be done properly?
I've stumbled into an issue that when I scrape with more than 10 threads in ZP, the xlsx file that the data is written to sometimes switches file size to 0 (like it's busy), then the other treads can't write anything to it and treat it as error or something.
As a bypass for it, I wanted to generate the unique xls file names for each thread, so that each tread is working with it's own file.
Here's how I decided to do it.
1. generate a random number
2. append file name to that number - RESULT_{-Variable.RAND-}
3. specify the table file location with the resulting file_name_rand.xlsx (
{-Project.Directory-}\{-Variable.FILENAME-}.xlsx)
It worked ONCE But then the result file the threads were generating or writing to was .xlsx
What am I doing wrong or how can this be done properly?