[Replace this text with your version of IIQ. The more specific you can be (7.1, 8.3, 8.X), the more people can help. If you do not know, put Unsure.]
Please share any images or screenshots, if relevant.
[Please insert images here, otherwise delete this section]
Please share any other relevant files that may be required (for example, logs).
[Please insert files here, otherwise delete this section]
Share all details about your problem, including any error messages you may have received.
I am getting below error while running a report in SailPoint IIQ. Report is a custom report.
sailpoint.tools.GeneralException: sailpoint.tools.GeneralException: The application script threw an exception: java.lang.NullPointerException: Attempt to invoke method getName on null value BSF info: script at line: 0 column: columnNo
Error: sailpoint.tools.GeneralException: java.lang.NullPointerException: Attempt to invoke method getName on null value
Root cause:
The report is executing a BeanShell (BSF) script and the script is calling .getName() on an object that is returning null. In IIQ, this usually happens when a referenced object does not exist for a particular record being processed.
Conclusion:
This is not a product defect. The report rule must defensively handle null objects. Adding proper null checks or default values resolves the issue.
Hope this is helpful
Note: Found a fix? Help the community by marking the comment as solution. Feel free to react(, , etc.) with an emoji to show your appreciation or message me directly if your problem requires a deeper dive
As per the error, it suggests that getName method is called on a null value. Whenever you call a method on null value then Java will give Null Pointer exception.
So, in the custom, search for the .getName() and try to find all the places where this method is called. Once you find it, add a null check on the value/object on which you are calling getName() method.
@Jeebika1 I believe your custom report is a Filter based report and you have written some scripts (could be QueryScript or RenderScript). Somewhere in your script, you must be using getName on any variable which is coming as null. you might want to review that. Please share your report here for review if you need our help.
Note: Found a fix?Help the community by marking the comment as solution. Feel free to react(,, etc.)with an emoji to show your appreciation or message me directly if your problem requires a deeper dive.