logo

NJP

Get Unstuck - Did You Know

Import · Nov 18, 2022 · video

foreign here with another quick tip for admins and developers on the servicenow platform first don't forget to like And subscribe if you find this helpful so you don't miss any other cool useful stuff our team publishes okay here's one I learned a while back that I use from time to time when I make a stupid mistake let's say I've written a faulty script or have a really long running integration or something just isn't right with the instance and it's hung well likely it's not really hung it's just for me you see my user session is running a transaction and by default each logged in user gets to run one transaction at a time if my transaction is stuck I can't do anything else until it's done so I need a way to cancel that transaction let's take an example like this now it doesn't take much to see that this is a bad script because it will never break out of the while loop the condition is always true of course you would never purposely do something like this but it's likely that you'll run into a similar situation where the system keeps processing with no end in sight did you know there's a way to stop that long-running transaction so you can get back to work sure if you're running your script in the content window of UI 16 or next experience you'll get that nice message at the top with the running counter and you can click the cancel button but often I run scripts background in a separate browser Tab and that nice message never appears here's how to cancel a transaction like our infinite Loop when you don't have a cancel button open a new tab and point your browser to your instance name.servicenow.com slash cancel underscore my underscore transaction dot do or cancel under my undertransactions.do both work the same singular or plural this sends a signal to the system to stop your currently running transaction now important warning this can be dangerous if you're doing something like installing a plug-in that normally takes a very long time you could find yourself with I have installed plugin so try your best to recognize whether the issue is your fault or the system's fault cancel under my under transaction.do is a handy thing to remember when your instance gets stuck if you have an idea tip or trick that you've learned on the now platform and you'd like to share it as a Blog video social media or whatever go ahead and tag it with hashtag servicenowdyk to be part of the community we'd love to see what you come up with I'll be back soon with another servicenow Dyk thanks for watching [Music]

View original source

https://www.youtube.com/watch?v=EgE16zLejww