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 AX (Archived)

Failed to Create a Session

(0) ShareShare
ReportReport
Posted on by 485

So after more than two years of working perfectly, one of our AX 2012 R2 servers refuses to synchronize, giving the error 'Failed to Create a Session.'  None of the usual tricks worked, and the problem remains.  Here are all the things we tried:

1. Restart the AOS, full compile, full CIL

2. Restart the AOS, run the partition initialization checklist (which appears to have changed nothing), full compile, full CIL

3. Manually recompiled all the system classes, followed by a full CIL

4. Ran the partition update script that most of the articles reference:  0 rows affected

5. Checked the admin user SID in the users table--it is good, there are not multiple partitions in the table

6. Just to eliminate permissions, gave NT AUTHORITY\Authorized Users sysAdmin rights on the SQL Server  (and then removed the permissions, because leaving that in place would be... stupid  ; )

The user logged in is an AX admin, server admin, domain admin, SQL admin, and dbOwner on the AX database and model store.

And with that, we are completely out of ideas.

Any new suggestions?

*This post is locked for comments

I have the same question (0)
  • nunomaia Profile Picture
    25 Moderator on at

    Try these steps

    1. Shutdown the AOS.

    2. Delete the contents of the bin\XppIL folder in AOS server. Don't delete subfolders contents

    3. Start AOS .

    4. Generate full CIL.

    5. Restart the AOS again

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    you can clear the DB logs and temp db and give a try again, clear the .auc files as well.

  • Brad Docimo Profile Picture
    485 on at

    [Duplicate post removed]

  • Brad Docimo Profile Picture
    485 on at

    No such luck on this one, unfortunately.  Cleared the XppIL folder.  Restarted the AOS, Full AOT compile.  Full CIL.  Synch still failed.  Thanks for responding.

  • Brad Docimo Profile Picture
    485 on at

    Umesh, what is the best practice for clearing the DB logs.  The articles referencing doing this have lots of cautionary messages.

  • Brad Docimo Profile Picture
    485 on at

    Ok, I deleted all the AUC files on the entire AOS.  Changed the SQL Recovery mode from full to simple, then back to full.  Shrank the AX database and model store.  Restarted the AX service.

    Same error, unfortunately.  "Failed to create a session"

  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    ok did u tried .. www.ksaelen.be/.../ax2012-r2-db-sync-failed-to-create-a-session

  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Check if the AX AOS service account has the appropriate database roles (reader, writer, admin) assigned to the model and data database, is an ax user and has access to the application folder.

  • Brad Docimo Profile Picture
    485 on at

    Yes, that is the script I mention in the original post, which executed with 0 affected rows.

  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Did you tried running the ax as "Run As Admin"

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans