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

John Gilaspy1
Tera Contributor

I do not have a great solution for this, but we found that a simple portal page route map from the svdp_assessment_list to the vdp_assessment_list fixes the issue, except for the "Assessments" button in the header. That has to be fixed as well. ServiceNow needs a HI ticket to address this.

Ashutosh44
Tera Contributor

This was resolved.
And the problem was the Questionnaire due date was not populated in some of the assessment records that were not in draft/cancelled state.
Suppose there are 10 Vendor Risk Assessment for Vendor "xyz" and 8 have the questionnaire due date populated but 2 does not, then those 8 will also throw an error.

All the Vendor Risk Assessments should have questionnaire due date populated in it.

shrikant Kahar1
Tera Contributor

Hi Ashutosh,

 

I am facing the same issue for my assessment. It is not visible to vendor contact. I can see Assessment count on page but when I am opening "No Assessments are available" showing. Can you please assist if you had resolved your issue?

Did you get any fix for this???