Options

Issue in sent mail through Outlook2013

navuser1navuser1 Member Posts: 1,329
edited 2014-08-22 in NAV Three Tier
Dear Sir,

In a custom page(nav2013 r2) there are two functionality developed
1. Pdf generation for individual party
2. Mail the generated pdf to respective party

Actual Scenario :
We are able to generate 200 Pdfs without any issue but when trying to shoot the mail to the respective party the following error message occurred.


The above error message occurred after the 190 mail posted successfully.

What is the reason behind that issue ?
Kindly reply.
Now or Never

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    It's probably a timing issue, meaning that the mail program wants to access the pdf which is not finished creating yet, or that the pdf is being erased while the mail program is attaching it to the mail. Try adding some pauses in your code or use unique filenames for the pdf's.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    navuser1navuser1 Member Posts: 1,329
    The two functions are worked by two different action items. One action item is responsible for generating the PDF files another is for sending the PDFs to the respective party.

    After generating the PDFs file, these are checked manually for their physically existence. So there is no question of missing or partially generated.

    All pdfs files have a common name but they are stored in a unique named folder.
    { C:\partycode\mibuso.pdf }
    **Here partycode is always unique.
    And so the mail attachment should not be an issue.

    Sleep function is used here for two different actions. System uses the sleep function before generating the next PDF and also the same way before sending the next mail.
    Now or Never
Sign In or Register to comment.