Getting an error saying Failing Widget :'Time Sheet treemap' when accessing 'tcp' portal


Description

When navigating to /tcp portal, gives the error saying Failing Widget :'Time Sheet treemap'

Release or Environment

Applies to any supported release

Cause

As per the server script in Time Sheet treemap widget, we check for the class name of the task records.

Below is the code :

 

var sysClassName = agg.getValue('task.sys_class_name');
series.name = new GlideRecord(sysClassName).getPlural();

 

If the time_card records point to invalid task records, then class name will be invalid giving the error when accessing tcp portal.

 

Resolution

Remove the time_card records that have invalid task records or update the time_card records to point to a valid task record.