Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : vKEenNnkY1eCH7eiHQhhtL
Microsoft Dynamics AX (Archived)

"Failed to log on to Microsoft Dynamics”

Like (0) ShareShare
ReportReport
Posted on 4 Apr 2014 07:14:06 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
    1,935 on 07 Apr 2018 at 14:12:32
    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
    on 14 Jan 2015 at 15:24:07
    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
    on 30 Oct 2014 at 10:05:53
    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
    125 on 17 Oct 2014 at 21:17:21
    RE: "Failed to log on to Microsoft Dynamics”

    Hi Mikko

    Run it as Administator.

    Kind regards.

  • Suggested answer
    rudra Profile Picture
    6,534 on 04 Apr 2014 at 11:41:05
    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
    on 04 Apr 2014 at 11:31:06
    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
    16,444 on 04 Apr 2014 at 09:25:16
    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
    445 on 04 Apr 2014 at 08:41:11
    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
    2,431 on 04 Apr 2014 at 08:18:05
    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
    16,444 on 04 Apr 2014 at 07:23:40
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,850 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,719 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans