Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

Posted on by Microsoft Employee

I need help setting up the exchange server synchronization, so people can sync their tasks and meeting from Ax2012 R3 to outlook.office.com 

I can't use a personalised account under email settings in System administration, since it prevents us from sending system emails, and when selecting Exchange server, the latest version available is Exchange2013, I get an error using the setup wizard 

Error executing code: CLRObject object not initialized.

Stack trace

(C)\Classes\CLRObject\instance

(C)\Classes\smmEwsConnection\instance - line 20

(C)\Classes\smmSynchronizationConnection\createConnection - line 18

(C)\Classes\smmOutlookSync\currentOutlookUser - line 13

(C)\Forms\smmEmplOutlookSetupWizard\Methods\initCurrentUser - line 4

(C)\Forms\smmEmplOutlookSetupWizard\Designs\DesignList\UseCurrentOutlookProfile\Methods\Clicked - line 3

Does anyone have a solution for this?

Thanks in advance

Elsebeth :-)

  • Sunnyw Profile Picture
    Sunnyw on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Yes please Elsebeth.

    I find an archive article docs.microsoft.com/.../microsoft-exchange-server-integration-in-ax2012-r3-cu8 that outlook.office.com is already supported.  In fact, I myself do not hear much for office 365 outlook connection issue as well.  

    You can reference this forum page when creating ticket to MS.  The reason for support ticket is that at least for me, I would like to take closer look at your environment probably via streaming session that could not be done via forums.

    And yes, I also wonder this is something local to the box not even reaching to the exchange end.  You can probably replicate the same error using this simple in job.  By the way, did you test more than one machine?  I just wonder if it is machine specified.

    static void TestOffice365Mapi(Args _args)
    {
        SysIMapiEx mapiEx;
        ;
        mapiEx = smmSynchronizationConnection::createConnection();
    }

    In testing environment, I would probably also comment out the following in Classes\smmEwsConnection\instance() to see if it helps; it basically takes off the caching of MAPI connectivity.  

    pastedimage1586276640042v1.png

    Again, please refer to forums for MS Support ticket.

    Thanks,

    Sunny

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Hi Sunny,

    We mentioned the version to MS, and they closed the ticket without providing an adequate answer, sending us the same uninstallable file for CU13, and later on referring us to a different support team, to which I don't seem to have a log in.

    As I wrote, I can connect to outlook with my email as well as create new functioning profiles, but even though I connect using the wizard set up, I get the cannot communicate with the MS email client error, and that is only feasible if I have specified my email under e-mail settings under system administration setup. If I leave it blanc or specify another, connecting is not even possible. It is either the stack error or the user's email is not the same as the workers. As if it actually requires that the system admin setup should reflect the user's email, which makes no sense at all.

    I am doing all this in close cooperation with our IT department, and they have verified both the TLS version as well as the email account validity.

    I am convinced this is due to the SmmExchangeServerVersions not being up to date. But I can't get a fix for this.

    I don't think this is solvable to be honest. But thanks ever so much for all your answers and suggestions. It is a shame that we cannot get the fix you proposed. Also a bit weird that MS sends us a total CU13 for download not conataining an .axupdatefile instead of just sending us the download link for  KB3161479.

    Maybe when we are all allowed back in the office I'll try contacting MS support again.

    Thanks

    Elsebeth :-)

  • Sunnyw Profile Picture
    Sunnyw on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Hi Elsebeth,

    This sounds like mail profile or COM related.  Have you tried in other AX client box or have a 'clean' VM with AX client to test?  You can also try rebuilding your mail profile to see if helps, www.howto-outlook.com/.../newprofile.htm.  Otherwise, this may need to have Outlook team to review on local mail setup as well as looking into more detail trace to dig further.  You mention you contact MS.  Do you still have your ticket#?  My suggestion is log another support ticket using your prior one mentioning you are already in CU13.

    Thanks,

    Sunny

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    I forgot to mention that I can take it a step longer if I set my own email address under system management - setup email parameters

    That eliminates the error of the email address not being the same as the workers but instead leaves me with a " could not communicate with the microsoft email client.

    Also this could never be a fix. The email address set under syst. adm. should either be blanc or a generic address, I would think.

    I just made the experiment anyway :-)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Hi Sunny ,

    Sorry for the late reply.

    TLS 1.2 is enabled, and the e-mail-account (mine) verified.

    We contacted MS for the fix, but got nothing we could actually install. They sent the entire CU13 which is already installed, and doesn't seem to hold that fix anyway.

    I am really at a loss here. I can't figure out, what is wrong. If - under Microsoft Outlook  or exchange server parameters, I select outlook instead of exchange server, I can actually both use and create new outlook profiles, that connect to outlook, but I still get the same error when it comes to setting up the synchronizing.

    The only thing I can image may help is if you can select the server 365 option under organisational management, which we can't :'(

  • Sunnyw Profile Picture
    Sunnyw on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Hi Elsebeth,

    Yes, what I suspect is other causes than Outlook 2016 simply not display.  I recap in below that you may want to double check.

    AX is attempting to get the profile details for the current login user, which is the email field of the UserInfo when connecting to outlook.office.com.  You may want to double check if the current login user exists has email setup and this email address is valid account in outlook.office.com.  Another possibility could be that TLS 1.2 is not enabled and thus, could not connect to outlook.office.com.  Network trace like Fiddler could tell more.  You can follow the article in below to enable TLS 1.2

    How to enable TLS 1.2

    docs.microsoft.com/.../enable-tls-1-2

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Hi Sunny,

    It doesn't look like we have that hotfix.

    Do you know where I can find a hotfix for 365. We still only have SmmExchangeVersion up to Exchange2013. The fix you mention, will provide the Exchange2016, but I am guessing it won't help with outlook365 :'(

    This is what we have (CU13)

    Model-id Lag Modelnavn Modeludgiver Version Signeret Modelbeskrivelse

    15 usr USR Model 1.0.0.0 Nej System generated model for USR layer for Microsoft Dynamics AX

    17 sys Foundation Microsoft Corporation 6.3.164.0 Ja Microsoft Dynamics AX 2012 R3 base model, which includes the application framework, core application, extensions for industries, and localizations for countries/regions.

    18 sys Foundation Labels Microsoft Corporation 6.3.164.0 Ja Microsoft Dynamics AX 2012 application labels for the foundation model.

    19 syp Update for Foundation Microsoft Corporation 6.3.6000.151 Ja Cumulative update for Microsoft Dynamics AX 2012 application framework, application foundation, and discrete manufacturing industry model.

    20 syp SYP Labels Microsoft Corporation 6.3.6000.8182 Ja Cumulative update of labels added by software updates within the SYP layer.

    21 var LessorPayroll LESSOR A/S 6.3.56.1 Ja LESSOR-Payroll til Microsoft Dynamics AX 2012

    22 syp Hotfix-KB3004707-4578332-Foundation Microsoft Corporation 6.3.6000.4038 Ja Hotfix for Foundation (KB3004707, CL7320796)

    23 syp Hotfix-KB3004707-4578331-Foundation Microsoft Corporation 6.3.6000.4038 Ja Hotfix for Foundation (KB3004707, CL7320796)

    25 syp Hotfix-KB4493592-4581681-Foundation Microsoft Corporation 6.3.6000.8182 Ja Hotfix for Foundation (KB4493592, CL8032610)

    Thanks in advance.

    Elsebeth :-)

  • Sunnyw Profile Picture
    Sunnyw on at
    RE: Error when setting up Microsoft outlook or exchange server from AX 2012 R3 CU13 to office.outlook.com (365)

    Hi Elsebeth,

    What CU are you in?  You should at least see Outlook 2016 when you are in CU11 or above, see below.

    KB3161479 - The system does not support Microsoft Exchange Server 2016
    https://fix.lcs.dynamics.com/Issue/Details?kb=3161479

    AX is attempting to get the profile details for the current login user, which is the email field of the UserInfo when connecting to outlook.office.com.  You may want to double check if the current login user exists has email setup and this email address is valid account in outlook.office.com.  Another possibility could be that TLS 1.2 is not enabled and thus, could not connect to outlook.office.com.  Network trace like Fiddler could tell more.  You can follow the article in below to enable TLS 1.2
     

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

Product updates

Dynamics 365 release plans