Error in Report

Which IIQ version are you inquiring about?

[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

Hi @Jadhikary

Could you please share your report definition.

What we can see is your report is throwing null pointer exception, can you please share your report xml?

Hi @Jadhikary

This error is a very common issue.

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.

Correct approach:
Always null-check objects inside report rules before accessing methods.

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(:heart:, :+1:, etc.) with an emoji to show your appreciation or message me directly if your problem requires a deeper dive

1 Like

Hi @Jadhikary

This error clearly means your report script is trying to call getName() on a null object.

Find where getName() is used inside your report rule or datasource script.

Example failing case:

identity.getName()

Here identity is null.

Add null check before calling getName():

if (identity != null) {
   name = identity.getName();
}
1 Like

Hi @Jadhikary

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.

Thanks

2 Likes

@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(:heart:,:+1:, etc.)with an emoji to show your appreciation or message me directly if your problem requires a deeper dive.

Please check your code for getName method. Wherever it is call, add a Null pointer check.

1 Like