Choice value for Operating System field of cmdb_ci_computer table is getting created with bad characters through integration by Service Graph Connector for Active DirectoryIssue When the SGC - Active Directory is running, it is creating bad characters in the choice field of the cmdb_ci_hardware table.ReleaseAll ReleaseCauseThere is an OOB Script Action with the below script: function(batch, output) {var utils = new sn_sec_sgc_ad.SgcADUtils();for (var i = 0; i < batch.length; i++) {try{var input = batch[i].input;if(!gs.nil(input)){output[i] = utils.checkAndDecodeBase64String(input);}else{output[i] = '';}}catch(err){gs.error('[SGC-AD] Exception: '+err);}}})(batch, output);We run the same script in the background scripts and found that this script is creating the Special/Bad charcatersResolutionThe below Script Operation is responsible for the Special Character. https://instance.service-now.com/sys_rte_eb_script_operation.do?sys_id=79a0bd03c3503510f53ef1067d40ddc0&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null&sysparm_record_row=1&sysparm_record_rows=3&sysparm_record_list=source_sys_rte_eb_field.nameCONTAINSopera%5esys_rte_eb_definition%3db5ace5cbc3103510f53ef1067d40dd52%5eORDERBYorder We reached the dev team regarding the script; They updated the script as below; [code] (function(batch, output) { var utils = new sn_sec_sgc_ad.SgcADUtils(); for (var i = 0; i < batch.length; i++) { try{ var input = batch[i].input; if(!gs.nil(input)){ // First validate if it's a valid Base64 string if (utils.isValidBase64(input)) { // Decode and sanitize the string var decoded = utils.checkAndDecodeBase64String(input); output[i] = utils.sanitizeString(decoded); } else { // If not valid Base64, return empty string output[i] = ''; } }else{ output[i] = ''; } }catch(err){ gs.error('[SGC-AD] Exception: '+err); // Set empty string on error output[i] = ''; } }})(batch, output); [/code] Once the script is updated, please reprocess the SGC - Import SetsWe can see that after reprocessing, after updating the script we can see that no special character is getting created. Related Problem:PRB1900348