Facing error while sending an calculated attachment in the delivery?

Avatar

Avatar

SriBhargav94-go

Avatar

SriBhargav94-go

SriBhargav94-go

13-04-2019

Hello Folks,

I am trying to send an file present over server location as an attachment in recurring delivery, but facing an error. Below are the activities that i configured in workflow:

Scheduler -> Query (Get Required Information) -> Data Extraction (Extracting to Server Location) -> Delivery Activity (Chosen a delivery template) -> End

I created a template with some content, target population specified and configured an attachment (Calculated Attachment). Provided the same server path where the file resides. But seems like it is not working as expected, do we need to provide some permissions to campaign on the directory. Because this directory has some access restrictions.

Please help!

Regards,

Sri Bhargav

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

DavidKangni

MVP

Avatar

DavidKangni

MVP

DavidKangni
MVP

15-04-2019

Hi Sri,

If i understand you want to send to an operator the bounced email?

  • If yes, i recommend to use a constant file name and add your personalization in the subject line or content (see screenshot below)

1733813_pastedImage_0.png

  • otherwise you can add attachment in delivery with the code below if you want the filename with the date

delivery.attachment.add(

  <attachment compressMode="print" filterActive="false" label="YOUR FILENAME"

              nameScriptActive="false" type="normal" upload="false">

      <name>{vars.filename}</name>

  </attachment>)

 

delivery.hasAttachments = true

Thanks

David

Answers (5)

Answers (5)

Avatar

Avatar

DavidKangni

MVP

Avatar

DavidKangni

MVP

DavidKangni
MVP

15-04-2019

Hi,

For the calculated attachment, your sample need to be on the MTA server plus you need to have the rights to Read, Write Delete on the server otherwise the process will error out.

The work around is to generate the attachment on a server exposed publicly and append the url in your delivery. Campaign will the download the attachment during the email preparation.

Thanks

Avatar

Avatar

Venu_Reddy

MVP

Avatar

Venu_Reddy

MVP

Venu_Reddy
MVP

13-04-2019

Hello SriBhargav94​,

Check this link as it is similar issue and hope it helps

Re: Creating a calculated attachment where File name is computed at the time of delivery for each re...

Regards,

Venu

Avatar

Avatar

SriBhargav94-go

Avatar

SriBhargav94-go

SriBhargav94-go

15-05-2019

Thanks David for Inputs. Will try this way and let know

Regards,

Sri Bhargav

Avatar

Avatar

SriBhargav94-go

Avatar

SriBhargav94-go

SriBhargav94-go

15-04-2019

Hi David,

Thanks for your input!

Yes seems like there are some restrictions imposed where campaign couldn't able to access the particular location and get the file during delivery analysis.

Could you please help me how to configure the server URL is it directly giving the URL along with file name or do we need to do any amendments to it?

I am trying to provide this path:

\\prod-ac-mailing-server....com\var\AC\outbound\BounceBackInformation\Email_Bounce_Report_<%= formatDate(new Date(), "%4Y-%2M-%2D %2H%2N%2S") %>.csv

Regards,

Sri Bhargav

Avatar

Avatar

SriBhargav94-go

Avatar

SriBhargav94-go

SriBhargav94-go

14-04-2019

Thanks Venu, seems like same issue i am facing.

Will try out the possibilities present in the link shared.

Regards,

Sri Bhargav