Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Error While Trying to Add Reference in Security Configuration Screen

Posted on by 878
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!
 
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 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. 
  • Momochi Profile Picture
    Momochi 878 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.
  • Momochi Profile Picture
    Momochi 878 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
    Momochi 878 on at
    Error While Trying to Add Reference in Security Configuration Screen
    Hi dear Andre,
     
    Unfortunately, the repair button did not help...
     
     
  • Kevin Xia Profile Picture
    Kevin Xia 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
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,240 Super User 2024 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.
     
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans