Notifications

61 views

Issue

Symptoms


Catalog UI policies do not work when variable sets have the same name as the variable.

Release


London

Cause


The Internal name for Variable Sets has been added in the London release, it should not have the same name as any Variable associated to that set.

Resolution


Change the Internal name of the Variable set to something other than its variable name.

Script to find affected variables:

var variables = new GlideRecord('item_option_new');
variables.query();
while(variables.next()) {
var varSet = variables.getValue('variable_set');
var varName = variables.getValue('name');
if (!varSet)
continue;
else {
var varSetGr = new GlideRecord('item_option_new_set');
varSetGr.addQuery('sys_id', varSet);
varSetGr.query();
if (varSetGr.next())
if (varSetGr.getValue('internal_name') === variables.getValue('name'))
gs.print('Variable name and Internal name of the variable set are the same for ' + varName);
}
}

Additional Information


KB0712554 - The Variable value will not be saved if the Variable name is the same as Variable Set Internal name
Documentation - Service Catalog release notes

Article Information

Last Updated:2019-08-02 20:58:56
Published:2019-05-14