web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

To send documents via email

(0) ShareShare
ReportReport
Posted on by 78
hi
 
I am trying to send documents via email, but sometimes the generated document has a file size of 0 bytes. When this happens, the email sending fails. What is the best way to handle or prevent this issue so that empty documents are not sent?
I have the same question (0)
  • Suggested answer
    Sahan Hasitha Profile Picture
    1,766 on at
    To send documents via email
    hi
    try this
     
  • Suggested answer
    Sahan Hasitha Profile Picture
    1,766 on at
    To send documents via email
    hi
     
    important to validate the file before attaching it. You can do this by checking the stream or file size after the document is generated. If the size is 0, simply skip the attachment and handle the case gracefully (for example, show a warning or prevent the email from being sent). This ensures that no empty documents are attached and avoids email delivery failures caused by 0-byte files.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,180

#2
Sumit Singh Profile Picture

Sumit Singh 3,063

#3
YUN ZHU Profile Picture

YUN ZHU 2,317 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans