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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Job Queue

(0) ShareShare
ReportReport
Posted on by 693

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

I have the same question (0)
  • Roberto Stefanetti Profile Picture
    12,998 on at

    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

  • Bianca Profile Picture
    693 on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans