
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 07:01 AM
Hello,
We have the following business rule, Check for same name variables.
When we add two Variable Sets to a Catalog Item, we will get an error. And one of the Variable Sets will not be added to the Catalog Item.
In the Variable Sets there are two Variables, with the same Name, One is Active, and the other one is inactive.
The Variable Set that has the inactive Variable u_original_requester will not be added to the Catalog Item.
Do you have any idea how to solve this?
Thanks,
Martijn
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 08:08 AM
Hi there,
The pictures appear really small here, too giving it a try:
In theory, try to work with unique Variables names when working with a combination of Catalog Items, Variable Sets, Multi-Row Variable Sets. In theory when having a combination of these three, having duplicate Variable names could cause a lot of issues with Visibility, Catalog UI Policies, Multi-Row Variable Set not being displayed, etc., etc..
Whilst I understand that some of your Variables are active=false, also for those to try to avoid duplicates Variables names. It's not recommended to delete the Variable (if your Catalog Item is already in production because deleting will also delete data!), though you might be able to rename the Variable.
Does this give you enough insight? Or do you need more assistance with this?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 08:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 08:54 AM
Oke then just rename 🙂
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2019 09:08 AM
I have done very much similar.. and what i am doing i have just put a "." at the end of the variable name.
Name looks very much similar as well 🙂
regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2019 03:35 AM
So the Variable Name will be u_something. ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2019 05:20 AM
You can change it anything you'd like, as long as it's not already in use in your Catalog Item or the attached Variable Sets or Multi-Row Variable Sets. The u_ isn't needed for Catalog Item variables. Maybe you've got a naming convention, something like kpn_ or something. Or you could just add to the current variable _old, _inactive, etc. etc..
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field