Update to Catalog Variable in RITM's variable editor is failing and getting reset to initial value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi All,
I am trying to update the catalog variables on RITM, but it is always getting reset to the value of while raising the request. But, OOB it is working without any issues and getting updated to the new value.
Can someone suggest, how can I solve this?
I have enabled debugger and done the testing, none of BR or ACL failures shown in debug logs.
Thank you,
nvlear9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @learn nv
Hi,
Since the same update works for an OOB catalog item, the issue is most likely with customization on this catalog item or its variable set rather than an ACL or standard Business Rule.
Please check the following:
Catalog Client Scripts on both the item and its variable sets, especially onLoad, onChange, or onSubmit scripts with Applies on Requested Items enabled
Catalog UI Policies that set or clear the variable value, including Reverse if false
Catalog Data Lookups, because they can run on Requested Items and overwrite the value again
Flow Designer flow or legacy workflow activities that may copy the original value back after the RITM is updated
Duplicate variable names on the item or variable sets
Any standard Client Script on sc_req_item referencing a field and variable with the same name. In that situation, reference the variable as variables.variable_name
Use Debug Service Catalog Variables / Debug Actions on Catalog Item Variables while updating the RITM. This should show exactly which Client Script, UI Policy, or Data Lookup changes the value.
Also check the related sc_item_option value immediately after saving. If the new value is saved and later changes back, a flow/workflow or server-side process is resetting it. If the new value is never saved, focus on the Variable Editor, Catalog Client Scripts, UI Policies, and Data Lookups.
Do not add Business Rules directly to sc_item_option, as it is an internal Service Catalog table.
Please mark this as Helpful if it helps.
If this addresses your question, please mark this response as Accepted Solution
or mark has helpful
if you find it helpful.
Thank you!
TejaswiniY