Issue with Client Script Not Working After Moving from Dev to Test Instance

sunilsargam
Tera Guru

Hey folks, I’m facing a weird issue and hoping someone here can help me figure it out.

I’ve written a client script that shows/hides form sections based on the ticket type. In my Dev instance, it works great—no issues at all.

 

But when I migrate that same script to my Test instance, it doesn’t work. I've tried everything: re-importing via update set, validating the script, even checking for possible conflicts. Nothing seems to fix it.

 

Here’s the kicker: if I manually recreate the same script directly in Test, it works perfectly. Same code, same settings—just created fresh.

So now I’m wondering:

  • Is it something to do with update sets not transferring something essential?

  • Could there be caching issues that prevent the moved script from triggering?

  • Am I missing a setting that doesn’t copy over?

Would love to hear if anyone has run into this kind of problem and what you did to fix it. Thanks in advance!

 
5 REPLIES 5

Nikhil Bajaj9
Tera Sage

Hi @sunilsargam ,

 

I hope there was no issue in Update set Preview and you have committed the update set on Test instance. 

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

GlideFather
Tera Patron

Hi @sunilsargam,

  • are both environments in the same instance version?
  • it seems to me that the environments were not 1:1
    • DEV working, let's say 5 update sets
    • TEST only 3 were released to TEST
      • or some changes were made to Default update set and thus not deployed.

Debug tip: go to sys_update_xml table (all the manual changes captured in update sets default or not) and try to compare between DEV and TEST, you can use the payload field to search and filter... [Payload] [CONTAINS][catalo_client_script] etc.

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Arun_Manoj
Mega Sage

Hi @sunilsargam 

Export the Client Script as XML from Dev and Import XML in Test — it often preserves relationships more cleanly than Update Sets. Compare XML in Dev and Test.

  • check there is any sys_id using in the script , where same or not.
  • check can change in variable names in both instance.

 

Thanks

Hello @Arun_Manoj ,

 i have checked it, i dont have any sys_id and variables are same.