Custom Report generation failing, but pre view grid works

Which IIQ version are you inquiring about?

8.4p1

Pictures


Share all details about your problem, including any error messages you may have received.

I have customized a form and a taskDefinition object, the idea is a form which will bring all applications for the user based into some logic, that part is working fine. The taskdefinition is receiving the values that the user selects on the form, but, once i click to Save and Execute on identityiq interface, i get a nullpointer, that same report works when i click save and preview, pictures attached.
And the crazy part is, it works on all low environments except production.
In production the pre-view grid works but not the extract, and the error i get is attached.
Report-MTP-ApplicationWorkgroupMembers.xml (7.9 KB)
Form-MTP-ApplicationWorkgroupMembersForm.xml (5.5 KB)

logs report issue .txt (4.9 KB)

@pereiram Can you please check in form β€œ@and”. it should be & only.

Done. Still getting same error. The form works perfectly fine, otherwise we would not see the report working on the preview grid, right? I think the issue happens during the conversion to pdf/csv. Thanks for the help, already changed to && and the form continuos to work, but the error still happens.

I tried to remove the data source (the form) from the taskdefinition, then the csv and pdf gets generated. I have compared low environment artifacts with prod, it’s the exact same XML, no differences. Is there some JasperResult or csv/pdf parameters that could be breaking that? Or maybe the classes that the form array returns might be different? Thanks

I found the workaround for the problem and the root cause, aparently the getEffectiveCapabilities is deprecated and might have caused this, so i used the code below:

/// Admin check block starts
            boolean isIIQAdmin = false;
            Identity id = context.getObjectByName(Identity.class,loggedInUser);
            Identity workgroupIAM = context.getObjectByName(Identity.class, "IAM TEAM");
            if (id!=null && id.isInWorkGroup(workgroupIAM)) {
                      isIIQAdmin = true;              
           }

Then everything working fine :slight_smile: Thanks.

1 Like