Question

3
Replies
1657
Views
NAGARAJANK8342 Member since 2013 23 posts
TSYS
Posted: 2 years ago
Last activity: 1 year 9 months ago
Closed
Solved

NullPointerException in SafeURL.put(key,value) {InteractionID}, {undefined} error Pega Customer service 7.4

HI ,

After upgrading Pega and associated framework to 7.4 , we are getting java script error pop up with message "NullPointerException in SafeURL.put(key,value) {InteractionID}, {undefined}".

This happens when we click 'Add Task, select a 'service Intent' and click 'Add Task(s)' within in popup.

Is this a product bug in upgraded 7.4 version?

Based on further investigation we found that file "pega_cpm_IP_EventManager • js" has below function that has 'InteractionID' undefined. and also the 'console.log' is not commented.
The above js file has function
function queueselectedtasks(copySelectedTasksStack, interactionID, createWorkCall){
var QueuedTasks = "";
for(var selectedTaskIndex in copySelectedTasksStack) {
var selectedTask = copySelectedTasksStack[selectedTaskIndex];
if(!selectedTask) continue;

QueuedTasks += selectedTask.TaskName + ":" + selectedTask.TaskClass + ":" + selectedTask.TaskFlow + ":" + selectedTask.label;
QueuedTasks += ",";
}
var oSafeURL = new SafeURL("PegaCA-Work-Interaction.CSQueueTasks");
oSafeURL.put("QueuedTasks",QueuedTasks);
oSafeURL.put("InteractionID",interactionID);
pega.util.Connect.asyncRequest('POST', oSafeURL.toURL(), {
success:function(oResponse){
console.log("success");
/* Display the busy indicator * 
parent.showCPMBusyIndicator("driver");
createWorkCall();
},
failure: function(){
console.log("failed");
}
}, "");
}

Is this a product bug?

Thanks,

Nagarajan kadhiresan

***Moderator Edit-Vidyaranjan: Updated SR details***

Pega Customer Service Low-Code App Development Upgrades SR Parallel
Moderation Team has archived post
Share this page LinkedIn