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)

Duplicate alias and network domain for the user.

(0) ShareShare
ReportReport
Posted on by 739

Dears,

when trying to change the preferred time zone (tools -->options) the following error appear (Duplicate alias and network domain for the user).

Please advise how to avoid such error and how to change the Time zone from coordinated universal time to another one.

Thanks in advance.

Regards

Elie

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    Please look at UserInfo table and check if there is another user with the same alias and domain. It's an invalid setup and you'll have to fix. If one domain user have two accounts to AX, how would AX know which one to use?

  • E. R. Profile Picture
    739 on at

    Dear Martin,

    I am using admin user. and it is available in user info table. all users use the same network domain but different ID and network Alias.

    Please advise.

  • Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    Ensure yourself that you don't have both the admin and a normal user pointed to the same domain account. If you're 100% sure that you're setup is correct, you can use the debugger to see why the error is thrown or to create a support ticket with Microsoft.

  • E. R. Profile Picture
    739 on at

    If I change the preferred time zone in userinfo table using update sql querry. will not work?

  • Suggested answer
    Community Member Profile Picture
    on at

    It will work, but it doesn't fix the error.

    Your user will have a new timezone. But the error with double allias and domain isn't gone.

  • E. R. Profile Picture
    739 on at

    I found this error in the event viewer when trying to change the preferred time zone in AX.

    Cannot insert duplicate key row in object '[Reporting].[SecurityPrincipal]' due to trigger '[Reporting].[SecurityPrincipal_Insert_UniqueName]'.

    The transaction ended in the trigger. The batch has been aborted.

    --- Exception Dump ---

    Caught Exception: [System.Data.SqlClient.SqlException] Cannot insert duplicate key row in object '[Reporting].[SecurityPrincipal]' due to trigger '[Reporting].[SecurityPrincipal_Insert_UniqueName]'.

    The transaction ended in the trigger. The batch has been aborted.

    Stack trace:

      at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

      at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

      at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

      at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

      at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)

      at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)

      at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)

      at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

      at Microsoft.Dynamics.Performance.Integration.Reporting.Adapter.CompanyProvider.Finish()

      at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.CommitBulkWriter()

      at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.GetTaskExecutionResult(Task`1 processRecordsTask)

      at Microsoft.Dynamics.Integration.Service.Tasks.MapWork.Run()

      at Microsoft.Dynamics.Integration.Service.Tasks.MapTask.RunImplementation()

    Component: Microsoft.Dynamics.Integration.Common.TraceLog

    User: Indevcoplastics\MR

    Machine: AOSPROSRV-1

    is it related to the previous error "Duplicate alias and network domain for the user"

    Can anyone help?

  • Shabir Ahmad Profile Picture
    3,110 on at

    Hi All,

    I resolved this error by setting the actual SID ID in Userinfo table. That's mean i found Duplicate SID ID of two users in Userinfo table. As i remove duplicate SID ID the issue was solved.

    Best Regards

    Shabir Ahmad

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