Trouble generating reports with attachments

I am trying to generate an excel report, and I use a template to generate an attachment, when I select to create a report for a row in the table,
the file is generated correctly, but when I select to generate report for the Entire table it generates an error that you cannot find the columns.

DataSource: image

Template: image