Build Map rule not working

Hi all .
Please help me resolve this

import sailpoint.connector.DelimitedFileConnector;

// Assuming the columns are passed as `cols` and the record as `record`
Map map = DelimitedFileConnector.defaultBuildMap(cols, record);

// Get the firstName and lastName from the map
String firstName = (String) map.get("firstName");
String lastName = (String) map.get("lastName");

// Combine firstName and lastName to form fullName
String fullName = (firstName != null ? firstName : "") + " " + (lastName != null ? lastName : "");

// Update the fullName attribute in the map
map.put("fullName", fullName);


// Return the updated map
return map;

I used this rule for my delimited file so that i can concat first name , last name to fullname, when i did aggregation of tthe file it is success but changes are not reflecting in

And if i run the rule through debug i am getting this error :Exception running rule:

BeanShell script error: bsh.EvalError: Sourced file: inline evaluation of: ``import sailpoint.connector.DelimitedFileConnector;    // Assuming the columns ar . . . '' : Typed variable declaration : Undefined argument: cols  : at Line: 4 : in file: inline evaluation of: ``import sailpoint.connector.DelimitedFileConnector;    // Assuming the columns ar . . . '' : ( cols , record ) 
 BSF info: Build Map Rule at line: 0 column: columnNo

If you run it through debug, it doesn’t have the same input variables as it does when it’s running in the context of the connector aggregation, so the error there is expected. Do you have a schema attribute for fullName? If not, you need to add it so it appears on the account.

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