Getting error in Vendor Assessment List widget in Vendor portal for some vendors.

Ashutosh44
Tera Contributor

We are getting NULL pointer exception error and "No assessments are available" message for vendors belonging to 2 particular company in Vendor portal (svdp). When we try to login with other Vendors belonging to other companies we get a proper list of Vendor Risk Assessments.

We tried debugging the code in the widget.

The Issue is that data.assessmentsList is empty, as no records were returned by the script include named: "SVDPVendorPortalUtilsBase". I copied this script include as it was read only and debugged it using gs.info and script debugger. 

I found that list.push(asmtInfo); is not working in case of these particular vendors only.

As a result the list is being returned empty. 

I logged asmtInfo object and observed correct values are being stored in it, still after pushing the object into list, the list is empty.

 

We have already gone through the KB0866805, but we have already populated Due date (questionnaire_due_date) in our Vendor Risk Assessments records.

 

We have already compared the configuration of the Vendor Risk Assessments records for the company for which the widget is showing data vs for the companies the widget is not showing assessments and throwing null pointer exception error.

Widget's server script:

find_real_file.png

Script Include called from widget:

find_real_file.png

5 REPLIES 5

Jeremy Duncan
ServiceNow Employee
ServiceNow Employee

Bumping this up. I'm seeing this happen on a Utah instance. Due date populated. Assessment Template valid type. Homepage widget shows 3 assessments. Clicking on the number, no dice. Any ideas?