E-PC: GenerateComponentPortalURL and GenerateComponentContentURL return NULL
(Doc ID 651188.1)
Last updated on JULY 17, 2023
Applies to:
PeopleSoft Enterprise PT PeopleTools - Version 8.4 and laterInformation in this document applies to any platform.
Symptoms
Using the GenerateComponentContentURL and GenerateComponentPortalURL functions in a SavePreChange PeopleCode event. This gets executed when we run our Requisition Amount Approval process. The URL is generated if run for an individual requisition, but if you run the batch process the link isn't generated:
GenerateComponentPortalURL(%Portal, %Node, MenuName.REQUISITION_ITEMS, %Market, Component.REQ_APPROVAL_AMT, %Page, "U", &Rec);
The batch process is an Application Engine program that uses a Component Interface based on REQ_APPROVAL_AMT.
ISSUE:
GenerateComponentPortalURL is being called from Subscription PeopleCode. In the code below &tempObj is NOT null, and &tempObj.DefaultPortalName and &tempObj.Name are a valid combination of Portal and Node for the customer environment. However, &compURL is coming back NULL:
Local string &menuName = "ADMINISTER_WORKFORCE_(GBL)";
Local object &tempObj = %Session.GetLocalNode();
If &tempObj <> Null Then
&compURL = GenerateComponentPortalURL(&tempObj.DefaultPortalName, &tempObj.Name, @("MenuName." | &menuName), "GBL", Component.HR_MANAGE_HIRES, Page.HR_MANAGE_HIRES, "A");
End-If;
The PeopleCode Debugger enters the If statement and hits the next line. When it exits the If statement, &compURL is NULL.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |