Exception during aggregation of 215. Reason: BeanShell script error: bsh.ParseException: Parse error at line 1, column 8

Which IIQ version are you inquiring about?

Version 7.0

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

Hi All,

I am a student just learning it, i was trying with the below for adding the id using correlation rule as below:

but it shows me this error “Exception during aggregation of 215. Reason: BeanShell script error: bsh.ParseException: Parse error at line 1, column 8. Encountered: java BSF info: correlation-keerthi at line: 0 column: columnNo”

1st I have done the correlation using UI and then i modified some data in main file then removed the UI correlation rule and using code am trying to execute. Please help me why its showing the error and what needs to be done

The modified data was : given the same employee id but db id was different.

employeeId dbID
1a2c3c 114
1a2b3d 115
1a2b3d 215
1a2c3c 214

import java,util.Map;
import sailpoint.object.*;
import java.util.HashMap();

Map return_map = new HashMap();

String empid = (String) account.getAttribute(“employeeId”);

return_map.put(“identityAttributeName”, “employeeId”);

return_map.put(“identityAttributeValue”, empid);

return return_map;

Just a syntax error. Should be java.util.Map

Thanks alot it worked.

Please help me on this , i was trying with different scenario by adding another column in master file

input:

employee id dbid
adm-1a2c3c 314
ADM-1a2b3d 315

Error was :

Exception during aggregation of 315. Reason: BeanShell script error: bsh.ParseException: Parse error at line 13, column 26. Encountered: ; BSF info: correlation-keerthi at line: 0 column: columnNo

Exception during aggregation of 314. Reason: BeanShell script error: bsh.ParseException: Parse error at line 13, column 26. Encountered: ; BSF info: correlation-keerthi at line: 0 column: columnNo

import java.util.Map;
import sailpoint.object.*;
import java.util.HashMap;

Map return_map = new HashMap();

String empid = (String) account.getAttribute("employeeId");

String id=" ";

if(((empid.startsWith("adm-")) || (empid.startsWith("ADM-"))) {  

    id=empid.subString(4);

}   

  else {
    id = empid;
}

if(id!=null)
{
return_map.put("identityAttributeName", "employeeId");

return_map.put("identityAttributeValue", id); 

}
id=empid.substring(4);

Syntax error it’s substring() not subString()

1 Like

corrected it but still shows the same error :frowning:

fix the number of opening and closing braces here … better use any AI tool to fix any syntax errors

Thanks for the idea, i have tried using AI tools it shows different codes (4-5 types) tried everything i wonder all the cases are getting the same error .

example:

import java.util.Map;
import java.util.HashMap;
import sailpoint.object.Account;

class EmployeeProcessor {
public static Map<String, String> processEmployeeId(Account account) {
Map<String, String> returnMap = new HashMap<>();
String empId = (String) account.getAttribute(“employeeId”);

    if (empId != null && (empId.startsWith("adm-") || empId.startsWith("ADM-"))) {
        empId = empId.substring(4);
    }

    if (empId != null) {
        returnMap.put("identityAttributeName", "employeeId");
        returnMap.put("identityAttributeValue", empId);
    }

    return returnMap;
}

}

error: Exception during aggregation of 315. Reason: BeanShell script error: bsh.ParseException: Parse error at line 7, column 5. Encountered: public BSF info: correlation-keerthi at line: 0 column: columnNo
Exception during aggregation of 314. Reason: BeanShell script error: bsh.ParseException: Parse error at line 7, column 5. Encountered: public BSF info: correlation-keerthi at line: 0 column: columnNo

Beanshell will be without class

import java.util.Map;
import sailpoint.object.*;
import java.util.HashMap;

Map return_map = new HashMap();

String empid = (String) account.getAttribute("employeeId");

String id = "";

if(empid != null) {
    if(empid.startsWith("adm-") || empid.startsWith("ADM-")) {
        id = empid.substring(4);
    } else {
        id = empid;
    }

    return_map.put("identityAttributeName", "employeeId");
    return_map.put("identityAttributeValue", id);
}
return return_map;

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.