I once had a very dreadful day at office breaking my headtrying to solve what looked like a very simple security issue. ‘You are notauthorized to access this Component (40,20)’. If you are having one suchdistressing day today, then don’t worry, you have landed at the right place andwe are going to fix this right away.
You are watching: You are not authorized to access this component 40 20
This is one of the most prevalent security issue inPeoplesoft faced by every Peoplesoft developer atleast once in their lifetime. Wehave prepared a simple checklist indicating all the possible scenarios wherethis issue could happen with quick solutions for the same.
Security Access:First and foremost, check whetheryou have access to the component/page you are trying to access. Use thefollowing query to verify if you have access.
SELECT R.rolename ,RC.classidFROM psroleuser R ,psroleclass RCWHERE RC.Rolename = R.RolenameAND R.roleuser = "OPRID>"AND RC.classid IN(SELECT CLASSIDFROM psauthitem AUTHWHERE AUTH.baritemname="COMPONENT_NAME>" AND AUTH.pnlitemname ="PAGE_NAME>"
Non-existing permission list assigned to the role:There will be instances where apermission list exists in a role but not in the database. This usually happenswhen project is migrated from one database to another but does not include the permissionlist. Use the below query to identify if you have any such permission listmissing.
Select R.rolename , RC.classid From psroleuser R , psroleclass RC Where RC.Rolename = R.Rolename And not exists (Select "X" from psclassdefn C Where C.classid = RC.classid) -- And R.roleuser = ""
Still not able to access? Why nottry running the Portal Security Syncprocess from the following Navigation.
There are scenarios where thesystem should change the flow of transaction from one component to anotherusing Transfer function. In such cases, verify if the below points are takencare.
Transfer( False, MenuName.DEFINE_PAYROLL_PROCESS, BarName.SETUP, ItemName.ACCOUNT_CODE_TABLE, Page.ACCT_CD_TABLE, "L", &Parmrec);
As you see in the above example, thecomponent is registered in ‘Update/Display’ and ‘Correction mode’, whereasTransfer function is trying to access this component in ‘Update/Display All’mode, which is not correct. Accessing this component in ‘Add’ or‘Update/Display All’ mode using Transfer function will result in this Securityissue.
ii) Have youspecified the correct ItemName inTransfer Function? People often tend to misinterpret ItemName with Componentname, which is incorrect.
See more: How Long Does It Take To Dry Clothes, How Long To Dry Clothes At The Laundromat
Transfer( False,MenuName.DEFINE_PAYROLL_PROCESS, BarName.SETUP, ItemName.ACCT_CD_TABLE_NEW, Page.ACCT_CD_TABLE, "U",&Parmrec);
As you see in theabove example, Item Name is ‘ACCOUNT_CODE_TABLE’and component name is ‘ACCT_CD_TABLE_NEW’.
Transfer( False,MenuName.DEFINE_PAYROLL_PROCESS, BarName.SETUP, ItemName.ACCOUNT_CODE_TABLE, Page.ACCT_CD_TABLE, "U",&Parmrec);
Mostly by now, you should havebeen able to fix this issue. If you are still reading this point, then I wouldsuggest you to clear the application server cache and reboot the server and tryagain.
Posted bysathishat6:59 PM
► 2020(20) ► 2019(13) ▼ 2018(6) ▼ January(3) ► 2017(10) ► 2016(7) ► 2015(6) ► 2014(42) ► 2013(1)