Description
Query business rule causes NullPointerException error when exporting data from list view
Steps to Reproduce
-
Go to incident_list.do and add a Query business rule to the incident table .
For more information, see the product documentation topic Creating a business rule.
-
Add the following line to this business rule script:
gs.action.getGlideURI();
-
Navigate to incident_list.do.
-
Export this list into any format
Note that the logs contain a NullPointerException error.
Workaround
Do not use GlideURI API in a script which is supposed to be executed during export or any background job.
Related Problem: PRB1038232