Skip to main content

Posts

Showing posts from April, 2026

ServiceNow getMD5Hex function

  getMD5Hex  is a function commonly found in utility libraries (such as Apache Commons Codec) that  calculates the  MD5 hash  of data (like a string or file) and returns the result as a 32-character hexadecimal string  Example: var sname = 'Joe Bloggs'; var value = new GlideDigest().getMD5Hex(sname.toLowerCase()); gs.info ('result==='+value); ServiceNow

Why objects can’t upgrade (ServiceNow)

ServiceNow unable to revert an object to baseline during an upgrade - presented with an error When a hotfix was provided on a protected script for example look at the hotfix update set to check if the Replace on upgrade flag is set to true for that file in the update set?  If it is set to false it can cause this issue.  If it is false change the flag in the update set to true which should allow the file to be reverted to the baseline, release version. Just setting the flag in the already-applied update set seems to do the trick --- Additional info (via ServiceNow Support): vSOLUTION PROPOSED:  After analysing the logs at the time of the upgrade,  we saw that the objects was loaded but the version was not added since it is a duplicate of the latest existing ones. Example for sys_script_include_d026e995472f95d4207ddfbd436d43cf : 2026-03-19 23:07:23 (694) worker.1 worker.1 txid=e862f2ec87fb ESLatestScriptLoader Skipping sys_es_latest_script record because there is an ex...