Bao and GerdW,
Thanks for your great help, I fixed the issue this morning as GerdW mentioned yesterday that the error is about the file missing. so I fixed the code and also put the template.xlsx file into the application folder, then issue disappears.
originally, I thought that Labview will read the template file and also intergrate the file content/format into the exe application file automaticlly when I build the exe file, so I thought I do not need to move the template file into exe application folder, actually, that needs the template file.
so this is the reason, I made this stupid practice!😂
anyway, I fixed the code with adding a default file path to exe file folder, and also always copy the template file into the exe file folder, then everything works well.
thank you all for your great help!