Sending Multiple Attachment from Notification Activity
Moderators: chulett, rschirm, roy
Sending Multiple Attachment from Notification Activity
Hi,
I am trying to send two attachments from my Notification Activity from inside my job sequence.
But the problem I am facing is that I am able to send only one attachment, It is sending only the first file. For the second one it is saying
"WARNING - MISSING ATTACHMENT: Cannot open attachment file" .But the file is present in the specified path. I am separating the files by a comma(,).
If I use space or semicolon to separate the attachment files then it is sending none of the files.
If I interchange the position of the two files, than again the first one it is sending but not the second one.
Could any body please help me on this.
I hope sending multiple attachment is possible through Datastage Notification Activity.
Thanks in advance,
Arnab
I am trying to send two attachments from my Notification Activity from inside my job sequence.
But the problem I am facing is that I am able to send only one attachment, It is sending only the first file. For the second one it is saying
"WARNING - MISSING ATTACHMENT: Cannot open attachment file" .But the file is present in the specified path. I am separating the files by a comma(,).
If I use space or semicolon to separate the attachment files then it is sending none of the files.
If I interchange the position of the two files, than again the first one it is sending but not the second one.
Could any body please help me on this.
I hope sending multiple attachment is possible through Datastage Notification Activity.
Thanks in advance,
Arnab
They noted that they've already tried that and had issues. From what I recall, it can depend on your platform and mail server, they don't all work the same way. Some want a comma between the files names, some want a "comma space" and I believe I had one where it took a semi-colon. Still, zipping up everything and sending a single attachment (regardless) was what most of my clients seemed to prefer.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
I had this same issue and after reading phonseau's suggestion I realized that the root cause was that I initially had a space after the commma separating the filepaths. Removing the space corrected the issue. This is on DataStage 8.7
Causes Error:
Sends both attachments succesfully:
Causes Error:
Code: Select all
/home/dsuser/File1, /home/dsuser/File2
Code: Select all
/home/dsuser/File1,/home/dsuser/File2