Options

Issue with Codeunit 397 Mail with Version 4 Sp1

sainibabasainibaba Member Posts: 6
Hi All,

I am using Version 4.0 SP1 W1, generating automatic mail using code unit 397
and during that i am getting error code :2690, and error description :"An
error has occurred while setting the UnRead value". and not able to generate
the mail, could you please help me where i am wrong , because i have used
this cide unit in earlier versions and it works fine and my email client is
Microsoft Outlook.

Regards

Deepak

Comments

  • Options
    kinekine Member Posts: 12,562
    Which version of outlook you are using?

    Did you tried to reregister the OLHandler.dll in the client folder?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    lphanlphan Member Posts: 10
    I have similar problem. But I do not think sp1 causes it as I am running version 4 with latest build 20942. It was used to work but suddenly it does not work anymore ](*,) . My outlook is 2003 - SP2.
  • Options
    pdjpdj Member Posts: 643
    Add/Remove programs -> Add/Remove Windows Components -> Disable Fax services -> Next next.... Restart

    Feels like magic, but its just Microsoft :-)
    Regards
    Peter
  • Options
    Paul_BradburyPaul_Bradbury Member Posts: 15
    I have similar problem using either v4 or v4 SP1 on a machine with Outlook 2000 SR-1, however there is no problem on another machine which is running Outlook 2003 SP1.

    I think it must be the version of Outlook which is the key.

    I tried the Disable Fax trick and it didn't work.
  • Options
    g_dreyerg_dreyer Member Posts: 123
    I get the following error in Nav4.00 (no SP1):

    Microsoft Business Solutions-Navision
    Boolean must not be blank.

    Boolean is missing or invalid in the expression.


    Which basically comes from the Mail codeunit itself when doing the following line of code:
    [MailSent := Send()] (function)
    MailSent := OSendMail.Send; <--- ERROR here (blank not allowed)
    ErrorNo := OSendMail.ErrorStatus; <--- ERROR here (blank not allowed)

    What do you use to register the component? regsvr32? Is there not some other steps that you have to do as well to register the component on XP?

    I used the Tools, Custom Controls to register the .dll, but resulted in Nav telling me it is not registered properly.

    It seems that "Mail.AddBodyline(Body);" is not working properly either.

    Any ideas?

    Regards,
    Gustav
  • Options
    richardsrichards Member Posts: 2
    I contacted Microsoft Support and recd a fix and it seems to be working.

    If you are having this problem I suggest you ( or your solution centre ) contact partnersource for the fix.

    Richard
  • Options
    SavatageSavatage Member Posts: 7,142
    what kind of fix? is it postable?
  • Options
    richardsrichards Member Posts: 2
    As the fix is a private release ( a pre release of SP3 ) I would rather that the fix was obtained from Microsoft.

    Richard
  • Options
    Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    SP3? we haven't even got SP2... :?
  • Options
    jorgitojorgito Member Posts: 115
    Hi all!

    I am trying to locate the fix that richards is talking about.

    I entered PartnetSource but I only found a fix concerning the use of an earlier version of Outlook than Outlook 2002.

    I have Outlook 2003 SP2 and I have the problem mentioned above.

    How do I search the knowledge base in order to find the specified fix?

    Thanx a lot
    Jorgito
  • Options
    Dave_CintronDave_Cintron Member Posts: 189
    Has anyone located this hotfix??? KB894246 doesn't give a link?
    Dave Cintron
    Dynamics West
    http://www.dynamicswest.com
  • Options
    vygavyga Member Posts: 1
    Hi all

    We have the same problem with Navision 4.0 and Outlook SP2 (with Outlook sp1 their are no problems).

    Problem: generating automatic mail using code unit 397
    and during that error code :2690, and error description :"An
    error has occurred while setting the UnRead value"


    Hi Richards

    Can Your describe what fix was made. :?: :idea:

    We have send information to Microsoft one month ago, but we haven't got responds. :oops:

    Has anyone got this hot fix or work around. :?:
  • Options
    ShaobertShaobert Member Posts: 4
    Hi,

    We have the same problem in Navision 4.0 and Outlook 2003 sp2.

    I’m looking for the fix in partners guide, but I can’t find it.

    It’s this trouble solved? Anybody can say me de fix number or where I must search?

    Thks 4all.

    Shaobert.
    Manuel Carrasquero Viana
    MBS Navision Support
    www.isiconsulting.es
  • Options
    gedasgedas Member Posts: 87
    Hi,
    This is problem of Navision communication with Outlook SP2.
    Solution:
    1. Remove outlook SP2 from computer where you need send e-mails.
    or
    2. Ask fix from MBS support. Fixed dll will be delivered to you.
    GB
  • Options
    ShaobertShaobert Member Posts: 4
    tkhs :mrgreen:
    Manuel Carrasquero Viana
    MBS Navision Support
    www.isiconsulting.es
  • Options
    DoomhammerDoomhammer Member Posts: 211
    I solved this problem using olhandler.dll from navision 5.0 :-)
    Martin Bokůvka, AxiomProvis
Sign In or Register to comment.