Hi all, I found the solution. The error message is actually caused by normal users do not have the permission to access the UserInfo table, thus when the system doing checking, it assumes there is no AdminUser record in UserInfo and try to insert a record and cause duplication error.
I am not sure how to add permission to UserInfo, but here the workaround is work. Just give all normal users the permission for \Development\MorphX\Application Hierarchy Tree. I am still wondering why suddenly all normal user lost the permission to access UserInfo table and need to explicitly give the permission using the workaround above. Hope anyone could give explaination on this. Thanks. --- In Axapta-Knowledge-Village@yahoogroups.com, "hiyajac" <[EMAIL PROTECTED]> wrote: > > I put a break point at Application class, but it doesnt work. > Seems debugging is not work for this class, maybe it's sytem class??? > > Back to the program, I suspect that the sytem creates duplicate > entry in UserInfo thus cause this error message. But in the first > place why the system will create duplicate record in UserInfo as > there is a checking. > > Then I find that the code below give different result when it's > executed during Axapta login and after login. > I get RecId = 0 during login, but I manage to get the RecId after > login. That's the code for verify duplicate entry. Anyone could > explain this? > > \Classes\SysCheckList\createAdminUser() > select firstonly recId from userInfo where userInfo.id == #AdminUser; > > > --- In Axapta-Knowledge-Village@yahoogroups.com, "Harry Deshpande" > <harryd@> wrote: > > > > Hi > > > > Syschecklist::createAdminUser is executed, put a break point to > see what > > is happening. > > > > My guess is that this problem will be solved by syncing the > userinfo > > table. > > > > Regards > > > > harry > > > > -----Original Message----- > > From: Axapta-Knowledge-Village@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of > hiyajac > > Sent: 13 February 2006 05:53 > > To: Axapta-Knowledge-Village@yahoogroups.com > > Subject: [Axapta-Knowledge-Village] Cannot create a record in > UserInfo > > > > Hi all, > > > > Whenever a normal user login has this error message > > "Cannon create a record in UserInfo (UserInfo). > > User:Admin, Administrator. The record already exists". > > > > For Admin login, it has no problem. Any idea what cause this > happen? > > Thanks. > > > > regards, > > hiyajac > > > > > > > > > > > > > > > > > > > > Sharing the knowledge on Axapta. > > Visit www.frappr.com/axapta for axapta friends. > > Yahoo! Groups Links > > > Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/