Catalog item extending sys_metadata brings application scope records all in Global Scope blocking user criteria modification for application scopeDescriptionCatalog item available for a table was made to extend sys_metadata which brought in the application scope for the records. However all the existing records were by default set to global scope, which does not allow the user to add or remove user criteria for items belonging to a custom application scope.Steps to Reproduce 1. Extend catalog Item table from sys_metadata to bring in the application scope.2. Create Custom scope Items catalog Items.3. Add scope user criteria to a custom scope catalog item.4. Add Global Catalog item with customer scope user criteria. Notice this does not allow to delete the user criteria made in custom scope.WorkaroundSince Orlando User Criteria m2m tables were reparented to sys_metadata, so by default all existing records will go to global scope. No issue will occur for new records. Run the migration script below from background scripts, as a fix after the upgrade. NOTE: This script will add a new delete and insert entry for each of the m2m records. var scope = 'global';var newAvailableFor;var availableFor = new GlideRecord('sc_cat_item_user_criteria_mtom'); availableFor.query();while (availableFor.next()) { scope = availableFor.sc_cat_item.sys_scope; if (scope == 'global') continue; newAvailableFor = new GlideRecord('sc_cat_item_user_criteria_mtom'); newAvailableFor.initialize(); newAvailableFor.setValue('sc_cat_item', availableFor.sc_cat_item); newAvailableFor.setValue('user_criteria', availableFor.user_criteria); gs.setCurrentApplicationId(scope); newAvailableFor.insert(); gs.setCurrentApplicationId('global'); availableFor.deleteRecord();} scope = 'global';var newNotAvailableFor;var notAvailableFor = new GlideRecord('sc_cat_item_user_criteria_no_mtom'); notAvailableFor.query();while (notAvailableFor.next()) { scope = notAvailableFor.sc_cat_item.sys_scope; if (scope == 'global') continue; newNotAvailableFor = new GlideRecord('sc_cat_item_user_criteria_mtom'); newNotAvailableFor.initialize(); newNotAvailableFor.setValue('sc_cat_item', notAvailableFor.sc_cat_item); newNotAvailableFor.setValue('user_criteria', notAvailableFor.user_criteria); gs.setCurrentApplicationId(scope); newNotAvailableFor.insert(); gs.setCurrentApplicationId('global'); notAvailableFor.deleteRecord();} Related Problem: PRB1475849