I have this block of AMPScript written in my template.
/*AMPSCRIPT BLOCK BEGIN */
%%[
var @topupParam, @topupfilename
set @topupParam = "\AccountActivity\022023\110697.pdf"
set @topupfilename = "a.pdf"
AttachFile("FTP", @topupParam, @topupfilename)
]%%
/* AMPSCRIPT BLOCK END */
Dear %%First Name%%
<br><br>
Please find attached your latest <b>Monthly Activity Statement</b> showing the services we have provided to you.
<br>
<p>
Please also find your tax invoice attached.
</p>
<p>
If you have any questions, please contact us and we will be happy to help.
</p>
<br>
As can be seen, for every contact in our data extension we attach the same file to our email For some reason, test send does not work.
"Test send" does not error during "Preview" but simply does not send any email.
Please see the image below where it says 0 emails sent.
Key points
1.I just created this FTP folder (AccountActivity) and its subfolder (022023) now. Is there a delay after a folder is created in FTP for it to be recognised by AMPscript ?
2.To further analyze the problem I even removed the entire AMPscript block and just ran a test email with the following template, even then when I did a test I did not get any email.
3.We already have bought the AMPscript attachfile feature and have been able to test attachments to our customers earlier.
4.This is a sendable data extension with only one record for our testing purpose
Can someone please provide their inputs or ideas ?
UPDATE :
If I just process the Data Extension in Journey Builder, I get "Errored" which I believe to be an improvement as shown below
Is there any way to check what that error is ? Any logging or anything ?