Service Portal is not loading Approval widget for certain user

Federico Fiume
Tera Contributor

Hi all,

I'm reproducing an issue in the Service Portal, while loading the Home and the My Approvals page with a certain user (for now I've only reproduced the issue with 1 user) the widget fails to load, as you can see from the attached screenshot.

error.png

I see those warning popup and I don't know how to fix this problem

org.mozilla.javascript.EvaluatorException: GlideRecord.setTableName - empty table name (; line 95)

Script source code logged to console

Failing widget: 'DCM Approvals' (07fbce33db994f00b1e67e400f96197d)

(the widget is a copy of the OOB widget "Approvals", I changed nothing, but I reproduced the same issue also with the OOB widget, I done a copy of it only for a check)

I'm reproducing this error from yesterday morning, but never before, so I tried to delete a lot of the latest approvals and group approvals related to the user, but nothing changed...

I really don't know how to fix this...and is really crucial for us to fix it cause we've to present the SP next week.

Can you please help me understand it and fix it?

Thanks,

kindest regards.
Federico

1 ACCEPTED SOLUTION

Robert Chrystie
ServiceNow Employee
ServiceNow Employee

Hi Federico,



I ran into a similar issue a few days ago where, for certain individuals the Approval widget would fail.   I was working in test at the time, and found that the individual had an approval record that did not have an approving record associated with it.   The widget tries to load information from the approving record, so since there isn't one it fails in this way.   To check, you can navigate to the approvals list and add both Approving and Approval for to your list view and make sure there are no records where both are blank.   Not sure if yours is the same issue, but this is what I found.


View solution in original post

2 REPLIES 2

Robert Chrystie
ServiceNow Employee
ServiceNow Employee

Hi Federico,



I ran into a similar issue a few days ago where, for certain individuals the Approval widget would fail.   I was working in test at the time, and found that the individual had an approval record that did not have an approving record associated with it.   The widget tries to load information from the approving record, so since there isn't one it fails in this way.   To check, you can navigate to the approvals list and add both Approving and Approval for to your list view and make sure there are no records where both are blank.   Not sure if yours is the same issue, but this is what I found.


Thanks a lot Robert!!!



I deleted all the approvals with approvers and approving empty, and now is fixed!! Thanks!!