Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

"Failed to log on to Microsoft Dynamics”

(0) ShareShare
ReportReport
Posted on by 445

Hi,

We have a strange problem. All the other users can login to AX 2012 R2 normally, but one user has problems. When he tries to login, the system immediately throws error: “Failed to log on to Microsoft Dynamics”.  The user was successfully imported from AD and I checked it looks ok in AX. Any ideas where to look for solution? I have already deleted and reimported the user.

BR,

Mikko

*This post is locked for comments

  • MYGz Profile Picture
    MYGz 1,862 on at
    RE: "Failed to log on to Microsoft Dynamics”

    In my case the domain was changed so I had to just fix the SID value in the dbo.usersinfo table in MicrosoftDynamicsAX database.

    You can get the current SID value by running this in command prompt:

    whoami /all

    Check the current SID against the one in the table and if its different then update the table.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Failed to log on to Microsoft Dynamics”

    Step 1: Run CMD as  administrator and type whoami /all | more, it will display your name and the SID. Copy out the SID.

    Step 2: Navigate to MSSQL Management Studio , locate the baseline database for AX and look for table called "dbo.userinfo", update the table with the necessary infos including the sid  or you can use the query below, modify to suit your needs.

    update userinfo set

    networkdomain = 'DomainName',

    networkalias = 'NetworkAlias',

    name = 'sam',

    SID = 'S-1-5-21-XXXXXXXX-3956443045-XXXXXX-1001'

    where ID = 'Admin'.

    I had this issue and was able to resolve it after going through some processes.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Failed to log on to Microsoft Dynamics”

    HI all,

    I restored the New DB into Dynamics ax 2012..after i open the dynamics ax 2012..

    it show the Failed to log on to Microsoft Dynamics..plese help me

    regards,

    joseph

  • Aurelio Ortega Profile Picture
    Aurelio Ortega 125 on at
    RE: "Failed to log on to Microsoft Dynamics”

    Hi Mikko

    Run it as Administator.

    Kind regards.

  • Suggested answer
    rudra Profile Picture
    rudra 6,534 on at
    RE: "Failed to log on to Microsoft Dynamics”

    Hi Mikko ,

    I think you have to edit the correct server name and port numbers in your registry.

    Please make sure in the following method to edit:-

    Win+R-->regedit-->HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dynamics\6.0\Configuration\Original or Config name You have created*

    Please find the below screenshot:-

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Failed to log on to Microsoft Dynamics”

    Alternatively, if the user does not have access to the registry, whilst logged in as the user run an elevated cmd prompt (run as administrator). Then type the following in the cmdline:

    whoami /all | more

    In the first 3 lines it will show you your users SID

  • Denis Macchinetti Profile Picture
    Denis Macchinetti 16,444 on at
    RE: "Failed to log on to Microsoft Dynamics”

    Hi

    About the SID have a look at support.microsoft.com/.../en-us

    Also, the AX Client is install on a Remote Desktop Server or on the PC User Desktop ?

    If the last one, try to recreate the AX Client configuration between the Dynamics AX Configuration Utility

  • Mikko Profile Picture
    Mikko 445 on at
    RE: "Failed to log on to Microsoft Dynamics”

    Hi,

    Nothing works. Userinfo is fine and I tried to delete the users-profile too. I was thinking about SID in userInfo - how can I verify that it's correct?

  • Klaas Deforche Profile Picture
    Klaas Deforche 2,431 on at
    RE: "Failed to log on to Microsoft Dynamics”

    We've had a similar problem last week (with AX 2012 FP). I couldn't make head or tails of it so I asked my colleague. He tried numerous things, nothing work. In the end he deleted the profile of that specific (under C:\Users\"). When the user logged on again, the user profile was recreated and he could log on to AX again. Maybe you should try that too (but make a copy of the profile if you can't afford to los that data).

    Edit: Now I think about it, the error was "AOS unavailable", not "failed to log on"... But anyway, worth the shot maybe. If you have the problem with the same user on multiple machines, the problem will probably not be the profile.

  • Suggested answer
    Denis Macchinetti Profile Picture
    Denis Macchinetti 16,444 on at
    RE: "Failed to log on to Microsoft Dynamics”

    Hi Mikko

    You have more Domains?

    You can check if the SID store in the Userinfo table is correct ?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans