Error Codes for Outlook Synchronization Handler

bhalpinbhalpin Member Posts: 309
Hi.

I'm trying to diagnose problems using Codeunit 397 Mail.

In NewMessage() I see:
MailSent := OSendMail.Send;
ErrorNo := OSendMail.ErrorStatus;

The MailSent bool will tell me if there was an error, but what I need is a reference for the error numbers.

Does anyone have any pointers on where to find such a list?

Thanks'

Bob

Comments

  • XypherXypher Member Posts: 297
    Have you tried looking up the actual name of the OCX/Automation and do a google search somewhere along the lines of...

    Google: NS Outlook Synchronization Handler Error Codes ? 8-[
  • bhalpinbhalpin Member Posts: 309
    Yes, I Googled several variations. No hits.
  • kinekine Member Posts: 12,562
    Do not forget that you can still use the "OSendMail.ErrorDescription" to get the description for the error... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • bhalpinbhalpin Member Posts: 309
    Thanks! Will try@!

    Bob
  • KroghKrogh Member Posts: 1
    I've tried this, but get an useless error message, just saying "An error has occured...".
    Anyone know ErrorNo 2699?

    If Outlook is already open, or I choose Use Dialog in CU 397(then I can manually press send) the mail is send.
    If not, then the mail is placed in the Draft folder.
  • Big_DBig_D Member Posts: 207
    Hi Krogh

    Did you ever resolved this issue as I too get error code 2699 but can't find anywhere to give me more information!

    With thanks

    David
    Big D signing off!
Sign In or Register to comment.