My Oracle Support Banner

E-PIA: When Using "%Response.WriteLine('%Request.QueryString is: ' | %Request.QueryString | '<br />')" in the Related Content Services, it will Error out with "Response.WriteLine is not available in this context" (Doc ID 3040704.1)

Last updated on AUGUST 14, 2024

Applies to:

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

Symptoms

 When using the following line of code in the related content services, it will give out the error "Response.WriteLine is not available in this context".

%Response.WriteLine("%Request.QueryString is: " | %Request.QueryString | "<br />");,

 The issue can be replicated as follows.

1. Modify PTNC_UTILITY:AddToADSProject.execute to add the code. 

method execute
/+ Extends/implements PT_RCF:ServiceInterface.execute +/

Local number &curno = CurrentRowNumber();
Local Rowset &rs1 = GetLevel0()(1).GetRowset(Scroll.PTPN_CAT_REG);
¬ifName = &rs1(&curno).PTPN_CAT_REG.PTPN_CATEGORY_NAME.Value;

&dsName = "NOTIFICATION_CONFIGURATION"; /* Data set Name */

&instType = "PTPN_CATEGORY_NAME"; /* Filter criteria to display instances */

%Response.WriteLine("%Request.QueryString is: " | %Request.QueryString | "<br />");

end-method;

 2. Navigate to PeopleTools > Notifications > Notification administration> Notification settings and click related action Add to ADS Project for a Notification.

3. Observe the error.

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
References


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