Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Mailing multiple attachments problem

$
0
0

I created SSIS package that runs several reports and exports the files (Excel and PDFs) to a shared folder. Then it attaches these files using the Mail task and emails them to an email distribution group. 

This was working fine until I made some changes in the source database (additions and changes to tables, views, and stored procedures - which add new functionality).  Now 2 of the 6 files are missing in the email that is sent out (the missing files happen to be PDF files, the 4 files in the email are Excel files.). But all the files (all 6 of them) are in the shared folder.  Only one of the changes, as far as I can tell, affected one of the reports and I changed that one back.

The package, that runs the reports, creates the PDF files first.  All the reports are run in a sequence and then the mail task runs in the order below.

Create shared folder -> Run Report1 -> Run Report2 -> Run Report3 -> Run Report4 -> Run Report5 -> Run Report6 -> Run Mail task

I use an expression in the Mail task to populate the Attachment field.  I have 6 variables containing the report names, 1 for the path, and one for the concatenated report names and path.

No changes were made to the reports or the package.  I am puzzled why the PDF files are no longer included in the email.

Any ideas?


Fred Schmid


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>