Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Facing error while sending an calculated attachment in the delivery?

Ssb_94
Level 5
Level 5

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

1 Accepted Solution
DavidKangni
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

6 Replies
Ssb_94
Level 5
Level 5

Thanks Venu, seems like same issue i am facing.

Will try out the possibilities present in the link shared.

Regards,

Sri Bhargav

DavidKangni
Community Advisor
Community Advisor

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

Ssb_94
Level 5
Level 5

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

DavidKangni
Correct answer by
Community Advisor
Community Advisor

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

View solution in original post

Ssb_94
Level 5
Level 5

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

Regards,

Sri Bhargav