Question
TSYS
US
Last activity: 30 Nov 2018 14:58 EST
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?
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***