My Oracle Support Banner

E-PC: GenerateComponentPortalURL and GenerateComponentContentURL return NULL (Doc ID 651188.1)

Last updated on JANUARY 30, 2022

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.4 and later
Information in this document applies to any platform.


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.

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");

The PeopleCode Debugger enters the If statement and hits the next line.  When it exits the If statement, &compURL is NULL.


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.