Archive file cannot be size 0

Hi Team,

We are getting this system error " archive file cannot be size 0" when BOT is trying to merge two excels in which one file has size 0bytes. Could you please let me know if this error is due to that file has size 0 and also let me know if we cannot merge size 0 file?

I mean let me know the alternate solution for merging the size 0 files or any work around for this.

Thanks,
Rama

How are you merging the files?

The error message is pretty clear that you can’t merge a file with 0 size.

let me know the alternate solution for merging the size 0 files

If the size is 0 then there is nothing to merge.

Actually concept here is we will be having multiple files in folder and we need to merge them as single file and in only few cases we are going to have this size 0 file. So we want the BOT to skip that particular file with size 0 and merge the remaining files without giving error and proceed treating the merged file.

Simple solution delete all the files that are 0kb before merging or simply skip the files that are 0kb.
You can use the file object to the size property.