No PDF Attachment to Email (Bullzip PDF)
Bjorn77
Member Posts: 4
More and more we are having customers complaining that bullzip / BioPDF failed to attach the created PDf file to the email. The initial solution is that there is 1 codeunit who handles the whole process in one go. -> Create PDF -> Send Mail
For the NAS I have solved the problem by splitting the jobs and made two tasks. 1) Create PDF 2) Send Mail. And, gladly, this works fine. All mails send by NAS contain PDF.
But for the user driven process (Posted Sales Invoice - Mail PDF) I can not split the process, and thus sometimes the customers of our customers get an email with no PDF attachment.
If you use Bullzip and this problem does sound familiar, please give advise on how to solve this or perhaps how did you solve this?
Thanks 4 reading and maybe helping.
For the NAS I have solved the problem by splitting the jobs and made two tasks. 1) Create PDF 2) Send Mail. And, gladly, this works fine. All mails send by NAS contain PDF.
But for the user driven process (Posted Sales Invoice - Mail PDF) I can not split the process, and thus sometimes the customers of our customers get an email with no PDF attachment.
If you use Bullzip and this problem does sound familiar, please give advise on how to solve this or perhaps how did you solve this?
Thanks 4 reading and maybe helping.
0
Comments
-
I have gotten a similar problem using pdfcreator. Maybe my solution works for you too..
before sending email i check if the file exists in the filepath using a while loop with a timeout.
while not exists(filepath) do
if timeout = 30000 then
error(errormessage);
timeout += 1;
When it finds the file it continues. The file could still be unfinished so i use a method from the automation server that checks the number of documents in print queue.
while printqueue > 0 do;
when this line is finished there is no documents in print queue and the file should be ready. to attach to email.0 -
stiasta wrote:I have gotten a similar problem using pdfcreator. Maybe my solution works for you too..
before sending email i check if the file exists in the filepath using a while loop with a timeout.
while not exists(filepath) do
if timeout = 30000 then
error(errormessage);
timeout += 1;
When it finds the file it continues. The file could still be unfinished so i use a method from the automation server that checks the number of documents in print queue.
while printqueue > 0 do;
when this line is finished there is no documents in print queue and the file should be ready. to attach to email.
Thank you,
The WHILE DO I already have:
TimeOutLInt := 0;
WHILE NOT EXISTS(FileNameGtxt) AND (TimeOutLInt <= 10) DO BEGIN
SLEEP(1000);
TimeOutLInt := TimeOutLInt + 1;
END;
The method from the automation sounds good. Good idea!0 -
tell me if it didnt/did work
0 -
I am using another way how to detect if the file is generated and available for attaching. Try to open it for writing. If it ends with error, the process is still not finished. If you are able to open the file for writing (WRITEMODE=true) than the file is available... (of course, it expect that the user has write permissions in the folder).0
-
Kines solution is not dependent on automation methods. I havent tried it myself, but it should work.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 329 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
