I am getting the following Best Practice error in Dynamics AX 2009 for any menu item assigned my primary security key (we'll call it MySecurityKey1).
"Wrong security key. Security key must match position in main menu."
I have the following items in my project:
Menus
MainMenu (Dynamics default item - security key is blank)
- Reference to MyMenu
MyMenu (Key = MySecurityKey1)
- MySubMenu1 (Key = MySecurityKey1)
- Reference to MyMenuItem1
- Reference to MyMenuItem2
- MySubMenu2 (Key = MySecurityKey2)
- Reference to MyMenuItem3
- Reference to MyMenuItem4
MenuItems
MyMenuItem1 (Key = MySecurityKey1) !!BP Error on this item
MyMenuItem2 (Key = MySecurityKey1) !!BP Error on this item
MyMenuItem3 (Key = MySecurityKey2)
MyMenuItem4 (Key = MySecurityKey2)
Security Keys
MySecurityKey1 (No parent key)
MySecurityKey2 (No parent key)
I'm pretty much at a loss, because there doesn't seem to be any real difference between the two keys or their use. Any suggestions would be great.
Thanks!