NullPointerException when calling a script include in Business rule condition field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 04:28 AM
Hi experts,
Actually I'm facing a weird issue; I have a before query business rule which i want to restrict its execution only to some cases.
That said, i have set up a script include in which i build a condition that return true in those specific cases.
Then i have called my script include method in the condition field of the business rule using new ScriptName().methodName(param)
When the business rule runs i got the error:
java.lang.NullPointerException Caused by error in Business Rule |
Have you ever encountred such an error?
Any help will be highly apreciated, thanks in adavnce

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2017 05:33 AM
I recommend reaching out to customer support. I'll be interested to hear what they have to say.
HI Service Portal - ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2020 09:36 AM
Hi
I'm facing same issue,
any update why exception is thrown while use "gs.action.getGlideURI()"
?