web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error While Trying to Add Reference in Security Configuration Screen

(0) ShareShare
ReportReport
Posted on by 1,026
Greetings dear community!
 
I have a custom menu item in a standard workspace and I want to add this custom menu item reference into a role.
 
But while I try to add the reference in /Security Configurations/ form under System Administration > Security > Security Configurations,
 
I encounter an error saying:
/Cannot create a record in Select objects (SysSecObjectLookup). Name: /CustomMenuItemName/ [NeededPermission: Manual]. The record already exists./
 
It just happens once I click on /Add references/ button.
 
And I am able to add references in other workspaces, I'm just having an issue with this workspace which contains multiple custom menu items.
 
Here is the path inside in the /Security Configurations/ form;
Employee self service role > Employee self service privilege > HcmEmployeeSelfServiceWorkspace Display menu items > EssWorkspace > Controls + > clicking on Add Reference button here will trigger the error.
 
Here are screenshots:
Please let me know what I am missing here.
 
Any advice is appreciated !
 
Thanks in advance!
 
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,860 Super User 2025 Season 2 on at
    Error While Trying to Add Reference in Security Configuration Screen
    Hi Momochi,
     
    I have moved your question from the Dynamics AX forum to Dynamics 365 Finance as your question is not about a previous version of Dynamics AX. 
     
    Have you tried fixing it with the Repair button? Security configuration - What is the 'Repair' button? - Dynamicspedia
     
    Let us know if this solves your issue.
     
     
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Error While Trying to Add Reference in Security Configuration Screen
    Hi,
    Judging from the error message, it should be that the index of the record is duplicated, and you can check the database table to see if the same record already exists. If there is a custom development part, it may be that there is a problem with the code and conflicts with the standard functionality. You can refer to this old thread: Cannot create record. The Record already exists. (dynamics.com), which is also a problem with the content of custom development, which causes records to not be inserted into the table.
    Best regards,
    Kevin
  • Momochi Profile Picture
    1,026 on at
    Error While Trying to Add Reference in Security Configuration Screen
    Hi dear Andre,
     
    Unfortunately, the repair button did not help...
     
     
  • Momochi Profile Picture
    1,026 on at
    Error While Trying to Add Reference in Security Configuration Screen
    Hi dear Kevin Xia,
    What I can understand from this error is that it seems there is a duplicated menu item on this form extension that it causes this error when trying to add the reference into the temp table of the form of "Add reference".
     
    The thing is I'm unable to identify this duplication... I'm not sure where I am supposed to search.
    I have looked into the form itself and its extensions and I'm unable to find a duplication of the menu item...
     
     
  • Momochi Profile Picture
    1,026 on at
    Error While Trying to Add Reference in Security Configuration Screen
    I just noticed that if I changed the name of the custom control on the form extension, it will work.
    The issue is that the name of this control is causing the error on adding the reference...but still I'm not sure why it says that this control name exists.
  • André Arnaud de Calavon Profile Picture
    299,860 Super User 2025 Season 2 on at
    Error While Trying to Add Reference in Security Configuration Screen
    Hi Momochi,

    A duplicated menu item name can come in many different places, not only with specific form extension. Do you e.g. have an ISV solution with binaries only? Or maybe the object was moved from one model to another? I'm not able to check your specific scenario.
    Anyway, your issue is solved if you change the name from your end. 

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 756 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 678

#3
Martin Dráb Profile Picture

Martin Dráb 526 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans