Fix Script not executed during the Scoped Application Update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 02:37 PM
Hello Experts,
We have a scoped application and there is a Fix script to handle few of the pre requirement scenarios which are required for the scoped app to perform smoothly. But unfortunately the Fix Script is getting executed only once during the install and it don't get executed during the scoped application update. The fix script is created on a Quebec release.
You inputs are much appreciated.
Thanks,
Karthik Venkatesan
- Labels:
-
Scoped App Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 03:22 PM
Hi karthik,
Please refer to this I hope it resolves your problem
Notice: Fix Scripts – Scoped Applications and Upgrades (Quebec onwards)
Mark Correct or Helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 03:21 AM
Hi Yousaf,
Thank you for sharing this, but my case is bit different here.
As per the doc, the Fix Script should be running on Install/Upgrade by default, but in my case it gets executed only during the Install and doesn't shoots out during the Upgrade.
But however, if I follow the below steps before the upgrade process, it works. But this cannot be done on every version upgrade of a scoped application.
-
Navigate to sys_update table which will contains the record of the fix script. ServiceNow creates the record in this sys_update table whenever the fix script is executed very first time.
-
Search for the (sys_script_fix_*****.xml) Fix Script in the name field of the sys_update table.
-
Delete the record.
-
Try to upgrade the application, fix script will get executed
Is there any better way to handle this? Your help is much appreciated.
Thanks,
Karthik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2022 03:31 AM
Hi,
If the out of the box logic itself is not working as per Docs then raise a HI ticket with ServiceNow.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader