Help to understand a script that seems to fill a system.vars.$serviceMemberList

Hi, please ¿would somebody help me to understand this script that is in a ruleset? because it's failing and the Information message "The Affected CI value field is not valid" is shown when trying to save an incident related to the bizservice CONECTIVIDAD

var servicio=system.functions.substr(record.affected_item,1,7);

if(servicio == "SOPORTE" || record.affected_item== "CONECTIVIDAD")

{

 system.vars.$serviceMemberList=system.library.SystemEnhancements.GetFilteredList(system.library.BSGFunctions.getMembers(record.affected_item,true,system.vars.$G_cilevel),"fFile.type!=\"bizservice\"" );

}

else

{

system.vars.$serviceMemberList=system.library.SystemEnhancements.GetFilteredList(system.library.BSGFunctions.getMembers(record.affected_item,false,system.vars.$G_cilevel),"fFile.type!=\"bizservice\"" );

}

Best Regards,