Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

unable to remove variable set from catalog item

venkata2023
Tera Contributor

Hi, 

I am removed variable set from catalog item in Dev and moved to Test, but the variable set still appears in catalog item, several times removed and captured, but still its not removing.

6 REPLIES 6

ChallaR
Giga Guru

hi @venkata2023 

Please find the below trouble shooting way and let me know if you any query -

Troubleshooting Steps

  1. Check for Variable Set References in Catalog Item

    • Go to the catalog item in Test.
    • Open the Variable Sets related list.
    • Ensure the variable set is not still listed there. If it is, remove it manually.
  2. Check for Variables Added Individually

    • Sometimes variables from a variable set might have been added individually to the catalog item.
    • Go to the Variables tab and see if any variables from the removed set are still present.
  3. Update Set or Application File Issue

    • If you’re using Update Sets or Application Files to move changes:
      • Make sure the removal of the variable set was captured properly in Dev.
      • Check the update set in Test to confirm the removal record is present.
      • Try recreating the update set with just the catalog item and variable set removal.
  4. Clear Cache / Re-publish Catalog Item

    • Sometimes UI cache can cause old data to appear.
      • Try clearing the cache: Cache.do in the instance.
      • Re-publish the catalog item to refresh its configuration.
  5. Check for Scoped App Conflicts

    • If the catalog item or variable set is part of a scoped application, ensure the scope is consistent across Dev and Test.
    • Conflicts in scope can cause unexpected behavior.
  6. Scripted Inclusion or UI Policy

    • Check if any UI Policies, Client Scripts, or Catalog UI Scripts are dynamically adding the variable set or its variables.

Suggestions 

If you're still stuck, you can try this:

  • In Dev, clone the catalog item (without the variable set).
  • Move the cloned item to Test.
  • See if the variable set appears in the cloned version.

Please mark it correct and close the thread if this resolves your query  

 

Thanks,

Rithika.ch

aruncr0122
Mega Guru

Hi @venkata2023 ,

 

When you remove a Variable Set from a Catalog Item in Dev, it deletes the record from io_set_item.
But unless that delete action is captured in your update set, when you move to Test, the link still exists.
Simply removing again in Dev won’t help unless the actual deletion record from io_set_item is captured.