Fix Script not executed during the Scoped Application Update

KarthikVenkates
Tera Contributor

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

3 REPLIES 3

Yousaf
Giga Sage

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.***

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

If the out of the box logic itself is not working as per Docs then raise a HI ticket with ServiceNow.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader