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