Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Job Queue

Posted on by 689

Hello,

 

I hope somebody can help me because I'm at my wits' end.

I'm searching a lot for the solve but I have not found anything.

 

If I run the following code with the NAS

IF ISCLEAR(olApplication) THEN
  IF NOT CREATE(olApplication, TRUE, TRUE) THEN
    ERROR('Outlook not found!');

 

I get the following error:

---------------------------
Microsoft Dynamics NAV Classic
---------------------------

This message is for C/AL programmers:

Could not create an instance of the OLE control or Automation server identified by
GUID={00062FFF-0000-0000-C000-000000000046} 9.4:{0006F03A-0000-0000-C000-000000000046}:'Microsoft Outlook 14.0 Object Library'.Application

---------------------------
OK  
---------------------------

 

If I run it manually, everthing works fine.

 

 

The NAS User and the User I used for manual process are the same.

An Outlook Client is open in the background.

 

Thank you in advance!

 

Regards,

Bianca

*This post is locked for comments

  • Bianca Profile Picture
    Bianca 689 on at
    RE: Job Queue

    It seems that I solved my issue.

    The last error I get was following:

    "This message is for C/AL programmers:
    The call to member GetFolderFromID failed."

    I change my code from

    olNamespace := olApplication.GetNamespace('MAPI');
    olFolder := olNamespace.GetFolderFromID(EDISetup."Outlook Folder ID");

    to

    olSession := olApplication.Session;
    olFolder := olSession.GetFolderFromID(EDISetup."Outlook Folder ID");

    The Outlook Client which was opened is the past is now closed.

  • Roberto Stefanetti Profile Picture
    Roberto Stefanetti 12,998 on at
    RE: Job Queue

    hi Bianca,

    some info please

    Are you running manually codeunit and by NAS on the some machine ?

    If not, try to compile objects on NAS Server

    Are you using NAS on NAV 2013 integrated service or an older release ?

    Are you using Office (Outlook) 32 or 64 bit ?

    Are you using DOMAIN\admin user to run service ?

    a nice link:

    blogs.msdn.com/.../microsoft-dynamics-nav-compatibility-with-microsoft-office-2010-and-microsoft-sharepoint-2010.aspx

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans