in reply to Excel-Writer-XLSX : Excel file with warning messages
Just speculation, but have you closed the Excel file at the perl end before the link is sent and accessed?
See https://metacpan.org/pod/Excel::Writer::XLSX#close()
Otherwise it is probably perhaps not a perl issue, as per the comment by marto in 11107125.
In Section
Seekers of Perl Wisdom